HI Folks
Using the Vibracart extension (very good!) - but can't get my head round
providing a drop-down list of options with different prices
e.g.
Product1 Size1 - €10
Product1 Size2 - €20
Product1 Size3 - €25
I need to carry the full description and the price across to the Paypal cart - as in "Product1 Size1 - €10"
I know that there's an example in the form wizard - but this generates a complete form - is it possible to
do this just with a combobox and the 'add to cart' button ?
Thanks
Adrian
Adding combobox drop-down options to 'add to cart' button
-
-
- Posts: 41
- Joined: Wed Apr 20, 2011 9:17 pm
- BaconFries
-
- Posts: 5640
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Adding combobox drop-down options to 'add to cart' butto
Although this is reagrding the Vibracart extension by me.prosenjeet, you should really take this up with him, but maybe this will help you...
This example will show the price and the description and item details that you use ...
<!-- THE FOLLOWING OPTION WILL CHANGE THE PRICE -->
<select name="amount" style="width:150px;font:9px;margin-top:4px">
<option value="10.00">Product1 Size1 €10</option>
<option value="20.00">Product1 Size2 €20</option>
<option value="25.00">Product1 Size3 €25</option>
</select>
<!-- THE FOLLOWING IS FOR ITEM DESCRIPTION AND ITEM DETAILS -->
<input type="hidden" name="on0" value="Add your item description">
<input type="hidden" name="os0" value="Item Details or Name">
////////////////////////////////////////////////////////////////////////////////
This example will show the price and the color in paypal
<!-- THE FOLLOWING OPTION WILL CHANGE THE PRICE -->
<select name="amount" style="width:150px;font:9px;margin-top:4px">
<option value="35.00">Price Option 1 $35.00</option>
<option value="55.00">Price Option 2 $55.00</option>
<option value="75.00">Price Option 3 $75.00</option>
</select><br>
<!-- THE FOLLOWING OPTION WILL NOT CHANGE THE PRICE -->
<!-- THE FOLLOWING OPTION WILL CHANGE THE COLOR -->
<input type="hidden" name="on0" value="Add your item description">
<select name="os0" style="width:150px;font:9px;margin-top:4px">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
<option value="Green">Green</option>
</select><
This example will show the price and the description and item details that you use ...
<!-- THE FOLLOWING OPTION WILL CHANGE THE PRICE -->
<select name="amount" style="width:150px;font:9px;margin-top:4px">
<option value="10.00">Product1 Size1 €10</option>
<option value="20.00">Product1 Size2 €20</option>
<option value="25.00">Product1 Size3 €25</option>
</select>
<!-- THE FOLLOWING IS FOR ITEM DESCRIPTION AND ITEM DETAILS -->
<input type="hidden" name="on0" value="Add your item description">
<input type="hidden" name="os0" value="Item Details or Name">
////////////////////////////////////////////////////////////////////////////////
This example will show the price and the color in paypal
<!-- THE FOLLOWING OPTION WILL CHANGE THE PRICE -->
<select name="amount" style="width:150px;font:9px;margin-top:4px">
<option value="35.00">Price Option 1 $35.00</option>
<option value="55.00">Price Option 2 $55.00</option>
<option value="75.00">Price Option 3 $75.00</option>
</select><br>
<!-- THE FOLLOWING OPTION WILL NOT CHANGE THE PRICE -->
<!-- THE FOLLOWING OPTION WILL CHANGE THE COLOR -->
<input type="hidden" name="on0" value="Add your item description">
<select name="os0" style="width:150px;font:9px;margin-top:4px">
<option value="Red">Red</option>
<option value="Blue">Blue</option>
<option value="Green">Green</option>
</select><
Last edited by BaconFries on Tue Dec 13, 2011 6:31 pm, edited 1 time in total.
-
-
- Posts: 41
- Joined: Wed Apr 20, 2011 9:17 pm
Re: Adding combobox drop-down options to 'add to cart' butto
HI Navaldesign
Sorry - I think I've got my 'thick' head on today <g>
OK on the html - that certainly produces a drop-down box.
Are you saying that I need to wrap that up in a form, along with a 'submit' button ?
I was hoping that there was some simple way of doing this.... (always hopeful)
I can link an 'add to cart' button to a combobox - but the 'value' that the combobox submits isn't being seen as a price by Paypal....
Confused
Adrian
Sorry - I think I've got my 'thick' head on today <g>
OK on the html - that certainly produces a drop-down box.
Are you saying that I need to wrap that up in a form, along with a 'submit' button ?
I was hoping that there was some simple way of doing this.... (always hopeful)
I can link an 'add to cart' button to a combobox - but the 'value' that the combobox submits isn't being seen as a price by Paypal....
Confused
Adrian
- BaconFries
-
- Posts: 5640
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Adding combobox drop-down options to 'add to cart' butto
Hi Adrian...well thanks for the compliment confusing me with Naval anyway this is how I write the fields for paypal functions that I use (Outside of WB) but it can still be used, yes it would need to be wrapped in a form, but I cant say how you can or would add this into the Vibracart extension as I have never had to use or buy it, ...as mentioned you should take this up with me.prosenjeet the creator of the extension...you may need to manually modify the extension code in a HTML Editor to add the extras that you need...but I would ask me.prosenjeet regarding this...
-
-
- Posts: 41
- Joined: Wed Apr 20, 2011 9:17 pm
Re: Adding combobox drop-down options to 'add to cart' butto
BaconFries wrote:Hi Adrian...well thanks for the compliment confusing me with Naval anyway this is how I write the fields for paypal functions that I use (Outside of WB) but it can still be used, yes it would need to be wrapped in a form, but I cant say how you can or would add this into the Vibracart extension as I have never had to use or buy it, ...as mentioned you should take this up with me.prosenjeet the creator of the extension...you may need to manually modify the extension code in a HTML Editor to add the extras that you need...but I would ask me.prosenjeet regarding this...
Hi Bacon
My apologies - said I'd got my 'daft' head on today!
I've a feeling it may be necessary to go to Paypal's site & create the code, then paste the html back into Wissy - bit of a pain but I think that's probably the way.... - I'll have a play & see.
Thanks
Adrian
-
-
- Posts: 41
- Joined: Wed Apr 20, 2011 9:17 pm
Re: Adding combobox drop-down options to 'add to cart' butto
Replying to my own post - how sad is that ? <g>
Quick & dirty solution to this issue - (just for the sake of anybody searching for a solution in the future)
Log into Paypal account
Create drop-down menu & 'Add to cart' button - taking care to un-tick the 'Save button @ Paypal' box on Step 2,
and then the 'remove protection' option when the button code is displayed.
Copy / paste the code into an HTML box in Wissy
For other products that require this size / colour / price drop-down - either repeat the above or
paste the button code into a new html box and hand-edit the fields in Wissy.
Seems to work! <g>
Thanks
Adrian
Quick & dirty solution to this issue - (just for the sake of anybody searching for a solution in the future)
Log into Paypal account
Create drop-down menu & 'Add to cart' button - taking care to un-tick the 'Save button @ Paypal' box on Step 2,
and then the 'remove protection' option when the button code is displayed.
Copy / paste the code into an HTML box in Wissy
For other products that require this size / colour / price drop-down - either repeat the above or
paste the button code into a new html box and hand-edit the fields in Wissy.
Seems to work! <g>
Thanks
Adrian