• Resolved ideacom

    (@ideacom)


    Hello,

    For some reason, 2 products not using the plugin get the “Select option” button in the product page instead of the “Add to cart” button.

    I went into the db and deleted all the _wcpa% meta key except for the product using the plugin. It didnt change anything.

    I went into the code and saw the condition “if ($this->is_wcpa_product($product_id))” in public function add_to_cart_url($url, $product). It return true for both of those product.

    I also noticed the transient “_transient_wcpa_products_transient” in the db having the id of my 2 product not using any custom field.

    What is this plugin using to determine if a product use a the custom field or not? It seem to be faulty in my case.

    Using wordpress 5.0.2 and Woocommerce Custom Product Addons 2.2.6

    Thank.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ideacom

    (@ideacom)

    I found the problem. I was using a promo code for both the faulty product and it seem to trigger is_wcpa_product for some unknow reason.

    I deleted the promo code and everything work fine now.

    It may be worth to investigate if there is a conflict between this and the plugin.

    Thank.

    Plugin Author acowebs

    (@acowebs)

    Thanks for reporting this issue,we will investigate the issue

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trouble with product not using Woocommerce Custom Product Addons on add to cart’ is closed to new replies.