rox Posted July 8, 2015 Share Posted July 8, 2015 Hello,How to add on each product picture (NEW or USED) word?I am using cubecart 6.Thank you. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted July 8, 2015 Share Posted July 8, 2015 Are you asking it you can get the Condition of the product printed above or below the main product image? Is this on the individual product page, or the category page?All our items are used, and it was easy to add a blurb above the picture saying that. Condition should be easy enough to add on the individual product.Here's what the code looks like in the Specifications tab, and should be easy to modify to suit you.{if $PRODUCT.condition} <tr> <td>{$LANG.catalogue.condition} </td> <td>{$PRODUCT.condition}</td> </tr> {/if} Quote Link to comment Share on other sites More sharing options...
rox Posted July 9, 2015 Author Share Posted July 9, 2015 I want to add like in this picture: (On SALE) or any other word.But where? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 9, 2015 Share Posted July 9, 2015 In the file cubecart.default.css, add these rules:.panel { position: relative; } .condition_flag { position: absolute; padding: 3px; border: 1px solid black; right: 0; top: 0; background-color: white;}Then, in the template content.homepage.php:Find: {foreach from=$LATEST_PRODUCTS item=product} <li> <form action="{$VAL_SELF}" method="post" class="panel add_to_basket"> Add After: <div class="condition_flag">{$PRODUCT.condition}</div>Similar solutions can be had for the content.category.php and content.product.php templates. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.