Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - Asymmetric (SKU# FLEX-00017)

TOPIC: Replace add to cart button in quickview

Replace add to cart button in quickview 7 years 2 weeks ago #11331

Hi,

We intend to build our site with child variant (due to colors in our products) but the "add to cart" button is not working properly in quickview.
The problem can be seen also in your demo where you have built one product with child variant. When one tries to add a child of this product into the cart from quick view, it does nothing.

What we want is to completely remove "add to cart" button from quickview and instead to have a button ("Product details") to redirect to to the main product page. First of all we can avoid this problem and secondly we prefere someone to add something into cart from the main page and not from quickview or category (we have managed to cut the button fron categories through your vm configuration)

Thanks in advance
The administrator has disabled public write access.

Replace add to cart button in quickview 7 years 2 weeks ago #11348

Hi,

To disable the "Add to cart" button from the QuickView window (and replace with "product details" button), you can use this simple trick.

Open this PHP file:
/templates/flexible_asymmetric/html/com_virtuemart/productdetails/default.php
-OR-
/templates/flexible_asymmetric/html/com_virtuemart/productdetails/flexv2.php
(default.php or flexv2.php depends on what layout you are using for product details page)

Find this line:
 echo $this->loadTemplate('addtocart');

and replace it with this:
if ($parameter == "quicklook") { ?>
	<div id="flexibleButton"><br><a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id); ?>" class="flexibleButton" target="_parent"> Product Details </a></div>
<?php } else {
	echo $this->loadTemplate('addtocart');
}

the result will be:

Attachment ScreenShot2014-11-22at8.21.58PM.png not found



If you like Asymmetric and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Joomla-Virtuemart-Templates/Asymmetric

Rate Asymmetric and write a couple of sentences to share your experience with the support team.
It won't take more than 2 minutes from you but it is extremely important for us.

Thanks in advance!

Regards,
Support
The administrator has disabled public write access.
Time to create page: 0.182 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo