简体   繁体   English

需要添加用户定义的字段才能在shopp插件wordpress中添加产品

[英]Need to add user defined field to add product in shopp plugin wordpress

WordPress: Version 4.4.2 Shopp Plugin WordPress:版本4.4.2 Shopp插件

I Need to add a user defined field to add product in Shopp plugin WordPress which will be used for XML generation and further for communication with one of the Payment Gateways. 我需要添加一个用户定义的字段,以便在Shopp插件WordPress中添加产品,该产品将用于XML生成并进一步与其中一个付款网关进行通信。 Tried for clues surfing online but didn't find any. 尝试寻找在线冲浪的线索,但未找到任何线索。

Any help would be appreciated. 任何帮助,将不胜感激。

Thanks. 谢谢。

If you want to add fields to the checkout form that are specific to the payment gateway that is used you could take a look at this filter 如果您想在结帐表单中添加特定于所使用的支付网关的字段,则可以查看此过滤器

shopp_checkout_gateway_inputs shopp_checkout_gateway_inputs

This should be added to payment gateway file you are creating. 这应该添加到您正在创建的支付网关文件中。

If you are looking for collecting additional order info on the checkout page you could use this bit of code 如果您要在结帐页面上收集其他订单信息,则可以使用以下代码

shopp('checkout.order-data') shopp('checkout.order-data')

This should be added to checkout.php. 这应该添加到checkout.php中。

If you are looking for collecting additional customer info on the checkout page you could use this bit of code 如果您要在结帐页面上收集其他客户信息,则可以使用以下代码

shopp('checkout.customer-info') shopp('checkout.customer-info')

This should be added to checkout.php. 这应该添加到checkout.php中。

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

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