Jump to content

Resolved - Add Condition to Product Page


mitchellds

Recommended Posts

Version: CubeCart 5.1.4

OK, this may be super simple but I think the idea is super-logical.

When you create a product, one of the attributes of a product is it's "Condition." For example, from the "Condition" drop-down list, you select "New," "Used," or "Refurbished."

What I want to happen is to have this product "Condition" displayed on each product's page. Right now, each product displays the product price, the manufacturer, and the stock level like:

$94.50

Manufacturer: Zap!

Stock Level: 1

What I want to achieve is the following:

$94.50

Condition: New

Manufacturer: Zap!

Stock Level: 1

Link to comment
Share on other sites

Add to content.product.php


<!--added to show condition-->

{if $PRODUCT.condition}

<div style="text-transform: capitalize;">

<li><strong>{$LANG.catalogue.condition}</strong>{$PRODUCT.condition}</li></div>

{/if}

<!--end-->

All our items are used, and we finally stopped getting questions about them being new or used after adding this to the listing itself. It didn't matter that the notice that all are used was in the slider on every page, plus in the TOS.

Link to comment
Share on other sites

Dirty Butler,

Thank you very much for the help!

Your simple modification worked perfectly!

I made a couple of very light adjustments to your code:


<!--added to show condition-->

  {if $PRODUCT.condition}

  <div style="text-transform: capitalize;">

  {$LANG.catalogue.condition}: {$PRODUCT.condition}</div>

  {/if}

   <!--end-->

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