Zen Cart Logo
Forums / All Other Contributions/Addons / Easy Populate - issue with '+' prefixes in attribute pricing

Easy Populate - issue with '+' prefixes in attribute pricing

Views: 1,833

Results 1 to 4 of 4
8 Dec 2008, 1:49 PM
#1
clairy avatar

clairy

New Zenner

Join Date:
May 2008
Posts:
6
Plugin Contributions:
0

Easy Populate - issue with '+' prefixes in attribute pricing

Can anyone help? I have set attribute features to no prefix for price in Zen Cart, but when I upload the product attribute file via EP (or reupload the txt file) all the attribute prices have a '+' sign in front of them.

Obviously I don't want it to do this. Does anyone know of a fix for this in EP, or if there is something I'm missing from the setup?

Thanks

9 Dec 2008, 10:57 PM
#2
mkopecky avatar

mkopecky

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

Re: Easy Populate - issue with '+' prefixes in attribute pricing

When you input your Price, the first box has a "+" in it. You have to manually delete the "+".

10 Dec 2008, 9:44 AM
#3
clairy avatar

clairy

New Zenner

Join Date:
May 2008
Posts:
6
Plugin Contributions:
0

Re: Easy Populate - issue with '+' prefixes in attribute pricing

Hi,
You can set the price, weight etc attribute fields not to appear with a + in, so you don't have to go and delete it every time you set up a new product. However, this doesn't work for Easy Populate.

Anyway, for anyone else who has this problem, I have found the rogue file (admin/easypopulate.php). On line 2245 it sets the prefixes to use. If you don't want a + in front of your prices remove the plus sign, so it reads:
$attribute_values_price_prefix = ($$v_attribute_values_price_var < 0) ? '-' : '';

Clair

10 Jan 2011, 4:29 PM
#4
spyro85 avatar

spyro85

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Re: Easy Populate - issue with '+' prefixes in attribute pricing

I can confirm that the advice given by clairy is correct - nice work! :D