Karoluks Posted March 14, 2014 Share Posted March 14, 2014 (edited) Hello, i got issue with product price in catalog mode i did step: Solution 2 1. product.tpl, around line 236 a. <!-- prices --> {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} 2. Change it to something like below : a. <!-- prices --> {if $product->show_price AND !isset($restricted_country_mode)} from http://prestadesigner.com/wp-content/uploads/Display-Price-On-Prestashop-Catalog-Mode.pdf and after all steps, price is shows in product-list, but still isn`t showing in product info page. Any tips? P.S sorry i dont know how to manage code to show as code source in forum. Edited March 14, 2014 by Karoluks (see edit history) 1 Link to comment Share on other sites More sharing options...
PascalVG Posted March 15, 2014 Share Posted March 15, 2014 Hi Karoluks, If I see the PDF document you posted, it seems that the 'solution 1' and 'solution 2' are not EITHER/OR choices. Solution one is for the product list, solution 2 is for the product-detail page (and comparison page), so I think you should implement both if you want it at both places. My 2 cents, pascal. Link to comment Share on other sites More sharing options...
Karoluks Posted March 15, 2014 Author Share Posted March 15, 2014 Yes, already solved that trouble, but in different way. Thanks for reply! Link to comment Share on other sites More sharing options...
PascalVG Posted March 15, 2014 Share Posted March 15, 2014 Then I mark the topic as solved. Can you maybe quickly explain what you did to fix it, or a link to where you found the solution? Maybe others are looking for the same. Thanks, pascal. Link to comment Share on other sites More sharing options...
Karoluks Posted March 16, 2014 Author Share Posted March 16, 2014 Ok, i`ll try to explain. I made changes in product.tpl file: Commented out whole code from <form id="buy_block"> just left plain form(closed form immediatly). Then took code which i need (from buy_block) and pasted below that closed form. So we got independent new div block. Mine code sample: <div class="content_prices clearfix"> <!-- prices --> {if $product->show_price AND !isset($restricted_country_mode)} {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <div class="price"> <p class="our_price_display"> {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display">{convertPrice price=$productPrice}</span> <!--{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if}--> {/if} </p> {if $product->on_sale} <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/> <span class="on_sale">{l s='On sale!'}</span> {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} <span class="discount">{l s='Reduced price!'}</span> {/if} {if $priceDisplay == 2} <br /> <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span> {/if} </div> <p id="reduction_percent" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}><span id="reduction_percent_display">{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}</span></p> <p id="reduction_amount" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|intval ==0} style="display:none"{/if}> <span id="reduction_amount_display"> {if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' AND $product->specificPrice.reduction|intval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} </span> </p> <p id="old_price"{if !$product->specificPrice || !$product->specificPrice.reduction} class="hidden"{/if}> {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span> <!-- {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if} --> {/if} </p> {if $packItems|@count && $productPrice < $product->getNoPackPrice()} <p class="pack_price">{l s='Instead of'} <span style="text-decoration: line-through;">{convertPrice price=$product->getNoPackPrice()}</span></p> <br class="clear" /> {/if} {if $product->ecotax != 0} <p class="price-ecotax">{l s='Include'} <span id="ecotax_price_display">{if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if}</span> {l s='For green tax'} {if $product->specificPrice AND $product->specificPrice.reduction} <br />{l s='(not impacted by the discount)'} {/if} </p> {/if} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price} <p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'}</p> {/if} {*close if for show price*} {/if} Hope this helps, Karoluks Link to comment Share on other sites More sharing options...
PascalVG Posted March 17, 2014 Share Posted March 17, 2014 Thanks, Karoluks! 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