Magento 1.9 :- Add to Cart Helper - not working Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Add to cart Button on home not upgrading the cartLimiting “Add to cart” to just 1 click / item“ADD TO CART” button not working in product view pageadd to cart button not working on catalog pageMagento Add to Cart button not workingMagento 1.9: Save custom image after click on Add to cartmagento 2 Add button in cart pageadd only specific product to cartAdd to Cart button not translating on submissionMagento 2.2.3 CE, price is zero when adding to cart

Is the address of a local variable a constexpr?

Letter Boxed validator

What are the motives behind Cersei's orders given to Bronn?

Did Xerox really develop the first LAN?

When is phishing education going too far?

Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?

Antler Helmet: Can it work?

Is the Standard Deduction better than Itemized when both are the same amount?

Why is "Consequences inflicted." not a sentence?

How does a Death Domain cleric's Touch of Death feature work with Touch-range spells delivered by familiars?

How to draw this diagram using TikZ package?

Why did the IBM 650 use bi-quinary?

"Seemed to had" is it correct?

What is the correct way to use the pinch test for dehydration?

Is there a Spanish version of "dot your i's and cross your t's" that includes the letter 'ñ'?

Proof involving the spectral radius and Jordan Canonical form

When to stop saving and start investing?

Difference between these two cards?

If Jon Snow became King of the Seven Kingdoms what would his regnal number be?

What are the pros and cons of Aerospike nosecones?

Why is "Captain Marvel" translated as male in Portugal?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Gastric acid as a weapon

What's the purpose of writing one's academic bio in 3rd person?



Magento 1.9 :- Add to Cart Helper - not working



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Add to cart Button on home not upgrading the cartLimiting “Add to cart” to just 1 click / item“ADD TO CART” button not working in product view pageadd to cart button not working on catalog pageMagento Add to Cart button not workingMagento 1.9: Save custom image after click on Add to cartmagento 2 Add button in cart pageadd only specific product to cartAdd to Cart button not translating on submissionMagento 2.2.3 CE, price is zero when adding to cart



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5















I've been trying to fix a problem on an inherited Magento 1.9.1 site - the problem is coming from a custom category page I think.



The template is using the Add to Cart Helper - in what appears to be the same way as the working product list template.



On this page: http://www.trevorsorbie.com/shop/ranges.html, if you click the Add to Cart button on any product nothing is added to cart. If you log in to your account and click that button it does add to cart..



But this is working on this page: http://www.trevorsorbie.com/shop/products.html



On the ranges.html page I've used:



<a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart">
<i class="fa fa-shopping-cart"></i>
<i class="fa fa-spinner fa-spin"></i>
<span class="sr-only">Buy</span>
</a>


Any information or pointing me at reading material to fix this will be much appreciated!










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • So, what exactly is your requirement? Do you want trevorsorbie.com/shop/products.html link act like the above one?

    – Rahul Kumar Das
    Jun 9 '15 at 10:13











  • Do you want to hide add to cart if customer is not logged in?

    – Rahul Kumar Das
    Jun 9 '15 at 10:14











  • If you click the Cart button on any product trevorsorbie.com/shop/ranges.html nothing is added to cart. If you log in to your account and click that button it does add to cart. I'm trying to work out why it is not working on that page.

    – Conor Cussell
    Jun 9 '15 at 10:18











  • It's not in helper, it could be in phtml files. Follow the link I given in answer, check the addtocart.phtml file

    – Rahul Kumar Das
    Jun 9 '15 at 10:20











  • Its using this add to cart button - not coming from addtocart.phtml I think <a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart"> <i class="fa fa-shopping-cart"></i> <i class="fa fa-spinner fa-spin"></i> <span class="sr-only">Buy</span> </a>

    – Conor Cussell
    Jun 9 '15 at 10:25


















5















I've been trying to fix a problem on an inherited Magento 1.9.1 site - the problem is coming from a custom category page I think.



The template is using the Add to Cart Helper - in what appears to be the same way as the working product list template.



On this page: http://www.trevorsorbie.com/shop/ranges.html, if you click the Add to Cart button on any product nothing is added to cart. If you log in to your account and click that button it does add to cart..



But this is working on this page: http://www.trevorsorbie.com/shop/products.html



On the ranges.html page I've used:



<a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart">
<i class="fa fa-shopping-cart"></i>
<i class="fa fa-spinner fa-spin"></i>
<span class="sr-only">Buy</span>
</a>


Any information or pointing me at reading material to fix this will be much appreciated!










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • So, what exactly is your requirement? Do you want trevorsorbie.com/shop/products.html link act like the above one?

    – Rahul Kumar Das
    Jun 9 '15 at 10:13











  • Do you want to hide add to cart if customer is not logged in?

    – Rahul Kumar Das
    Jun 9 '15 at 10:14











  • If you click the Cart button on any product trevorsorbie.com/shop/ranges.html nothing is added to cart. If you log in to your account and click that button it does add to cart. I'm trying to work out why it is not working on that page.

    – Conor Cussell
    Jun 9 '15 at 10:18











  • It's not in helper, it could be in phtml files. Follow the link I given in answer, check the addtocart.phtml file

    – Rahul Kumar Das
    Jun 9 '15 at 10:20











  • Its using this add to cart button - not coming from addtocart.phtml I think <a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart"> <i class="fa fa-shopping-cart"></i> <i class="fa fa-spinner fa-spin"></i> <span class="sr-only">Buy</span> </a>

    – Conor Cussell
    Jun 9 '15 at 10:25














5












5








5








I've been trying to fix a problem on an inherited Magento 1.9.1 site - the problem is coming from a custom category page I think.



The template is using the Add to Cart Helper - in what appears to be the same way as the working product list template.



On this page: http://www.trevorsorbie.com/shop/ranges.html, if you click the Add to Cart button on any product nothing is added to cart. If you log in to your account and click that button it does add to cart..



But this is working on this page: http://www.trevorsorbie.com/shop/products.html



On the ranges.html page I've used:



<a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart">
<i class="fa fa-shopping-cart"></i>
<i class="fa fa-spinner fa-spin"></i>
<span class="sr-only">Buy</span>
</a>


Any information or pointing me at reading material to fix this will be much appreciated!










share|improve this question
















I've been trying to fix a problem on an inherited Magento 1.9.1 site - the problem is coming from a custom category page I think.



The template is using the Add to Cart Helper - in what appears to be the same way as the working product list template.



On this page: http://www.trevorsorbie.com/shop/ranges.html, if you click the Add to Cart button on any product nothing is added to cart. If you log in to your account and click that button it does add to cart..



But this is working on this page: http://www.trevorsorbie.com/shop/products.html



On the ranges.html page I've used:



<a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart">
<i class="fa fa-shopping-cart"></i>
<i class="fa fa-spinner fa-spin"></i>
<span class="sr-only">Buy</span>
</a>


Any information or pointing me at reading material to fix this will be much appreciated!







magento-1.9 addtocart helper






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 24 '18 at 15:05









Rohan Hapani

6,93231865




6,93231865










asked Jun 9 '15 at 10:05









Conor CussellConor Cussell

262




262





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • So, what exactly is your requirement? Do you want trevorsorbie.com/shop/products.html link act like the above one?

    – Rahul Kumar Das
    Jun 9 '15 at 10:13











  • Do you want to hide add to cart if customer is not logged in?

    – Rahul Kumar Das
    Jun 9 '15 at 10:14











  • If you click the Cart button on any product trevorsorbie.com/shop/ranges.html nothing is added to cart. If you log in to your account and click that button it does add to cart. I'm trying to work out why it is not working on that page.

    – Conor Cussell
    Jun 9 '15 at 10:18











  • It's not in helper, it could be in phtml files. Follow the link I given in answer, check the addtocart.phtml file

    – Rahul Kumar Das
    Jun 9 '15 at 10:20











  • Its using this add to cart button - not coming from addtocart.phtml I think <a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart"> <i class="fa fa-shopping-cart"></i> <i class="fa fa-spinner fa-spin"></i> <span class="sr-only">Buy</span> </a>

    – Conor Cussell
    Jun 9 '15 at 10:25


















  • So, what exactly is your requirement? Do you want trevorsorbie.com/shop/products.html link act like the above one?

    – Rahul Kumar Das
    Jun 9 '15 at 10:13











  • Do you want to hide add to cart if customer is not logged in?

    – Rahul Kumar Das
    Jun 9 '15 at 10:14











  • If you click the Cart button on any product trevorsorbie.com/shop/ranges.html nothing is added to cart. If you log in to your account and click that button it does add to cart. I'm trying to work out why it is not working on that page.

    – Conor Cussell
    Jun 9 '15 at 10:18











  • It's not in helper, it could be in phtml files. Follow the link I given in answer, check the addtocart.phtml file

    – Rahul Kumar Das
    Jun 9 '15 at 10:20











  • Its using this add to cart button - not coming from addtocart.phtml I think <a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart"> <i class="fa fa-shopping-cart"></i> <i class="fa fa-spinner fa-spin"></i> <span class="sr-only">Buy</span> </a>

    – Conor Cussell
    Jun 9 '15 at 10:25

















So, what exactly is your requirement? Do you want trevorsorbie.com/shop/products.html link act like the above one?

– Rahul Kumar Das
Jun 9 '15 at 10:13





So, what exactly is your requirement? Do you want trevorsorbie.com/shop/products.html link act like the above one?

– Rahul Kumar Das
Jun 9 '15 at 10:13













Do you want to hide add to cart if customer is not logged in?

– Rahul Kumar Das
Jun 9 '15 at 10:14





Do you want to hide add to cart if customer is not logged in?

– Rahul Kumar Das
Jun 9 '15 at 10:14













If you click the Cart button on any product trevorsorbie.com/shop/ranges.html nothing is added to cart. If you log in to your account and click that button it does add to cart. I'm trying to work out why it is not working on that page.

– Conor Cussell
Jun 9 '15 at 10:18





If you click the Cart button on any product trevorsorbie.com/shop/ranges.html nothing is added to cart. If you log in to your account and click that button it does add to cart. I'm trying to work out why it is not working on that page.

– Conor Cussell
Jun 9 '15 at 10:18













It's not in helper, it could be in phtml files. Follow the link I given in answer, check the addtocart.phtml file

– Rahul Kumar Das
Jun 9 '15 at 10:20





It's not in helper, it could be in phtml files. Follow the link I given in answer, check the addtocart.phtml file

– Rahul Kumar Das
Jun 9 '15 at 10:20













Its using this add to cart button - not coming from addtocart.phtml I think <a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart"> <i class="fa fa-shopping-cart"></i> <i class="fa fa-spinner fa-spin"></i> <span class="sr-only">Buy</span> </a>

– Conor Cussell
Jun 9 '15 at 10:25






Its using this add to cart button - not coming from addtocart.phtml I think <a class="btn btn-sm add-to-cart-alt" href="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product)?>" title="Add Product to Cart"> <i class="fa fa-shopping-cart"></i> <i class="fa fa-spinner fa-spin"></i> <span class="sr-only">Buy</span> </a>

– Conor Cussell
Jun 9 '15 at 10:25











1 Answer
1






active

oldest

votes


















0














If you want to hide Add-to-Cart button for not logged-in customers, then following link might help you:



  • https://stackoverflow.com/questions/23731127/how-to-show-add-to-cart-after-login-only-in-every-page-with-magento





share|improve this answer

























  • I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

    – Conor Cussell
    Jun 9 '15 at 10:20











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f70473%2fmagento-1-9-add-to-cart-helper-not-working%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














If you want to hide Add-to-Cart button for not logged-in customers, then following link might help you:



  • https://stackoverflow.com/questions/23731127/how-to-show-add-to-cart-after-login-only-in-every-page-with-magento





share|improve this answer

























  • I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

    – Conor Cussell
    Jun 9 '15 at 10:20















0














If you want to hide Add-to-Cart button for not logged-in customers, then following link might help you:



  • https://stackoverflow.com/questions/23731127/how-to-show-add-to-cart-after-login-only-in-every-page-with-magento





share|improve this answer

























  • I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

    – Conor Cussell
    Jun 9 '15 at 10:20













0












0








0







If you want to hide Add-to-Cart button for not logged-in customers, then following link might help you:



  • https://stackoverflow.com/questions/23731127/how-to-show-add-to-cart-after-login-only-in-every-page-with-magento





share|improve this answer















If you want to hide Add-to-Cart button for not logged-in customers, then following link might help you:



  • https://stackoverflow.com/questions/23731127/how-to-show-add-to-cart-after-login-only-in-every-page-with-magento






share|improve this answer














share|improve this answer



share|improve this answer








edited May 23 '17 at 12:37









Community

1




1










answered Jun 9 '15 at 10:18









Rahul Kumar DasRahul Kumar Das

1,6981119




1,6981119












  • I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

    – Conor Cussell
    Jun 9 '15 at 10:20

















  • I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

    – Conor Cussell
    Jun 9 '15 at 10:20
















I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

– Conor Cussell
Jun 9 '15 at 10:20





I would like it to show - I just can't work out why it is not adding a product to the cart unless you are logged in.

– Conor Cussell
Jun 9 '15 at 10:20

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f70473%2fmagento-1-9-add-to-cart-helper-not-working%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Log in Navigation menu

Invalid response line returned from server: HTTP/2 401 | ErrorPlease Please Help With Error 500 Internal Server Error after upgrading from 1.7 to 1.9Unable to place new customer orders in admin backendMagento - For “Manage Categories” Forbidden You do not have permission to access this documentHTTP ERROR 500 when using require(_once) app/Mage.phpMemcached causing Web Setup Wizard ErrorCould not create an acl object: Invalid XMLAn error occurred on the server. Please try to place the order againInvalid response line returned from server: HTTP/2 200 - message after update to 2.1.7Magento-CE 2.3.0 installation error on XamppMagento 2.2.6- After Migration all default Payment Methods are not working fine