• Resolved snap-shot

    (@snap-shot)


    Hi,

    we are using the offical Woocommerce extension for subscriptions, if we create a variable subscription and apply a discont to it, we get an error “product not valid” and cannot purchase it.

    Is the plugin not compatible with it?

    This is the log:

    2019-12-23T15:21:40+00:00 CRITICAL Uncaught Exception: Prodotto non valido. in /wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:163
    Stack trace:
    #0 /wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product))
    #1 /wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(135): WC_Data_Store->read(Object(WC_Product))
    #2 /wp-content/plugins/taxonomy-discounts-woocommerce/taxonomy-discounts-woocommerce.php(533): WC_Product->__construct(16189)
    #3 /wp-content/plugins/taxonomy-discounts-woocommerce/taxonomy-discounts-woocommerce.php(514): WC_Taxonomy_Discounts_Webdados->on_calculate_totals(Object(WC_Cart))
    #4 /wp-includes/class-wp-hook.php(286): WC_Taxonomy_Discounts_Webdados->on_cart_lo in /wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php alla riga 163

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @snap-shot,

    There’s no official compatibility with the Subscriptions plugin but we’ll try to take a look into it.

    Thread Starter snap-shot

    (@snap-shot)

    Hi Marco,

    if you can find a solution I’ll be grateful to contribute to the work!
    Because you will solve a problem for me!

    Let me know
    Thanks

    Please try 1.5.0 and get back to me.

    If you would like to contribute, you can follow the “buy me a beer” link on the plugin discounts settings page.

    Any news @snap-shot ?

    Thread Starter snap-shot

    (@snap-shot)

    Hi Marco,

    good news! You successfully fixed the issue and now they are compatible!
    It works!

    I suggest you to write it down, somebody else could use the Subscription plugin and might be useful to read about compatibility.

    PS – I just wen through the link to donate to you for the help! (used an email account ending with ……actory.it)
    Thanks

    Perfect!

    We already added that to the plugin description: “WooCommerce Subscriptions experimental support.”

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot apply discount to a variable subscription product’ is closed to new replies.