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

Product Option "default" in v4.3.1

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-05-2010, 12:19 PM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Product Option "default" in v4.3.1

What I want to do is to have a force option whn buying a product i.e.

Select Colour
Blue
Brown

Now I want to force the user to select Blue or Brown, its been done on v4.1.* but I want to do this in v4.3.1

Balinor has done it see example
REMOVED BY MOD
__________________
Version 4.7.2
Reply With Quote
  #2  
Old 02-05-2010, 12:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product Option "default" in v4.3.1

I removed the link, as that client is kind of anal about their stats.

Here's the mod that does what you want:

http://forum.x-cart.com/showthread.php?t=20904&
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-05-2010, 01:34 PM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Product Option "default" in v4.3.1

OK Balinor I understand

Firstly I don't now see any .tbl only php code, so I am not sure whether I can use that code as so much has changed in v4.3.1.

/modules/Product_Options/customer_options.tpl is not at this location

Peter
__________________
Version 4.7.2
Reply With Quote
  #4  
Old 02-05-2010, 02:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product Option "default" in v4.3.1

in the skin1 directory are where all the templates are
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-06-2010, 08:14 AM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Product Option "default" in v4.3.1

Thank you Balinor I have placed the bolded text where you say in v4.3.1 and I get (pic1)

what I should get is (pic2). The "Please select" is my 1st option. If I manually select this options all works very well

could you tell me where I should put this code??


{else}
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();"{/if}>
<option>Select {$v.classtext|default:$v.class}...</option>
{foreach from=$v.options item=o}
<option value="{$o.optionid}"{if $o.selected eq 'Y'} selected="selected"{/if}>
{strip}
{$o.option_name|escape}
{if $v.is_modifier eq 'Y' && $o.price_modifier ne 0}
&nbsp;(
{if $o.modifier_type ne '%'}
{include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}
{else}
{$o.price_modifier}%
Attached Thumbnails
Click image for larger version

Name:	pic1.PNG
Views:	129
Size:	7.1 KB
ID:	1850  Click image for larger version

Name:	pic2.PNG
Views:	127
Size:	6.9 KB
ID:	1851  
__________________
Version 4.7.2
Reply With Quote
  #6  
Old 02-11-2010, 08:35 AM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Product Option "default" in v4.3.1

Found the answer here
http://forum.x-cart.com/showthread.php?t=34831&highlight=Product+Options+D ropdown

This option works fine with
4.1.12 and
4.3.1
__________________
Version 4.7.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:19 AM.

   

 
X-Cart forums © 2001-2020