Jump to content

JonQCoder

Recommended Posts

Hello, I am in the process of converting our old CRE site over to Prestashop and so far it's been absolutely wonderful, however, I am a bit stuck. I would like to display "Coming Soon" where the featured product price is $0.00, but can't seem to figure out how. I was able to get the actual product page to display "coming soon" through another topic I found in a search here, but trying to apply that same thing to featured products causes the site to return blank. Any suggestions? I'm using Prestashop 1.5.6.2. New to prestashop, but familiar with php development.

Link to comment
Share on other sites

hello

what theme you use?

 

you can add simple if condition to homefeatured.tpl file

 

something like:

if product price = 0 then display: cooming soon

 

{if $product.price == 0}

{l s='cooming soon' mod='homefeatured'}
{/if}

Link to comment
Share on other sites

I am using the Anchor theme from templatemonster.com. I attempted to add the code you suggested to modules/homefeatured/homefeatured.tpl at line 46 but it still showed $0.00 instead of "Coming Soon". The code at that line before the changes is:

 {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}    <div style="height:21px;"></div>{/if}

I added the code you suggested in the else part of it, but changed it to:

{if $product.price == 0}
  {l s='cooming soon' mod='homefeatured'}
{else}
  {convertPrice price=$product.price_tax_exc}
{/if}
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...