Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

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

 
  • impactreact
  • Senior Member
  • Members
  • Join Date: 10-Jan 10
  • 139 posts

Posted 22 July 2012 - 07:04 PM #1

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

Attached Thumbnails

  • price symbol.jpg


 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3810 posts

Posted 23 July 2012 - 08:47 AM #2

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

Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • impactreact
  • Senior Member
  • Members
  • Join Date: 10-Jan 10
  • 139 posts

Posted 23 July 2012 - 04:23 PM #3

Thanks Pavel, is there any quick fix for this?

AG

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4817 posts

Posted 23 July 2012 - 04:35 PM #4

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

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • brandonvd
  • is Super Awesome
  • Members
  • Join Date: 19-Dec 06
  • 2633 posts

Posted 23 July 2012 - 07:06 PM #5

The modifiers are controlled with:

{if $display_sign}{if $class}<span class="{$class}">{/if}{if $mod_value > 0}+{else}-{/if}{if $class}</span>{/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

 
  • pbannette
  • Senior Member
  • Members
  • Join Date: 09-Aug 07
  • 1036 posts

Posted 23 July 2012 - 07:20 PM #6

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
  • Remove + sign from the price.
  • New Code: Commented out section
{* $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}
{* {if $display_sign}{if $class}<span class="{$class}">{/if}{if $mod_value > 0}+{else}-{/if}{if $class}</span>{/if}{/if} *}
{if $mod_type == 'A' || $mod_type == 'F'}
{include file="common_templates/price.tpl" value=$mod_value|abs}
{else}
{if ($span_id && !$no_ids) || $class}<span id="{$span_id}" class="{$class}">{/if}{$mod_value|abs}{if ($span_id && !$no_ids) || $class}</span>{/if}{if $class}<span class="{$class}">{/if}%{if $class}</span>{/if}
{/if}
{/strip}

Version CS-Cart 4.3.5


 
  • rumburak
  • Junior Member
  • Members
  • Join Date: 05-Nov 10
  • 38 posts

Posted 24 July 2012 - 10:47 AM #7

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}
&nbsp;({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}
&nbsp;({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 .

 
  • impactreact
  • Senior Member
  • Members
  • Join Date: 10-Jan 10
  • 139 posts

Posted 24 July 2012 - 11:31 AM #8

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

 
  • rumburak
  • Junior Member
  • Members
  • Join Date: 05-Nov 10
  • 38 posts

Posted 25 July 2012 - 10:09 PM #9

ok ... great

 
  • synergy-gs
  • Junior Member
  • Members
  • Join Date: 28-May 11
  • 125 posts

Posted 16 August 2012 - 05:04 PM #10

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?

 
  • sok777
  • Senior Member
  • Members
  • Join Date: 23-Jun 11
  • 424 posts

Posted 20 August 2012 - 11:04 PM #11

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}<span class="{$class}">{/if}{if $class}</span>{/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...