| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Pre filled search text box | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
![]() Can you do this for "product options" selection box as well? Some of our customers don't realize that if they don't choose an option, then x-cart will use the first option. I want the box to read, "Please make a slection" and not be able to process until they do.
Does anyone know the code and where to place them?
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#12
|
|||||||||
|
|||||||||
![]() That may, I would have thought, require a little more involvement including a few templates to edit and digging through the relevant javascript file that it talks to.
1. You would need to create in .tpl a default OPTION, say "Please choose". 2. With the js if the OPTION still remains as "Please choose" prompt with an alert. There's probably more to it than that. But i haven't got 4.0 code on me ![]()
__________________
Doms kube v4.1.9 |
|||||||||
#13
|
|||||||
|
|||||||
![]() No need for code. Make the first option ( # zero) a heading like CHOOSE XYZ.. Then don't allow it pass validation.
Code:
__________________
X-Cart Gold v 4.0.18 FreeBSD 6.2, Apache 2.2.11, PERL 5.8.8, PHP 5.2.10, MySQL 5.0.84 rearendparts.com |
|||||||
#14
|
|||||||
|
|||||||
![]()
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#15
|
|||||||||
|
|||||||||
![]() Improved it a little bit - say you have enter a search term, click away from the box by accident and click back on it, it will clear the contents. This coding will check to see if anything apart from the default text is in the box, and if the default text is not in the box, will not clear it.
value="{$lng.lbl_my_text}" onFocus="if(this.value=='{$lng.lbl_my_text}') this.value='';" onBlur="if(this.value=='') this.value='{$lng.lbl_my_text}';" />
__________________
Darren Kierman Carlisle Glass (http://www.carlisleglass.co.uk/) ... running X-Cart Gold 4.4.5 [unix] |
|||||||||
#16
|
|||||||||
|
|||||||||
![]() Thanks carlisle works great,
I was going to post something not to dissimilar to that - but I was worried about filling your page with excess code.
__________________
Doms kube v4.1.9 |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|