Vineela Panuganti
Vineela Panuganti

Reputation: 3

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.

Upvotes: 0

Views: 93

Answers (1)

RST
RST

Reputation: 3925

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.

Upvotes: 0

Related Questions