Forums / Setting Up Categories, Products, Attributes / How to remove the price eg - (+£.105) from the attributes

How to remove the price eg - (+£.105) from the attributes

Locked

Views: 1,188

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Nov 2008, 3:20 PM
#1
jasonrocket avatar

jasonrocket

New Zenner

Join Date:
Oct 2008
Posts:
59
Plugin Contributions:
0

How to remove the price eg - (+£.105) from the attributes

Can any one tell me where I can remove the price eg - (+£.105) from the attributes?

I found a file called attributes.php in the modules directory. This is a big file and I can't seem to find out what I need to change. Unless there is a way to change this in the admin?

Thanks

Jason

26 Nov 2008, 3:55 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: How to remove the price eg - (+£.105) from the attributes

Have you explored any of the threads asking the same question? Scroll down this page the the Related Threads section to start.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

27 Nov 2008, 11:47 AM
#3
jasonrocket avatar

jasonrocket

New Zenner

Join Date:
Oct 2008
Posts:
59
Plugin Contributions:
0

Re: How to remove the price eg - (+£.105) from the attributes

Kim:

Have you explored any of the threads asking the same question? Scroll down this page the the Related Threads section to start.

Hi Kim

I did try searching before I started this thread.I couldn't find anything. I searched yet further and i've found that by removing the code below from attributes.php on line 158 removes the price, but....

$products_options_display_price=  ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
                          $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;

Now the dynamic price updater does not work, so i tried adding in <span> tags around the code above. for example, but...

 $products_options_display_price= '<span>' . ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
                          $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX . '</span>';

But the SPAN tags come out as text on the page instead of html. Does anyone know why? Or is there a PHP method I can add to have it output as html?

Thanks

Jason

27 Nov 2008, 2:09 PM
#4
jasonrocket avatar

jasonrocket

New Zenner

Join Date:
Oct 2008
Posts:
59
Plugin Contributions:
0

Re: How to remove the price eg - (+£.105) from the attributes

I just thought I'd say that I want to put tags around the price so I can change its colour.