Forum Support

Shape 5
March 28, 2024, 11:24:47 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Showing product short description in drop down  (Read 633 times)
freepass
Jr. Member
**
Offline Offline

Posts: 9



« 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
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 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

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
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.