News:

Support the VirtueMart project and become a member

Main Menu

how to limit product titile text in category layout?

Started by skhn123, June 10, 2014, 10:22:54 AM

Previous topic - Next topic

skhn123

Hello Members,

I have searched forum and read some related thread but couldn't find anything useful regarding my issue. maybe someone can help me.
my problem is that i want to limit the product title text in category layout but i don't know how to implement this:
<?php echo shopFunctionsF::limitStringByWord($product->product_name20'...'?>

into this:
<?php echo JHTML::link($product->link$product->product_name); ?>

Joomla 2.5.17 VM 2.6.0

i am using overrides.

thanks

GJC Web Design

how about

<a href="<?php echo $product->link?>">

<?php echo shopFunctionsF::limitStringByWord($product->product_name20'...'?>

</a>


or


<?php 
$product
->product_name shopFunctionsF::limitStringByWord($product->product_name20'...'); 
echo 
JHTML::link($product->link$product->product_name); 

?>


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

skhn123