- This topic has 3 replies, 2 voices, and was last updated 13 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Adding Paypal HTML Variables
What is the best way to add Paypal HTML variables to the Buy Now Buttons? Is there a way we can enter it within the Plugin Settings or do we need to hack the HTML and insert hidden form variables?
https://www.paypalobjects.com/IntegrationCenter/ic_std-variable-ref-buy-now.html
The eStore plugin reads the product details that you added and then creates the HTML variables necessary to submit it to PayPal. You should not need to add HTML variables yourself if you are using eStore.
Right… but I want to pass product details that eStore doesn’t allow me to configure.
On Item Information, I want to pass on0 = “More info on my product”
On PayPal Payment Pages, I want to pass cancel_return =”http://myurl.com”, cpp_header_image = “http://myurl.com/myimage.jpg”, image_url = “”, no_note =1, no_shipping=1, etc.
I’m getting these from this URL: https://www.paypalobjects.com/IntegrationCenter/ic_std-variable-ref-buy-now.html#HTMLVariablesOnlyforBuyNowButtons
Let me know if this is possible and what you recommend. Otherwise, I may use some javascript to hack this and include… however, I would prefer to do it the way in which you guys prefer.
Open the “eStore_misc_functions.php” file and look inside the following function:
function print_eStore_buy_now_button
This function creates the “Buy Now” button so if you follow the code you will see that its adding a lot of HTML variables there. Add yours as you see fit.