| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Product Options Dropdown "Select XXXX..." | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Product Options Dropdown "Select XXXX..."
A lot of XC users have used the first product option as "Select Size" or "Choose..." whatever variant text is used. But, this isn't necessary. If you would rather this appeared automatically in your drop downs, then simply modify:
/modules/Product_Options/customer_options.tpl Find: Code:
Code:
That will display "Select (Option)..." where (Option) is your option text. No big deal, so you might add a javascript error so a customer must make some selections.... Add a javascript error for a couple dropdowns- one for size and the other for color perhaps? Just change the number (like 'po3') to reflect the option # found next to the option class in "product options". Put this into the bottom text area of the "product Options" page of the respective product. Code:
This is a 2-minute mod, but thought I'd share it nonetheless. I have worked many a site that uses the manual "Select..." text. - Mike
__________________
4.1.9 |
|||||||
#2
|
|||||||
|
|||||||
Hey Mike...was just looking for this exact piece of JavaScript, as I used a similar mod on a couple of sites last month for the options. Where exactly are you putting the JS?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Bottom of product options page. If you like, I can dig up a stack of others that I have written and tested for multiple dropdown errors...
- Mike
__________________
4.1.9 |
|||||||
#4
|
|||||||
|
|||||||
You mean customer_options.tpl? Tried that with no success....
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
No, the javascript just goes in the javascript validation box at the bottom of a products "product options" when they have been created. That's the last text area of the product options, but only seen when/if a product has option.
- Mike
__________________
4.1.9 |
|||||||
#6
|
|||||||
|
|||||||
Ahhhhhh.....I was trying to over-complicate things
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
Would you mind posting a link to an example?
I'm having a hard time visualizing the result. Thanks a bunch.
__________________
X-Cart Gold: 2 live sites running 4.1.x and 4.2.x Add ons: XAOM, XCONF & XFANCYCAT |
|||||||||
#8
|
|||||||
|
|||||||
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
Thanks...Just what I needed.
__________________
X-Cart Gold: 2 live sites running 4.1.x and 4.2.x Add ons: XAOM, XCONF & XFANCYCAT |
|||||||||
#10
|
|||||||
|
|||||||
Padraic- Nice simplicity to your sites. I can see your top 5 third-party mods.... good work.
- Mike
__________________
4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|