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;
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
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.
|
show 4 more comments
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
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
|
show 4 more comments
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
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
magento-1.9 addtocart helper
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
|
show 4 more comments
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
|
show 4 more comments
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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