简体   繁体   中英

Need to add user defined field to add product in shopp plugin wordpress

WordPress: Version 4.4.2 Shopp Plugin

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. 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

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')

This should be added to 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')

This should be added to checkout.php.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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