| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Product Options Customizaion ? | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: Product Options Customizaion ?
good job so far, its much clearer with radio buttons, the customer can see it on the page, instead of it being hidden in a drop down they have to click
__________________
Richard Ultimate 5.4 testing |
|||||||||
#12
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
use
Code:
to include the javascript for updating the price and image and what not |
|||||||
#13
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
Ok, I changed what I had which was:
Code:
to (the only difference in your code & mine) Code:
and that did not work to update the prices, etc.
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#14
|
|||||||||
|
|||||||||
Re: Product Options Customizaion ?
that code didnt update the price
__________________
Richard Ultimate 5.4 testing |
|||||||||
#15
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
well i checked out the javascript file itself...it seems like using radio options will break a lot of the code, its not going to be as simple as a replace
the problem with using radio inputs is that now a group of options will all share the same id and name, so its going to require more manipulation with DOM or with the naming scheme of the inputs |
|||||||
#16
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
I am good, I am not that good. Can you do it for us?!
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#17
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
when i have time i will have a crack at it
|
|||||||
#18
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
This should be close to what you're looking for. I'm not sure if it works because I have my radio button id's modified. I edited this version to work with the default x-cart installation. At a minimum, this is a good place to start for others.
Change the SELECT elements to INPUT type RADIO as mentioned in previous posts. Then... In skin1/modules/Product_Options/func.js Change: Code:
To: Code:
Let me know how it goes. -Scott
__________________
X-Cart 4.1.8 Gold Windows 2000 server |
|||||||
#19
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
It works and it works beautifully!
I never really dove into JavaScript after learning too many languages that I never have had a need for. I am getting ready to dive into JavaScript & Ajax as soon as I get time. I have determined I need to. Thanks so much! That was a very simple fix for those who know JS.
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#20
|
|||||||
|
|||||||
Re: Product Options Customizaion ?
Just make sure you put the onclick instead of onchange like last shown in post #13 (thanks inebriate!) or it will not change everything until you click away from the radio button you just clicked.
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
|
|||
X-Cart forums © 2001-2020
|