• Resolved Mark Parnell

    (@markparnell)


    We are trying to set up WooCommerce multi-currency but are running into issues with Grouped products. We’ve enabled the option to “Show only products with custom prices”, but the currency selector doesn’t show on the grouped product, even though all of the sub-products have custom pricing set. I believe this is because the Grouped product itself doesn’t have a price.

    Is there a way around this, or is it a bug?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @markparnell,

    It would be really helpful if you can help us replicate this issue on the following sandbox. In that way, we will be able to check your situation and investigate further.

    Regards

    Thread Starter Mark Parnell

    (@markparnell)

    Thanks Andrés. Have added a basic Grouped product to that sandbox and enabled the “Show only products with custom prices” option and confirmed that the same issue occurs – the currency switcher is available on the sub-products if we view them directly, but it’s not available on the parent product.

    Please let me know if you need any more details.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thank you for your help @markparnell, I could reproduce it! I’ve created an internal report and our devs will investigate the issue.

    I’ll get back to you when I have any news!
    Andrés

    Thread Starter Mark Parnell

    (@markparnell)

    Thanks Andrés. The client is keen to get this up and running – any idea what sort of timeframe we might be looking at so I can manage their expectations?

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello @markparnell,

    This issue is under revision and it will take a while. However, I’ve found a workaround that may help you in the meantime.

    Please, keep in mind that it hasn’t been tested in a production environment. After making a full backup, use it first in your staging website and check that it works as expected.

    • Open …/wp-content/plugins/woocommerce-multilingual/inc/currencies/currency-switcher/class-wcml-currency-switcher.php file.
    • Replace its content for the one on this link.

    Let me know if it helps,
    Andrés

    Thread Starter Mark Parnell

    (@markparnell)

    Thanks Andrés, that does seem to fix the issue with the display of the currency selector on the grouped products. We have however discovered a related issue – the grouped products still don’t show in the product archives etc when the secondary currency is selected.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I created a new Sandbox and it seems to be working fine for me on this grouped product. Am I missing a step?

    Thread Starter Mark Parnell

    (@markparnell)

    Hi Andrés,

    Thanks for looking into this. If you have a look at a store archive page (e.g. https://pink-flute.sandbox.otgs.work/shop/ or https://pink-flute.sandbox.otgs.work/product-category/uncategorized/) initially you can see both the grouped product and the sub-products. However if you go into one of the products and switch the currency selection to USD, then when you return to the archive pages only the sub-products are displayed. This is particularly a problem as we plan to auto-select the currency based on the user’s location, so they just won’t see the grouped products in the first place.

    It looks like the same logic that was applied to the single product page around the display of the currency selection needs to also be applied to the filters that control which products are shown on the archive pages.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thanks @markparnell. However, I’m not sure if the initial problem for Grouped products not displaying the switcher was solved . Could you please confirm if that was the case of let us creating a new Grouped product where we can see the issue?

    Thread Starter Mark Parnell

    (@markparnell)

    Hi Andrés,

    Yes, the updated version of class-wcml-currency-switcher.php you provided fixes the display of the currency switcher on grouped products. It’s just the display of the grouped products in the archives when a secondary currency is selected that’s still tripping us up here.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thanks Mark. Yes, I can see this other issue, let me investigate it further.
    I’ll get back to you once I have any news.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Hello Mark,

    Please try replacing the content of …/woocommerce-multilingual/inc/currencies/class-wcml-custom-prices.php file for the one of this link.

    Keep in mind that it is just a workaround and it hasn’t been tested thoroughly. Try it first in your staging website and adapt it according to your needs.

    We will keep this link updated with any news from our dev team.
    Andrés

    Thread Starter Mark Parnell

    (@markparnell)

    Thanks Andrés, that looks to have fixed it. Appreciate all your work here.

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thank you Mark, we will keep this forum thread updated.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.