cimmerin Posted October 21, 2013 Share Posted October 21, 2013 We need to remove the price from the catagory page for items that have combinations because we don't want customers to assume the lowest price is the price for that item. We want them to go to the product page without seeing the price. http://necopperworks.envisionwebdesignsonoma.com/index.php?id_category=3&controller=category Thank you,Mike Link to comment Share on other sites More sharing options...
vekia Posted October 21, 2013 Share Posted October 21, 2013 to the price block add this if condition: {if ($product.id_product_attribute == 0)} <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span>{/if} </div> {/if} Link to comment Share on other sites More sharing options...
cimmerin Posted October 22, 2013 Author Share Posted October 22, 2013 Thanks Vekia but I don't know where this price block is located. I don't see a price block under modules. Can you direct me to the right place? Thanks a bunch Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 hello in this case you have to modify .tpl file located in your theme directory: /themes/YOUR_THEME/product-list.tpl Link to comment Share on other sites More sharing options...
cimmerin Posted October 24, 2013 Author Share Posted October 24, 2013 Vekia, I added the above code to the product.tpl file and uploaded. Then I tested it and the product pages don't load. Just a blank screen. I placed it under // Parameters. Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 ok, in this case it will be necessary to turn on error reporting: open config/defines.inc.php find this line: define('_PS_MODE_DEV_', false); change to look like this: define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
cimmerin Posted October 24, 2013 Author Share Posted October 24, 2013 Okay, I had the wrong file. I had product.tpl instead of the product-list.tpl. I put the code in the product-list.tpl and the price is still showing in catagories. Everything works but the price is still there. Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 ok, so you recompiled theme? (force compile on and cache of under adv. parameters > performance tab) Link to comment Share on other sites More sharing options...
tomerg3 Posted October 24, 2013 Share Posted October 24, 2013 Instead of hiding the price, you can let the customers see all the options, which will update the price as well. See http://www.prestashop.com/forums/topic/79758-module-product-list-attributes-allow-customers-to-select-product-attributes-on-the-category-manufacturer-supplier-and-search-pages/ Link to comment Share on other sites More sharing options...
cimmerin Posted October 24, 2013 Author Share Posted October 24, 2013 My client doesn't want that module. She doesn't want a commercial feel to her site so she wants the price removed for products in the catagory. Is there someone who can do this for us? Thanks Mike Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now