2

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

1

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()); ?>
  • hi, thanks a lot for your help. can you please tell me, where i have to add above code? in which file, i have featured_grid.phtml and featured_list.phtml in public_html/app/design/frontend/default/galaelectronues/template/em_featured_products. thanks in advance – Baby in Magento Sep 5 '14 at 4:30
  • put featured_list.phtml and featured_grid.phtml on question – Amit Bera Sep 5 '14 at 4:35
  • hi, featured_grid.phtml => pastebin.com/HQXN2ZbJ – Baby in Magento Sep 5 '14 at 4:37
  • hi, featured_list.phtml = > please tell me on which line number i have to place the code.... – Baby in Magento Sep 5 '14 at 4:39
  • check this....... – Amit Bera Sep 5 '14 at 4:45
1

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 .............

  • hi, thanks a lot for reply, can you please tell me on which line it is there, because i could't able to find thst code. thanks in adavcne. – Baby in Magento Sep 5 '14 at 6:25
1

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.

enter image description here

  • hi, thanks a lot for your reply, i will check and reply soon.... – Baby in Magento Sep 5 '14 at 5:20
  • hi, please visit this links , themaorishop.co.nz themaorishop.co.nz/cremes.html you are right, if i change in featured products related css, categories pages css is altering, and viceversa. i am really in big trouble now. please give me some solution. – Baby in Magento Sep 5 '14 at 5:32
  • check theme style.css and solve follow the above steps – Keyul Shah Sep 5 '14 at 5:35
  • your developer has changes some css so this issue arise – Keyul Shah Sep 5 '14 at 5:35
  • please visit both links and hover on product names, and change left:15px; if i change left in home page, themaorishop.co.nz/cremes.html this page name is moving. – Baby in Magento Sep 5 '14 at 5:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.