Jump to content

Displaying Short Description


Recommended Posts

Hi all,

1) Is it possible to show the "short description" in an area in the "Item description" below the price and buy button, but not show the short description in the product overview listing ?

EG.. show here

cubecart1-min.png.aab01d8038338e8fbd027316eb33ff14.png

But not show here, but use the automatic insertion details ?

cubecart2-min.png.870b4aab429c9fb82a2a484abc8832ce.png

If it is possible, where do you insert the code and what would the code be to display contents of short description ?

I want to insert some short custom text for each product, like a table which contains details of qty discounts, special offers, a short description of the product say 150 characters, etc etc.

Regards

 

 

Link to comment
Share on other sites

In the Foundation skin template "element.call_to_action.php", at the end of the file, add:

<hr>
<div>
  {$PRODUCT.description_short}
</div>

In the Foundation skin template "content.category.php", find:

Near line 97:
{$product.description_short}

Change to:
{* $product.description_short *}

The change above makes the template code into a template comment.

I do not know what you mean by "automatic insertion details".

In admin, Store Settings, Layout tab, Product Precis (latest versions of CubeCart now call this "Maximum Short Description Length"), set this to a higher number if you find that the Short Description is getting cut short.

Edited by bsmither
Link to comment
Share on other sites

"automatic insertion details" by that I mean, if you insert text into the short description area, this is displayed in the product overview description instead of being extracted from the item description.

If by doing the above, will this still allow insertion from the item description area ?

Regards

Link to comment
Share on other sites

There are separate variables for "description" and "description_short".

If nothing is entered in the Add/Edit Product's "Short Description" editor box, then for the "description_short" variable, CubeCart will use the beginning of the "description" variable, having removed everything that is not simply text, up to the number of characters set in Product Precis. Otherwise, having Short Description content will be used for "description_short".

 

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