WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Discounts Per Payment Method
[resolved] the plugin dosent work (18 posts)

  1. rhaffaele
    Member
    Posted 1 year ago #

    when I load the chekout it is charged continuously. There is no way to solve? This is the website: http://www.proteine-integratori.it/ if you want to see

    http://wordpress.org/extend/plugins/woocommerce-payment-discounts/

  2. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    I believe it is some script in your theme or another plugin.

    I tested it with the default theme for WordPress and it worked correctly.

  3. Olaf Lederer
    Member
    Posted 1 year ago #

    Hi Claudio,

    I'm using some default WP theme with my own style sheet and got the same "re-loading" problem.
    I didn't checked the whole function, but I played a bit with the jquery part in your class.
    After disabling this code it works fine:

    $("body").trigger("update_checkout");

    Where is this trigger used?

  4. rhaffaele
    Member
    Posted 1 year ago #

    can you tell how to disable this code please?

  5. rhaffaele
    Member
    Posted 1 year ago #

    ok done! work fine. tnx

  6. rhaffaele
    Member
    Posted 1 year ago #

    no sorry, but now it dosen't reload when payment was changed.

  7. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    @olaf lederer

    This trigger call a checkout JavaScript function from WooCommerce.

    I call him to recharge the cart when it changed the payment method.

    Without it, the customer will not know who hears a discount.

  8. Olaf Lederer
    Member
    Posted 1 year ago #

    This is something I didn't tried, because in my case I have only one payment option.

    I (ab)use the plugin to provide an opening discount for all customers (a feature that otherwise doesn't exists).

  9. rhaffaele
    Member
    Posted 1 year ago #

    ok, but why in my wordpress it load and reload checkout?

  10. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    This I don't know.

    In my tests were running well.

    I'll check that out here and try to cause the same error to get a better solution.

    But I've been pretty busy at the moment, will probably take a while to have an update.

  11. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

  12. rhaffaele
    Member
    Posted 1 year ago #

    i have try to use this code but is the same

  13. rhaffaele
    Member
    Posted 1 year ago #

    sorry for my english... i mean
    I tried, but continues to reload

  14. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    Even without the jQuery(document).ready... it keeps loading and loading?

    What OS and browser do you use?

  15. rhaffaele
    Member
    Posted 1 year ago #

    I copied all the content in WC-payment-discount.php
    have to do other?

  16. rhaffaele
    Member
    Posted 1 year ago #

    if activate the plugin it load and reload checkout
    like to see?

  17. rhaffaele
    Member
    Posted 1 year ago #

    windows 7, i tried crhome, internet explorer and mozzilla

  18. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed this problem in version 1.1 of the plugin :D

    Please update it!

    *-*

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.