Get a quick single-click solution to share your products on various social media platforms. Only at $29 $19Buy Now!
Public Ticket #2008

Canadian Dollar display issues

tropicaljoss

Hi there!

Plugin: Variation Price Display Range for WooCommerce – Free

I’m loving this plugin as it does exactly what I need it to – well, almost! However, I run my store in Canadian Dollars and it seems that this plugin overrides any setting WooCommerce has set for the currency.

As such, all pricing should display as CAD$ __.__. However, with this plugin, the “CAD” string is no longer there, displaying only $.

 

I tried searching the public tickets section but was unable to find a ticket with this issue.

wpx

wpx

Hi tropicaljoss,

I hope you are doing well today. Do you have a currency switcher plugin or your store's default currency is Canadian dollar?

As far as I know, it shouldn't happen. Please try to deactivate all the plugins except WooCommerce and Variation Price Display Range for WooCommerce then check whether it happens or not.

If not, then activate additional plugins one by one to identify the issue.

Best Regards

tropicaljoss

tropicaljoss

Hi there! Thank your for your update.

Thank you for your update. I deactivated all my plugins and the issue is still occurring: https://gyazo.com/9e147d52f187f8b3d48c3525d104a7ed

 

Here you can see I have only the 2 plugins active and that CAD is my default currency: https://gyazo.com/d2cedd53d56742633034998fc495fa8e

 

Please advise.

tropicaljoss

tropicaljoss

I have actually disables WCVPDR plugin and still see the issue so I'm going to have keep digging and will update the ticket as I confirm.

tropicaljoss

tropicaljoss

Hi there!

So after a lot of testing and reading a lot of the files, I have hardcoded/customized the CAD format. Now, the other problem I have, which I originally had but this troubleshooting confirmed, is the way the price is displayed when this plugin is active.

I am currently using a plugin to display add-ons which lists a grand total of all selections (variations + add-ons). I only have 2 variations ("Style") and the remaining options are add-ons. As you can see in the captures below, the currency symbol position changes to be after the price and not before like regular.

Active variation selection: https://gyazo.com/eeb0f127b282d83eea73fa334584186c
Clearing variation selection: https://gyazo.com/15ab1d27a19ca9574d1ea9cff5e2ffcb

Notice how pricing shows "35.00-40.00 CA$CA$" instead of "CA$ 35.00 –CA$ 40.00". The pricing formatting goes back to normal once I select an add-on of any kind.

I tested deactivating your plugin (Variation Range) and the pricing is showing normally:

Active variation selection: https://gyazo.com/a6e3be95221bab88b0ee6beb7b90e570
Clearing variation selection: https://gyazo.com/6ebd55a446dd2c2c69cb236ffa4d3bc0

I have also tried adding the ID of the add-ons plugin wrapper to the Remove Price Class setting and no luck.

I will be reaching out to the support team of the add-ons plugin (Advanced Product Fields Extended for WooCommerce by Wombat), but I wanted to touch base here in case something is at play on this plugin's side of things. Any pointers would be greatly appreciated.

wpx

wpx

Hi tropicaljoss,

I have tested the Canadian Currency on my local machine. You are displaying CA with the price (for example, CA $35.00). From my inspection, it is not coming by default. I have changed the currency to the Canadian dollar and still get the price like this- $35.00. So, it seems like you have written some additional code for `woocommerce_variable_price_html` to display the CA.

Please check your custom code again and check the priority value of the price filter both on your code and our plugin. The value of the priority is 10 in our plugin.

Best Regards

 

tropicaljoss

tropicaljoss

Hi there!

As mentioned, I had this problem before I was able to put CA$ to my pricing. The snippet I used for displaying the currency format is the one shared by WC here: https://woocommerce.com/document/add-a-custom-currency-symbol/

I have removed the custom currency code to display the CA: https://gyazo.com/92dc3bfc955b0841c2b9768d97263d72 

For clarity: the issue is the currency symbol displaying after the numbers. It gets corrected once an add-on or swatch is clicked.

I'm still waiting for the other plugin developer.

tropicaljoss

tropicaljoss

Also to add: My suspicion is that when the variation is deselected and pricing goes back to min-max, the other plugin is seeing it as an empty variable hence it can't read the min-max and displays only the currency symbols on its end while your plugin puts only the price.

Not sure if that makes sense!

wpx

wpx

Hi tropicaljoss,

Please check this screencast: https://www.loom.com/share/ee13fbd068b342308ddc9c81890659af?sid=8dd91285-56b0-4847-9e9e-d8b04b666d6b. I have added the custom code from WooCommerce.

Unfortunately, I didn't find any issues. Please let me know your thoughts.

Best Regards

tropicaljoss

tropicaljoss

Hi there,

Thank you for your update. The issue displaying the order of currency + amount is not rooted in the currency format (as seen that the issue persists with and without the custom code). I couldn't get to the root cause of what plugin would've changed the format as even after deletion, if written on the database, it doesn't delete any changes the plugin made and there were too many tables to go through, which is why I ended up hard-coding.

Would you like me to open a separate ticket for this issue? In the grand total section created by the Add-ons plugin I'm using, the amounts are not displayed correctly. Here's the update from the plugin developers:

Hi Joss,

The Variation Display plugin is still affecting those options, that is why the behavior persists.

We highly suggest reaching out to the developer of the said plugin and let them check the issue further.

If they need anything from our end, please do not hesitate to let us know, as we are more than happy to further help.

- Studio Wombat


This is the link to the plugin's free version: https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/

Please review and advise.

wpx

wpx

Hi tropicaljoss,

Can you just record your issue and post the screen record link here? Just like I have sent you in my previous reply.

So, the CA $ is not the issue as per your current situation. I am just confused about what the issue is right now.

Also, can I have a product link where I can check it?

Hope to hear from you soon.

Thanks

wpx

wpx

Hi tropicaljoss,

Thanks for giving me the screen recording. Unfortunately, I am unable to visit the link you have given. I am seeing this: https://prnt.sc/5c84n6nF_FdQ

Do you have any areawise restrictions? Here is my IP: 118.179.27.150 Hope to hear from you soon.

Best Regards

wpx

wpx

Hi tropicaljoss,

Please add the following price wrapper:

.product.product-type-variable .wapf-total.price

like this screenshot: https://prnt.sc/9C24JwInPLOG

Note: Please don't reply to the email of the ticket reply. It will be helpful for us to organize issues if you reply in the thread.

Thanks in advance for your co-operation.

tropicaljoss

tropicaljoss

OMG Thank you so much! I guess I was using the wrong wrapper when I tried it. I used different combinations such as .wapf, .wapf .single_variation_wrap, .single_variation_wrap, .wapf--inner, .wapf-wrapper, and div.single_variation_wrap.

Thank you so, so much for your assistance with this and I apologize for all the trouble! I'm really happy with this plugin and very satisfied with your support.

P.S. My apologies - I was in a rush yesterday morning and wanted to reply as quickly as possible.

wpx

wpx

Hi tropicaljoss,

I am delighted to hear that our support and plugin have been helpful to you. Your satisfaction is our top priority, and we are committed to providing the best possible products and services to our customers.

 

If you would be so kind as to leave a review of our plugin, we would greatly appreciate it. Your feedback is important to us and helps us to continue improving the quality of our products and services. You can leave a review by following this link: https://wordpress.org/support/plugin/variation-price-display/reviews/?filter=5

 

Your review will not only help us to improve, but it will also inspire us to continue providing the highest level of support and service to all of our customers.

 

Thank you for your co-operation and for choosing our plugin.

By the way, you can use https://loom.com to record your screen. You can record upto 5mins using the loom. I hope this information will also help.

Best Regards