Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

Locked

Views: 3,109

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
13 Nov 2009, 10:48 AM
#1
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

How do you remove the extra text that is on the attributes.
ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX

I am using version1.3.8, I am new to zencart and have been playing with it but can not get it to change to just the amount I want to add.

13 Nov 2009, 9:48 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

These should be defined in your language files, per Product type, for example:
/includes/languages/english/product_info.php

However, if those are remove, missing or commented out you will see the CONSTANT rather than the defined value ...

Check and see if your language files are out of date, damaged etc.

14 Nov 2009, 12:11 AM
#3
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

The language file is mostly dated 2005, 2006, 2007. Where do I find a update for them and which ones do I need to update?
Oh by the way, thank you very much for replying.

14 Nov 2009, 12:26 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

First, try switching to the Classic Template ... does this take away the constants?

If so, then compare the original language files to your templates and overrides language files ...

If not, get a clean Zen Cart v1.3.8 and compare the language files to see where you are missing the definitions ...

A program such as Beyond Compare from scootersoftware.com would help you with the comparisons ...

14 Nov 2009, 5:06 AM
#5
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

I forgot to add something, it only does this when I add a price to the attributes. When I only have like a color it does not show up like that.

14 Nov 2009, 10:58 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

As Ajeh suggested, switch to the Classic template and see if the problem goes away. If so, then your product_info.php file in your custom template is corrupted or has been edited improperly. You can copy a new version from a new Zencart zip file.

The problem only shows up when you add a price because those are the constants which deal with prices.

16 Nov 2009, 5:28 PM
#7
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

Okay I changed it back to the classic one and it still did the same thing. Do I need to just upload that one file or do I need to upload everything again.

16 Nov 2009, 5:44 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

You appear to be missing language definitions, example:

/includes/languages/english/document_general_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

/includes/languages/english/document_product_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

/includes/languages/english/product_free_shipping_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

/includes/languages/english/product_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

/includes/languages/english/product_music_info.php

Line #46 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

plus others ...

This strikes me as you do not have these, and possibly other files, up to date with the current language files ...

You need to review your files to see which are missing these, and possibly other define statements ...

16 Nov 2009, 6:03 PM
#9
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

I tried to compare them using the software you told me to and it could not read a php file.

16 Nov 2009, 6:51 PM
#10
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

okay I uploaded a new language file and it still doing the same thing.

16 Nov 2009, 10:18 PM
#11
liz01 avatar

liz01

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

Thank you everyone for your help. I finally got it. :clap:

16 Nov 2009, 11:45 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

What was the solution that finally worked for you? :smile:

20 Nov 2009, 12:42 PM
#13
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: How to remove ATTRIBUTES_PRICE_DELIMITER_PREFIX+ ATTRIBUTES_PRICE_DELIMITER_SUFFIX ?

I had this problem and solved it in the following steps:

In:
/incudes/languages/english/
document_general_info.php
document_product_info.php
product_free_shipping_info.php
product_info.php
product_music_info.php

Put the code in line 46 as Ajeh explain
define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ');

End

Put the code in line 47
define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' ');

:smartalec: