News:

Support the VirtueMart project and become a member

Main Menu

Max length of words in the category view. Where the set?

Started by zbig, January 13, 2015, 08:16:04 AM

Previous topic - Next topic

zbig

Where in VM3 to set the value "product_s_desc" in the display category.
Default VM3 shows max 50 words. I would like to enlarge the value of the "max length of words" in the category view, e.g. to 440 words.

In VM2: com_virtuemart/views/category/tmpl/default.php
<?php // Product Short Description
if (!empty($product->product_s_desc)) {
?>

<p class="product_s_desc">
<?php echo shopFunctionsF::limitStringByWord ($product->product_s_desc440'...'?>


Where the value "limitStringByWord" in VM3?

AH

The view is now a sublayout in vm3

do an override

templates/your template/html/com_virtuemart/sublayouts/products.php
Regards
A

Joomla 4.4.5
php 8.1

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

zbig

Thank you very much for the explanation of the problem.