VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: wilkelly2 on August 23, 2013, 17:07:29 PM

Title: Removing product name from "Add to Cart Pop Up"
Post by: wilkelly2 on August 23, 2013, 17:07:29 PM
I want to remove the product name from the Pop Up window when adding a product to the cart.  I want to leave the Continue Shopping and View Cart links.  I have commented out some of the code below the links in the padded.php file but it either makes the pop up hang or continues to show the product.  Any help will be appreciated.  Thanks, Bill
Title: Re: Removing product name from "Add to Cart Pop Up"
Post by: jenkinhill on August 23, 2013, 17:56:27 PM
For VirtueMart 2.0.22b in padded.php find the code:
echo '<h4>'.JText::sprintf('COM_VIRTUEMART_CART_PRODUCT_ADDED',$this->product->product_name,$this->product->quantity).'</h4>';
Change to
echo '<h4> </h4>';

Use the edited file as a template override so it does not get overwritten during VM updates.
Title: Re: Removing product name from "Add to Cart Pop Up"
Post by: wdad on November 29, 2013, 16:26:26 PM
I have the same problem.
Where must I save the padded.php override?

Thanks,
Helmut
Title: Re: Removing product name from "Add to Cart Pop Up"
Post by: jenkinhill on November 30, 2013, 13:55:03 PM
[yourjoomlatemplate]/html/com_virtuemart/cart/padded.php

See http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Title: Re: Removing product name from "Add to Cart Pop Up"
Post by: wdad on December 02, 2013, 16:20:03 PM
works fine

Thanks,
Helmut