Jump to content

How to add on picture (NEW or USED)?


rox

Recommended Posts

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}

 

Link to comment
Share on other sites

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.

 

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...