add to cart button on featured products is not working

by Baby in Magento   Last Updated July 11, 2018 09:09 AM

please visit this link : on home page, "add to cart button" on featured products is not working.



Answers 3


on the button you cart button did not have addtocart link.. so it issue

you want addtocart url of a product then you below code

Mage::helper(checkout/cart)->getAddUrl($productOjebect,$additional = array());

and then

line near 74: change

<?php echo $this->getAddToCartUrl($_product) ?>

to

<?php echo  Mage::helper(checkout/cart)->getAddUrl($_product,$additional = array()); ?>
Amit Bera
Amit Bera
September 05, 2014 04:26 AM

Hello I have Found that all your all code is working fine

The Problem is CSS because you design is not good.

please check my image and remove the Position: relative; from .products-grid .price-box

Refresh your cache and Enjoy.

let me know if any comments.

enter image description here

Keyul Shah
Keyul Shah
September 05, 2014 05:00 AM

Hi guys i saw your site is looking good.I find the solution to you problem.just css error instead core code change

.products-grid .btn-cart{ remove the (float:right) }

then it will work .............

Sourav
Sourav
September 05, 2014 06:21 AM

Related Questions


Featured Product missing in magento 9.1

Updated May 17, 2018 09:09 AM

Homepage block doesn't hold to column count

Updated July 06, 2015 14:04 PM

How to display featured products in cms homepage...?

Updated January 26, 2017 14:03 PM