Support » Plugin: Conditional Discounts for WooCommerce » free gift for payment gateway

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ORION

    (@mano88)

    Hello,

    Do you mean you want to give the customer a free gift depending on the payment gateway he is choosing?

    yup, that is what I want to accomplish.

    Plugin Author ORION

    (@mano88)

    Yes it should work fine.

    tried the pro version…

    Fatal error: Uncaught Error: Call to a member function get_products() on null in /var/www/…/wp-content/plugins/woocommerce-all-discounts/includes/class-wad-discount.php:2094 Stack trace: #0 /var/www/…/wp-includes/class-wp-hook.php(286): WAD_Discount->identify_free_gifts_in_cart(Object(WC_Cart)) #1 /var/www/…/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /var/www/…/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/…/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1227): do_action(‘woocommerce_bef…’, Object(WC_Cart)) #4 /var/www/…/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(119): WC_Cart->calculate_totals() #5 /var/www/…/wp-includes/class-wp-hook.php(286): WC_Cart_Session->get_cart_from_session(”) #6 /var/www/…/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #7 /var/www/…/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #8 /var/www/…/wp-s in /var/www/…/wp-content/plugins/woocommerce-all-discounts/includes/class-wad-discount.php on line 2094

    Plugin Author ORION

    (@mano88)

    Looks like you did not define a product list as gift. Can you provide a screenshot of your discount?

    Okay, that got rid of the fatal error bu the plugin is still buggy.

    It shouldn’t return a fatal error when settings aren’t applied correctly. Code need to be rewritten to prevent the fatal error, and countless PHP warnings when settings aren’t set up correctly. You should be able to publish with missing settings, even if they your code was written well and it didn’t break things and throw php warnings.

    The gift is added to the cart no matter what. It just given discounted when rules are met. The gift shouldn’t show unless rules are met, and should remove if rules are no longer met.

    The plugin is far too buggy for use. I’ve moved on.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘free gift for payment gateway’ is closed to new replies.