Jump to content

Revates not working properly, price shown is 0.00€


Recommended Posts

Hi, I am trying to apply revates on some products but I see that the new price is not shown correctly in the product page, I see 0.00 € as new price.

 

If I add the product in the cart the new price is shown correctly (within the cart).

 

Here you have an example:

http://mytheclothing...sa-pruebas.html

 

I think the problem is related to the free theme used in this store, but I'm not sure.

 

I am using PrestaShop version 1.5.3.1.

 

Anyone can help me identify where the problem is or where to have a look?

 

Thanks a lot!

Ernesto.

Edited by Caballo Renoir (see edit history)
Link to comment
Share on other sites

  On 7/2/2013 at 12:58 PM, PrestaCoder.com said:

It may be from the theme. To check if is from the theme or not, just switch to the default theme and check to see if the prices does modify or not.

 

I've checked the theme (switching to the default one) and works perfectly.

See the img below:

e1xy.png

 

 

Do you know what piece of code (and what file) I should copy from one theme to another to make it work??

Link to comment
Share on other sites

In your theme folder you will find product.tpl and there search this lines of code.

<span class="our_price_display">
	   <span id="our_price_display">28,00 €</span>
		   IVA incluído				 </span>

And open default theme's product.tpl and find same block there our_price_display and then compare the code. The price block is this .

  <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>

 

And this may give you a way to solve. Inform me if you need any further help.

  • Like 1
Link to comment
Share on other sites

  On 7/3/2013 at 12:11 AM, smartdatasoft said:
In your theme folder you will find product.tpl and there search this lines of code.
  28,00 € IVA incluído  

And open default theme's product.tpl and find same block there our_price_display and then compare the code. The price block is this .

{if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {/if}{if $product->on_sale} [img={$img_dir}onsale_{$lang_iso}.gif] {l s='On sale!'} {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} {l s='Reduced price!'} {/if} {if $priceDisplay == 2}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'} {/if}

And this may give you a way to solve. Inform me if you need any further help.

 

I'll check this out later and let you know.

 

Many thanks!!

Ernesto.

Link to comment
Share on other sites

Hi,

 

I've been trying to check the code refeering to 'our_price_display' and '$product->specificPrice' and copying pieces of code to one TPL file to another, but nothing yet, I still see 0.00€ in my product page...

 

My lack of knowledge of PHP doesn't help...

 

If anyone can help me here you have the two TPL files:

https://mega.co.nz/#!id0lBRCR!ThSRTCKJM4j5lFZtEl8tmn_rRJtkeN2RgFza8mRWbGw

 

Thank you all!

Ernesto.

Link to comment
Share on other sites

×
×
  • Create New...