- Original Poster
- #1
Easy for a PHP junkie not me that is!
I want to pass a parameter into a shopping cart call on a wordpress page.
The following is representative call to the e-junkie shopping cart, passes a parameter in through the URL which is "discount_code"
<form action="http://www.e-junkie.com/ecom/gb.php?c=cart;i=B061120;cl=123300;ejc=2;discount_code=ACODE" target="ej_ejc" method="POST" accept-charset="UTF-8">
<input type="image" src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart" class="ec_ejc_thkbx"/>
</form>
The above works......and allows also calls other than discount_code eg to quantity=123 or amount=123 to override quantity
All I want is an extra TEXT formfield that allows the user to enter the discount_code in text and passes it in through the parameter above
BTW - vbulletin seems to be hijacking that string and formatting it wrongly it should say
discount_code=ACODE
Is that hard or easy ..?
[NB e-junkie used to allow passing on "buy it now" via a parameter os0 name "Promotion" and on0 - doesnt work on addtocart]
I want to pass a parameter into a shopping cart call on a wordpress page.
The following is representative call to the e-junkie shopping cart, passes a parameter in through the URL which is "discount_code"
<form action="http://www.e-junkie.com/ecom/gb.php?c=cart;i=B061120;cl=123300;ejc=2;discount_code=ACODE" target="ej_ejc" method="POST" accept-charset="UTF-8">
<input type="image" src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart" class="ec_ejc_thkbx"/>
</form>
The above works......and allows also calls other than discount_code eg to quantity=123 or amount=123 to override quantity
All I want is an extra TEXT formfield that allows the user to enter the discount_code in text and passes it in through the parameter above
BTW - vbulletin seems to be hijacking that string and formatting it wrongly it should say
discount_code=ACODE
Is that hard or easy ..?
[NB e-junkie used to allow passing on "buy it now" via a parameter os0 name "Promotion" and on0 - doesnt work on addtocart]
Last edited by a moderator:
