If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Remove Attribute Price from Product Listing

Remove Attribute Price from Product Listing

Started by nicksab on 12 Apr 2024, 12:10 AM · Views: 887

Results 1 to 4 of 4
12 Apr 2024, 12:10 AM
#1
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #1 by nicksab

ZC 1.5.7
Bootstrap Template

How can I remove the attribute price from product info page?

Regardless of the attribute type ( checkbox or radio), I would like the attribute price to be remove or hidden?

Basically, remove the whole (+$$$) part

I saw a couple of old threads with commenting out the ATTRIBUTE_PRICE in attributes.php but it is not working for me.

Language files only works for the "(" or ")"

Any helps would be appreciated

Thank you

12 Apr 2024, 12:20 AM
#2
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #2 by nicksab

Find it. Not sure if it is the correct way but based on this https://www.zen-cart.com/showthread.php?113174-Remove-(-)-from-attribute-price

I commented out in attributes.php ```
// $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;

12 Apr 2024, 1:29 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #3 by lat9

Hopefully, you commented that line out in your active template's override of that module, i.e. /includes/modules/{your-template}/attributes.php.

13 Apr 2024, 1:58 AM
#4
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Post #4 by nicksab

lat9:

Hopefully, you commented that line out in your active template's override of that module, i.e. /includes/modules/{your-template}/attributes.php.

Thanks lat9 for pointing this out and i did commented that line in /includes/modules/bootstrap/attributes.php

Bootstrap being a great template, i forget to mention the override path these days. :D