I see this hidden input field where each of my cart buttons are located in my source code:
<input type=”hidden” name=”page_style” value=”NAMEOFSTYLE”>
Here is actually the form HTML from my source code where I use the plugin button shortcode:
<form method="post" class="wp-cart-button-form" action="" style="display:inline" onsubmit="return ReadForm(this, true);"><input type="submit" value="Add to Cart" /><input type="hidden" name="product" value="Test Product" /><input type="hidden" name="price" value="52" /><input type="hidden" name="shipping" value="2" /><input type="hidden" name="addcart" value="1" /><input type="hidden" name="cartLink" value="https://myserver.com/store/" /><input type="hidden" name="product_tmp" value="Test Product" /><input type="hidden" name="item_number" value="" /><input type="hidden" name="page_style" value="NAMEOFSTYLE" /></form>
However, at the bottom of the cart where the Checkout with PayPal button is, I do not see this hidden input field. This is the form I see generated there:
`<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post” ><br />
<input type=”hidden” name=”item_name_1″ value=”Test Product” /><br />
<input type=”hidden” name=”amount_1″ value=’160.00′ /><br />
<input type=”hidden” name=”quantity_1″ value=”1″ /><br />
<input type=’hidden’ name=’item_number_1′ value=” /><br />
<input type=”hidden” name=”shipping_1″ value=’9.50′ /><input type=”hidden” name=”no_shipping” value=”2″ /><input type=”image” src=”https://myserver.com/wp-content/plugins/wordpress-simple-paypal-shopping-cart/images/paypal_checkout_EN.png” name=”submit” class=”wp_cart_checkout_button” alt=”Make payments with PayPal – it\’s fast, free and secure!” /><input type=”hidden” name=”return” value=”https://myserver.com?reset_wp_cart=1″ /><input type=”hidden” name=”notify_url” value=”https://myserver.com/?simple_cart_ipn=1″ /><br />
<input type=”hidden” name=”business” value=”[email protected]” /><br />
<input type=”hidden” name=”currency_code” value=”USD” /><br />
<input type=”hidden” name=”cmd” value=”_cart” /><br />
<input type=”hidden” name=”upload” value=”1″ /><br />
<input type=”hidden” name=”rm” value=”2″ /><br />
<input type=”hidden” name=”charset” value=”utf-8″ /><br />
<input type=”hidden” name=”mrb” value=”3FWGC6LFTMTUG” /><input type=”hidden” name=”custom” value=”wp_cart_id=1017&ip=MYIPADDRESS” /></form>`
Do you think if the hidden input field for page_style is present at the checkout button form, that would solve it?