D
D
DeeUs2018-01-30 10:49:45
WordPress
DeeUs, 2018-01-30 10:49:45

Why doesn't AJAX add to cart with variable items work?

Simple products are easily added from the product listing (without reloading the page), but when you try to add a variable product, the product page opens.
I noticed that for variable products, in the button (link) "add to cart" there is no get parameter "add-to-cart" (for simple products it is present)
I tried to install the plugin "Woocommerce Add to cart Ajax for variable products", but it does not solved the problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Drobyshev, 2018-01-30
@antoshadrobyshev

To add a variable product to your shopping cart, you must select a product variation. Under standard conditions, a variation can only be selected on the product page.

A
Alexey, 2018-01-31
@Alex-Woo

if this option is suitable avto-market.by/auto/motor-oil/castrol/ I will throw off
the code from the working site

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question