andyshears Posted April 5, 2023 Share Posted April 5, 2023 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 But not show here, but use the automatic insertion details ? 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 5, 2023 Share Posted April 5, 2023 (edited) 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 April 5, 2023 by bsmither Quote Link to comment Share on other sites More sharing options...
andyshears Posted April 6, 2023 Author Share Posted April 6, 2023 "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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 6, 2023 Share Posted April 6, 2023 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". 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.