Jump to content

Modify content.product.php


Kimchi

Recommended Posts

I am trying to modify this code to display either per pair or per vest or per item based on the cat_parent_id not the cat_id but I am having difficulty

All help is appreciated

 

      {if $PRODUCT.cat_id != '34'}
           (${math equation="price / division" price=$PRODUCT.price|replace:':'' division=12 format="%.2f"}
           {if $PRODUCTS.cat_id != '22'}
             per pair)
           {else}
             per vest)
        {/if}

 

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.

×
×
  • Create New...