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)
-   -   help in hiding price modifier prices (https://forum.x-cart.com/showthread.php?t=31684)

mmoville 06-06-2007 04:15 AM

help in hiding price modifier prices
 
hi there. any help will be gladly appreciated.

basically i want to ask if there is anything i can do to hide the price added by the price modifier on the customer frontend but in the same time allowing it to add the price i specified in the price modifier option to the shopping cart.

For illustration purposes here's what i inserted on the admin side:
Price Modifier
Color: gray=+10
black=-10
blue=-5

client side (default display)
Color: gray (+$10.00)
black (-$10.00)
blue= (-$5.00)

what i want the client to see is:
Color: gray
black
blue

at the same time i want it to add the corresponding + and - values to the price of the item.

thank you and i hope someone out there will be generous enough to help. using x-cart 4.1.x

balinor 06-06-2007 04:27 AM

Re: help in hiding price modifier prices
 
Open up skin1/modules/Product Options/customer_options.tpl and comment out or remove this chunk of code:

{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}

Moving to Template Editing.

mmoville 06-06-2007 04:54 AM

Re: help in hiding price modifier prices
 
works like a charm! thank you very much balinor!


All times are GMT -8. The time now is 02:12 PM.

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