Hi,
I must tell you that "CleanMart" doesn't remove anything. CleanMart truncate the short description on ListView by
limitStringByWord() function, which is already a Virtuemart Core function. Allows only 100 word via this PHP expression:
<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 100, '...') ?>
but this also doesn't remove any HTML line, it just removes the words after 100th.
To print the full short description, below PHP expression should be used (without the
limitStringByWord() function)
<?php echo $product->product_s_desc; ?>
Clearing HTML tags from product_s_desc is "Virtuemart Core" related thing and it is taken care in the VM Backend. Once you enter the HTML to the field and click SAVE, the HTML tags are removed and the plain text is saved to the DATABASE. Which is normal, because "short description" is used as META Description (on product details page). If the HTML tags won't be removed, the META Description will include HTML tags. It would destroy the SEO. You shouldn't use HTML within the short description field.
There is one more field you can use, it is called "Internal Notes"
It is a textarea field (just like short description and full description), it is located below the "Product Price" row. (usually nobody notices that field is exist)
Attachment Pasted_Image_12_26_14__6_06_PM.png not found
You can use that field.
To print that field on category page, use this PHP expression:
<?php echo $product->intnotes ?>
To print that field on product page, use this PHP expression:
<?php echo $this->product->intnotes ?>
If you like CleanMart and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Virtuemart-2-Templates/CleanMart
Write couple of sentences to share your experience with the support team.
Just 2-3 sentences would be enough ;) It might sound simple to you, but it is extremely important. Potential customers care about product reviews very much.
Thanks in advance!
Regards,
Support