X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Option "default" in v4.3.1 (https://forum.x-cart.com/showthread.php?t=52187)

Petepots 02-05-2010 12:19 PM

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

balinor 02-05-2010 12:57 PM

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&

Petepots 02-05-2010 01:34 PM

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

balinor 02-05-2010 02:01 PM

Re: Product Option "default" in v4.3.1
 
in the skin1 directory are where all the templates are

Petepots 02-06-2010 08:14 AM

Re: Product Option "default" in v4.3.1
 
2 Attachment(s)
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}%

Petepots 02-11-2010 08:35 AM

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


All times are GMT -8. The time now is 09:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.