且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Magento的一页结帐中获取发布数据?

更新时间:2023-11-30 08:17:34

此问题已解决.结帐的审核部分由保存功能在第820行附近的skin/frontend/base/default/js/opcheckout.js中提交.

This problem is solved. The review part of the checkout is submited by the save function in skin/frontend/base/default/js/opcheckout.js around line 820.

此功能不会考虑所有来自Conventions.phtml的字段,而是仅考虑$('ol#checkout-agreements')内部的字段-数字...

This function does not take all fields into account from the agreements.phtml, but only the ones inside $('ol#checkout-agreements') - go figure...

显然,解决方案是将字段放入ul#checkout-agreements内,或更改opcheckout.js使其包含Agreements.phtml中的所有字段.

The solution is obviously to to put the field inside the ul#checkout-agreements or to change opcheckout.js to include all the fields from the agreements.phtml.