Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Product Options Customizaion ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 09-11-2007, 01:11 PM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Product Options Customizaion ?

Well done indeed
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #22  
Old 09-11-2007, 01:19 PM
 
pyap pyap is offline
 

Member
  
Join Date: Aug 2004
Posts: 16
 

Default Re: Product Options Customizaion ?

Glad I could be helpful.

Enjoy.
__________________
X-Cart 4.1.8 Gold
Windows 2000 server
Reply With Quote
  #23  
Old 09-11-2007, 01:30 PM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Product Options Customizaion ?

I just checked and this doesnt work in Firefox or Safari
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #24  
Old 09-11-2007, 01:58 PM
 
pyap pyap is offline
 

Member
  
Join Date: Aug 2004
Posts: 16
 

Default Re: Product Options Customizaion ?

I have it working in the following browsers:

Firefox 2.0.0.6 for Mac
Safari 2.0.4 for Mac
IE 6.0.29 for PC
Firefox 2.0.0.6 for PC
__________________
X-Cart 4.1.8 Gold
Windows 2000 server
Reply With Quote
  #25  
Old 09-15-2007, 08:29 PM
 
typologist typologist is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 51
 

Default Re: Product Options Customizaion ?

How do you validate, in order to make appear a warning message if no option is selected? If you dont do this, the first option is selected and added to the cart.
__________________
4.1.8 Gold (Unix)
Reply With Quote
  #26  
Old 09-17-2007, 07:53 AM
 
pyap pyap is offline
 

Member
  
Join Date: Aug 2004
Posts: 16
 

Default Re: Product Options Customizaion ?

You could validate with javascript, but it's a lot easier if you force a selection to start with:

Code:
<input type="radio" name="{$poname}" value="{$o.optionid}" {if $o.selected eq 'Y'}checked="checked" {/if} onclick="check_options();"/>
__________________
X-Cart 4.1.8 Gold
Windows 2000 server
Reply With Quote
  #27  
Old 09-17-2007, 08:09 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Product Options Customizaion ?

Quote:
Originally Posted by pyap
I have it working in the following browsers:

Firefox 2.0.0.6 for Mac
Safari 2.0.4 for Mac
IE 6.0.29 for PC
Firefox 2.0.0.6 for PC


Could you please tell me, did you do something different? I finally got back here to ask. The buttons work as in getting the right selection in the cart but they do not update in FF 2.0.0.6 for me. You can check this product (one with variants)

http://highlandhiker.com/Eagle-Creek-Tarmac-ES-22-Rolling-Carry-On-p-70.html

The sku and image are not changing in FF, only in IE.

Thanks!
__________________
-
-
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
Reply With Quote
  #28  
Old 09-17-2007, 01:49 PM
 
pyap pyap is offline
 

Member
  
Join Date: Aug 2004
Posts: 16
 

Default Re: Product Options Customizaion ?

I flipped through your code, compared to mine, this should fix the problem:

Code:
/* Get product option value -modified */ function getPOValue(c) { if (document.getElementsByName('product_options['+c+']')) { var radios = document.getElementsByName('product_options['+c+']'); for (var i = 0; i < radios.length; i++) { if (radios[i].checked) { return radios[i].value; } } } }

I fixed the original post #18 to show this code. All that is changed is:

'po'+c is now 'product_options['+c+']'

My apologies. That is my fault. I didn't check the code that I posted.
__________________
X-Cart 4.1.8 Gold
Windows 2000 server
Reply With Quote
  #29  
Old 09-18-2007, 08:45 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Product Options Customizaion ?

Thanks Pyap!

It works perfectly in FF now.

I do appreicate your time in helping me get this working. I have just been pedal to the metal and not had time to stop and figure everything out.
__________________
-
-
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
Reply With Quote
  #30  
Old 09-18-2007, 08:56 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Product Options Customizaion ?

Quote:
Originally Posted by pyap
I have it working in the following browsers:

Firefox 2.0.0.6 for Mac
Safari 2.0.4 for Mac
IE 6.0.29 for PC
Firefox 2.0.0.6 for PC


It works in IE for me, but the price doesnt change for me when I change an option in other browsers.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:07 AM.

   

 
X-Cart forums © 2001-2020