简体   繁体   English

如何从模块添加Prestashop购物车摘要上的列

[英]How to add column on Prestashop cart summary from a module

I need a method for modifying the cart summary page from inside a Prestashop module. 我需要一种从Prestashop模块内部修改购物车摘要页面的方法。 Basically I want a new column with a select box, and after the client clicks the Proceed to Checkout button I want to fetch the option selected for each product. 基本上,我想要一个带有选择框的新列,并且在客户端单击“继续付款”按钮之后,我要获取为每个产品选择的选项。 Also, altering the theme is not an option, I am trying to accomplish this inside a module. 另外,更改主题也不是一种选择,我正在尝试在模块内完成此操作。 Prestashop购物车摘要

Since altering the theme is not an option you can "inject" the required markup code with JavaScrit - for example with jQuery. 由于不能更改主题,因此可以使用JavaScrit“注入”所需的标记代码,例如jQuery。

Take a look at the "after()" method. 看一下“ after()”方法。

http://api.jquery.com/after/ http://api.jquery.com/after/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM