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

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?