Forum Support

Advanced Search


Offline freepass
Free Member
Posts: 9
Posted on: September 13, 2011, 11:40:22 AM

I would like to see the product short description in the drop down cart after the item title and url link.  I know I need to modify two files but what to put in "mod_virtuemart_s5_dropdown_cart.php"?  I know just enough to locate what needs to be modified but am no good at php.

I have modified "minicart.tpl.php" at line 140:

<?php echo $cart['quantity'?>&nbsp;x&nbsp; <strong><a target="_blank" href="<?php echo $cart['url'?>"><?php echo $cart['product_name'?></a></strong>

And just inserted after this a call to short description:

<?php echo $cart['quantity'?>&nbsp;x&nbsp; <strong><a target="_blank" href="<?php echo $cart['url'?>"><?php echo $cart['product_name'?></a></strong>&nbsp;-&nbsp;<?php echo $cart['product_s_desc'?>

So what would I need to add in "mod_virtuemart_s5_dropdown_cart.php" to achieve this?  There is the following code at line 559 that calls the product name and url so something similar to this should be added I am assuming for the ['product_s_desc']

$minicart[$ci]['product_name'] = shopMakeHtmlSafe($ps_product->get_field($_SESSION['cart'][$i]["product_id"], "product_name"));

Thanks in advance!

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: September 13, 2011, 01:55:32 PM


I am sorry but something like this would require quite a bit of custom programming which we do not provide.

Jump to:  

Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by
Page created in 0.018 seconds with 20 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.