• Resolved mattyblob

    (@mattyblob)


    Hi Joost,

    If prices are synced will it use the regular price or the sale price (if there is one)?

    Thanks

    Matt

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello Matt,

    the plugin is designed so that it will sync the price that is activated at that point. So it will sync the sales price during the sales time and have the standard price when there is no sale.

    Let me know if that answers your question.

    Kind regards,
    Joost

    Thread Starter mattyblob

    (@mattyblob)

    Ahh okay! Is there a filter I can use to sync the normal price only?

    Thanks
    Matt

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @mattyblob

    We had this question before and this is what our developer told us:

    We use wc_get_price_including_tax (or wc_get_price_excluding_tax)

    https://github.com/inpsyde/PayPal-Zettle-POS/blob/bdad0bf86f902b55efcef54a6d2dfeda6269afa3/modules.local/zettle-php-sdk/src/Builder/PriceBuilder.php#L42

    so it would not be easy to just modify our code because there is no similar functions for regular price. Only replacing it to $payload->get_regular_price() if it matches the tax inclusion settings
    PriceBuilder.php
    ? (float) wc_get_price_excluding_tax($payload)

    Does this help? I guess it is not an option to not include the sales prices in WooCommerce, right? I believe there is no simple solution for this at the moment.

    We do have a feature request open for implementing this option in the WooCommerce settings, but this can still take quite some time before this is implemented. I have linked this thread to the feature request, so you should get an update if it is available.

    For now, I will mark the thread as resolved, since we won’t have any update until this feature is available.

    Kind regards,
    Joost

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regular or Sale price’ is closed to new replies.