Forum Support

 
Advanced Search


[1]

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:

Code:
<?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:

Code:
<?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']

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

Thanks in advance!
Logged

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

Hello,

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

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.017 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.