Jump to content
malcek

On Product Page Flag For New Product

Recommended Posts

Ho I want to display NEW flag on Product page on picture. Does anybody have idea how to do that?

 

Best regards,

Martin

Share this post


Link to post
Share on other sites

it's very simple, just add code below anywhere you want on product page :) (by that i mean product.tpl template file located in your theme directory)

    {if $product->new ==1}
	    <h1>new product!</h1>
    {/if}

Share this post


Link to post
Share on other sites

HI,

thanks for your help, but it doesen't work :(.

 

I attached product.tpl and in line 84 I add your code

 

best regards

 

Martin

product.zip

Share this post


Link to post
Share on other sites

i checked my code in ps 1.5.x

 

which version of prestashop you use?

Share this post


Link to post
Share on other sites

I have 1.4.9.0.

 

I'm too afraid to upgrade to 1.5.x, since on my testing server upgrade fail :(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More