Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ajaxaddtocart]

The tag has no usage guidance.

0
votes
0answers
9 views

How to create modal popup to confirm on add to cart on view page in magento 1.9

I need to display a pop-up with custom fields and validations. After the data validation successful then product goes to cart if not stays in the same product details page.
3
votes
1answer
35 views

Magento 2 - Facebook pixel tracking on AddToCart event

Note: Before marking it as duplicate please read description carefully I am creating a module for Facebook pixel tracking and I am stuck at AddToCart event. I have seen some 3rd party extensions, ...
0
votes
1answer
57 views

Magento2 update cart on qty change event plugin created

My website i have updatecart on qty btn change event call so with ajax how to created a plugin for this.
3
votes
0answers
34 views

Adding a configurable item to cart via ajax

I've inherited a project which lists configurable products in the catalog view, as well as listing the simple products attached to that configurable product. For example; Configurable Product: ...
1
vote
0answers
34 views

Magento 2.1 : Add to cart adds 2 products from PDP

In magento2.1 add to cart button adds two quantity in cart when you press it for second time. I mean, on product page when add a product to cart it's ok and adds 1 qty. But on second time when I press ...
0
votes
1answer
87 views

Magento 2 : How to fire custom ajax before add to cart ajax fire in product detail page?

I have created custom extension and how to fire custom ajax before add to cart ajax fire in product detail page from my custom module. I don't want to override js in theme level. please suggest any ...
2
votes
1answer
58 views

Page reload not showing message [closed]

Using Codazon theme developed AjaxCartPro Module Problem - when a user put product qty more than 10000 no error is showing but just reloading the page we want to reload then show error message app\...
2
votes
1answer
84 views

Ajax add to cart is not working after products loaded by other ajax request

I have different ajax based product carousels in my home page The problem is ajax add to cart is not working on carousel products after products loaded through ajax
0
votes
0answers
29 views

Rule is not applied to products in static block in magento 1.9

I am working with ajax cart pro extension. I have created a rule to show a message in the pop up when add to cart button is clicked. I am getting this message in other products pages but not in ...
0
votes
1answer
61 views

Magento 2 Auto added product's image missing in the checkout page

I have created a small module to add a product automatically at cart when a specific coupon code is applied. All is working fine except the product image is missing for the first time, but it shows ...
1
vote
0answers
34 views

To implement ajax based toast notification for add to cart, wishlist and compare

Is there any way to show toaster notification using jQuery for add to cart and wishlist and compare from product list page and detail page. Want to show some of the below toast notification after ...
0
votes
1answer
90 views

Magento : Convert Ajax Request To Normal Page Call

I am trying to change the ajax call on click of add to cart button to a normal page call. This is the code for the button <button type="button" title="<?php echo $buttonTitle ?>" id="...
0
votes
0answers
72 views

Ajax add to cart not getting a correct price in minicart

I have some problem when I auto add a product on product pages as below: click add to cart a product with ajax. I allow auto add another product after class validator in function process. Example ...
2
votes
1answer
28 views

Cant Access a Value on Input or Button with type Submit

I want individual add to cart buttons for grouped products but keep the original add to cart button so that multiple products can be added to cart if needs be with a single click. This was fine ...
0
votes
1answer
243 views

Configurable product is not added to cart in catalog page Magento 2.2.2

I recently created a configurable product, when I select any of the size and color from catalog page then click add to cart button, it will redirect to the cart page. Not Added any item in my Cart. ...
1
vote
0answers
146 views

Ajax call getting CORS errors/conflicts

What i'm trying to do is as follows, we have different external content pages that have one or more of our products and need a simple "add to cart" button. To accomplish this i want to use a ajax ...
0
votes
1answer
522 views

How to display custom message

I want to display a custom message on product page after Ajax add to cart success message in list page. Can you suggest anyway?
0
votes
1answer
153 views

I can not get data from AJAX (jQuery Widget)

I need to get data from AJAX, but the Post is empty. <?php namespace Namespace\Mymodule\Controller\Query; use Magento\Framework\App\Action\Context; use Magento\Framework\Controller\ResultFactory; ...
0
votes
1answer
532 views

ajax add to cart on product list

I want a trick to add product to cart whitout reloading page, I'm not looking for a paid extension , just code ajax to make product added to cart on my product list. thank you
0
votes
1answer
76 views

How to get custom response response at my own after add to cart(I want redirect to custom page after add to cart )

I am working with magento2, I want to create custom functionality after add to cart how to get a response on my own. I need to redirect to custom page after add to cart product. if (!$block->...
0
votes
1answer
108 views

Ajax Cart showing configurable product image instead of simple product

I am using ajax cart and minicart shows configurable image instead of simple image. Already Set Product Thumbnail in Stores -> Configuration -> Sales -> Checkout -> Shopping Cart -> ...
0
votes
2answers
2k views

How to disable Ajax Add to Cart on Product page in Magento 2 [duplicate]

Is their a way to disable ajax add to cart only on the product page but keep it working on other pages in Magento 2? Edit: After the answer of William. I have checked the addtocart.phtml file but ...
1
vote
0answers
145 views

Add to cart button is not working magento 1.9.2, after reload the page, product are showing already added.

Hello Everyone I hve a running store based on magento 1.9.2.1 Everuything was fine till yesterday. But today I ma shocked to see that After click on add to cart button only ajaz loader gif is showing ...
1
vote
1answer
814 views

Magento 2: Update custom div content after ajax add to cart

I want to update the content of a custom div when a user adds a product to cart via Ajax. By using observer I am able to do this when I am not using Ajax Add to Cart functionality, but with Ajax Add ...
0
votes
1answer
1k views

Magento 2 add to cart with ajax is not working for infinite scroll

I have the infinite scroll module. This removes the pagination on category pages, and shows a button, when clicked loads more products. The ajax add to cart is not working properly, only for the ...
1
vote
0answers
275 views

swatches option validation for ajax add to cart issue detail page

I have installed Magento2.1.9 I have enabled ajax add to cart functionalities for product detail page. By following code <script type="text/x-magento-init"> { "#...