• Resolved Robothead

    (@toktor)


    Hi
    Maybe someone can point me to the right direction.

    Im working on a client site, where I set it up so that product feed includes taxes in prices. I click save feed, and check the feed, and the prices are correct.

    Now, once the automatic feed refresh happens, all the prices change back to being without taxes.

    TLDR: Maunally generating feed creates feed with taxes, correctly, as configured, automatic feed refresh, generates feed without taxes.

    Any ideas where to look?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    sorry for the late response!

    I tried to verify your issue, but I couldn’t reproduce the problem. On my end, the feed is generated in the same way both automatically via cron and manually, I don’t have any difference with the tax inclusion/exclusion.

    Could you please share your configuration of the WooCommerce taxes settings and product catalog feed settings?

    Thread Starter Robothead

    (@toktor)

    Thank you for the reply Antonino!

    Does the automatic part run the same code as the manual generation or are they different parts?

    WC is set to be prices without taxes. Prices in the shop cart and checkout are shown with taxes.

    Feed settings are as following:
    Turned on:
    Use SKU as ID in the product feed. If no sku, it gets the ID for default.
    We filter by one category.

    Under special mapping there is four first ones filled, and price is chosen by “price including tax”

    If you have a contact email, I can send you screenshots of all of the settings. Might be easier.

    Thread Starter Robothead

    (@toktor)

    Got it solved for my end by setting the customer base location to shop base location, instead of geographical.

    Pixel Caffeine uses wc_get_price_including_tax in class-aepc-woocommerce-addon-support.php L671.

    If WC is set to have customer default location to geographic location, then manually refreshing the feed fills the tax information correctly as it takes the user location.
    If feed is updated automatically, then no geolocation is done and WC thinks there is no location – therefore there is no taxes. REGARDLESS how the taxes are set up.

    In our case, there is one blanket tax, to all locations.

    More about WC “wc_get_price_including_tax” issue – https://github.com/woocommerce/woocommerce/issues/17519

    For me this is a bug, because if I have WC taxes set to “all location and places” then it should ALWAYS include taxes, even if no location is set. Specially when “tips” in WC say “leave blank to apply to all”. But it seems to be more of an issue with WC than with this plugin ??

    //rant end

    Thought you wanted to know, that in certain cases the manual refresh and cron feed refresh do print out different values.

    Plugin Author Antonino Scarfì

    (@antoscarface)

    HI,

    thanks for the explanation. I see. I agree with you that it seems more related to WC because I use the official API by WooCommerce (by code I mean, so their functions, instances, etc.), so I’m expecting to have the right output from there.

    I hope they can fix soon or do something that will improve this aspect ??

    Thread Starter Robothead

    (@toktor)

    Thanks for replying. From the github link, you can see, they count this as feature so I do not think this is ever going to get changed.

    “This is not how this particular method works. It’s not a bug. If you want the price including tax you can do it conditionally based on price includes tax setting, and look at either the price as stored in the DB, or do a calculation using the store base address.”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Automatic feed generates different than manual’ is closed to new replies.