Hi @yithemes ,
I’m coming back to you on this topic because I really can’t find where the problem comes from.
I can’t find the method you use to add the product to the cart and store it into the global $woocommerce when user click on this add to cart button from the wishlist page :
<a href="https://www.tshirtsinventory.com/panier/?add-to-cart=2152&remove_from_wishlist_after_add_to_cart=2152&wishlist_id=1&wishlist_token=ADFUONDDHZG9" data-quantity="1" class="button add_to_cart_button ajax_add_to_cart add_to_cart alt" data-product_id="2152" data-product_sku="" aria-label="Ajouter “Call My Dealer 4” à votre panier" rel="nofollow">Add to cart</a>
Could you explain to me the method ? PHP or AJAX ?
Which files are used ?
I can’t find any call to any add_to_cart feature in your source code…
I really need to understand because when the final function is called :
public function add_to_cart( $product_id = 0, $quantity = 1, $variation_id = 0, $variation = array(), $cart_item_data = array() )
$variation is still an empty array() for me.
Then I got more bug when in this function it calls generate_cart_id() function who is made with the $variation array.
Then if I add the same product with the same variation from the wishlist, or from the product page, woocommerce display it as 2 differents products.
Anyway, I really would like to know the process / files / functions you use after clicking the add to cart button.
It’s not just a displaying issue…
Thank you very much for your help ??
Anthony
-
This reply was modified 5 years ago by
nartoof.
-
This reply was modified 5 years ago by
nartoof.