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)
-   -   Fixing the way Product Options (Price Modifier) is Displayed? (https://forum.x-cart.com/showthread.php?t=41023)

egypt13 07-10-2008 10:06 AM

Fixing the way Product Options (Price Modifier) is Displayed?
 
When I add the price modifier product option to a product I want to sell by the each and by the case displays like this in the drop down menu:

Case / 12 each ( $+16.59)

Since the single item is $ 1.69 it adds +$16.59 to total up to $18.28 which is the correct sell price. The problem is that customers are confused by the ( $+16.59) and assume the case price is $16.59

So I need to remove the ( $+16.59) from being displayed in the product option so it just says:

Case / 12 each

I am assuming this is somewhere in /modules/product_options... somewhere

Any ideas???

Thedae2k 07-21-2008 09:50 AM

Re: Fixing the way Product Options (Price Modifier) is Displayed?
 
You would modify the skin1/modules/Product_Options/customer_options.tpl.

I believe this is the file you would edit and either remove this section or remove the {if $o.modifier_type ne '%'}{include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}{else}{$o.price_modifier}%{/if} that is between the ( ) below.


{if $v.is_modifier eq 'T'}
<input id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default|escape}" />
{else}
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();"{/if}>
{foreach from=$v.options item=o}
<option value="{$o.optionid}"{if $o.selected eq 'Y'} selected="selected"{/if}>{$o.option_name}{if $v.is_modifier eq 'Y' && $o.price_modifier ne 0} ({if $o.modifier_type ne '%'}{include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}{else}{$o.price_modifier}%{/if}){/if}</option>
{/foreach}
</select>
{/if}

This is not tested but rather a starting point.

yulelogger 03-09-2011 05:28 PM

Re: Fixing the way Product Options (Price Modifier) is Displayed?
 
Quote:

Originally Posted by egypt13
When I add the price modifier product option to a product I want to sell by the each and by the case displays like this in the drop down menu:

Case / 12 each ( $+16.59)

Since the single item is $ 1.69 it adds +$16.59 to total up to $18.28 which is the correct sell price. The problem is that customers are confused by the ( $+16.59) and assume the case price is $16.59

So I need to remove the ( $+16.59) from being displayed in the product option so it just says:

Case / 12 each

I am assuming this is somewhere in /modules/product_options... somewhere

Any ideas???


Hello Egypt13,
I would like to do the same thing.
Just wondering if removing the code that was referenced by Thedae2k worked or not? Seems like removing code is not such a great idea?:?

qualiteam 03-16-2011 11:55 PM

Re: Fixing the way Product Options (Price Modifier) is Displayed?
 
You can comment out the code using Smarty comments tags instead of removing it: {* commented code *}

yulelogger 03-17-2011 08:38 AM

Re: Fixing the way Product Options (Price Modifier) is Displayed?
 
Thank you Qualiteam!

I would like to add that Roman Nikiforov (from Helpdesk) suggest's:

"The 'price modifiers' is the type of a product options which changes the 'parent' product type
The product variant - is a separate product with its own price.
For more detailed information please refer to the following article:
http://help.qtmsoft.com/index.php?title=X-Cart:Product_Options

and see the following chapter:
http://help.qtmsoft.com/index.php?title=X-Cart:Product_Options#Managing_Product_Variants"

So, I understand that to mean setting up my products (single units and cases) in this scenario as a variant is more appropriate than an price modifier- I suppose? Also, if it is a variant, the price is not displayed next to the product in the drop down!:D/


All times are GMT -8. The time now is 01:08 AM.

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