Jump to content

Show message on only certain products during checkout


ags

Recommended Posts

I want to modify the file configureproduct.tpl for the dropdown configurable option only to add a description directly under the dropdown menu on certain products.

 

Is there a smarty else if statement I can use with product IDs to do this? I have 10 products total and want to add the description to only 3 of them.

 

I was thinking something like:

 

{if $filename eq "cart.php?a=confproduct&i=4"}<h2>text here</h2>
{else} 
<h2></h2>
{/if}

 

I have some experience with smarty and php. Thank you for any help.

Edited by ags
Link to comment
Share on other sites

you could use...

 

{if $productinfo.pid eq "45"}<h2>text here</h2>{/if}

or as you have 3 products to check for...

 

{if $productinfo.pid eq "45" or $productinfo.pid eq "46" or $productinfo.pid eq "47"}<h2>text here</h2>{/if}

you can get the pid value for each product from the "Links" tab in Products/Services.

Link to comment
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated