Remove plus (+) sign shown in product option price.

Hello,



How do I get rid of plus (+) sign shown in product option price? I am using latest version of CS Cart. I have attached an image to show this symbol.



Your prompt help is appreciated.



Regards,



AG

price symbol.jpg

Hello impactreact,



Thank you for your message.



Some code modifications are required to implement this feature. We would be happy to assist you in this matter within our technical support service. Please contact us via Customer Help Desk if you have support credits or an active support period.



Thank you.





Pavel Zyukin

CS-Cart Support team

Thanks Pavel, is there any quick fix for this?



AG

I turn off the option modifiers and add them in manually, and when importing 1000s I just use concatenate in my spreadsheet to apply with the option name.



long winded but works

The modifiers are controlled with:


{if $display_sign}{if $class}{/if}{if $mod_value > 0}+{else}-{/if}{if $class}{/if}{/if}



In skins/your-skin/customer/common_templates/modifier.tpl



I guess a guy could remove the + and - symbols. It might not be the best way, but it should work.



I hope that helps,



Brandon

Thanks Brandon,

I had to do this many versions ago, but forgot the tpl.

I found how I did it, possibly, back in the 1.3.5 days.

Maybe still applicable now. Looks like I commented out a section.

Bob[list=1]

[]Remove + sign from the price.

[/list]

[list]

[
]New Code: Commented out section

[/list]

{* $Id: modifier.tpl 3620 2007-08-10 08:07:37Z zeke $ }

{strip}

{if $is_integer == true}{assign var=“mod_value” value=$mod_value|round}{/if}

[b][i]{
{if $display_sign}{if $class}{/if}{if $mod_value > 0}+{else}-{/if}{if $class}{/if}{/if} *}[/i][/b]

{if $mod_type == 'A' || $mod_type == 'F'}

{include file=“common_templates/price.tpl” value=$mod_value|abs}

{else}

{if ($span_id && !$no_ids) || $class}{/if}{$mod_value|abs}{if ($span_id && !$no_ids) || $class}{/if}{if $class}{/if}%{if $class}{/if}

{/if}

{/strip}

Follow these steps:

  1. Check if the “My changes” add-on is enabled in your CS-Cart. You are able to enable it on the “Add-ons” page in the “Administration” tab of your administration panel.
  2. Create the following directories path in the root directory of your CS-Cart installation:

    “skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/products”, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
  3. Create the “options_modifiers.override.tpl” file in the “skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/products” directory with the following content:

    {[bo"lean]}

    {if $vr.modifier|floatval}({include file=“common_templates/modifier.tpl” mod_type=$vr.modifier_type mod_value=$vr.modifier display_sign=false}){/if}

    {[/bo"lean]}


  4. Save the file.





    and:



    in the “options_info.tpl” file, located in the “skins/computer_shop/mail/common_templates” directory of your CS-Cart installation.





    replaced this part of the code:

    {if !$skip_modifiers && $po.modifier|floatval}

     ({include file=“common_templates/modifier.tpl” mod_type=$po.modifier_type mod_value=$po.modifier display_sign=true})

    {/if}



    with this one:

    {[bo"lean}

    {if !$skip_modifiers && $po.modifier|floatval}

     ({include file=“common_templates/modifier.tpl” mod_type=$po.modifier_type mod_value=$po.modifier display_sign=false})

    {/if}

    {[/bo"lean]}





    I hope this help …you .

rumburak, thank you very much, I have followed all of the steps you stated above and this has finally worked now :) I really appreciate your help.



Regards

AG

ok … great

The same process does not work for CSC 3, nor does removing the + sign in the modifier.tpl. What is the new process for removing the plus sign in CSC 3?

To remove modifier signs in CS3 is simple…



just go to common_templates/modifier.tpl and change line 3 as follows:



{if $display_sign}{if $class}{/if}{if $class}{/if}{/if}




Do not forget to clear cache (just in case).



I did not check deeper but I am sure there is a triger for this, depending on the template…