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

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form