@mediavita Hey there!
Add this JavaScript to your WordPress theme:
wp.hooks.addFilter('misc.pricing.defaultCurrencyCode', 'wpshopify', function (defaultCode) {
return 'GBP';
});
Hi Andy, many thanks, that has worked a treat!
I wondered if you could help, I require the product page pasted below to be 2columns not 3, is this possible? I have also passed the shortcode im using:
https://tonithorntonart.com/larger-size-limited-edition-giclee-prints/
[wps_collections title=”Larger Size Limited Edition Giclée Prints” products_page_size=”2″ single=”true” excludes=”image, title, description, pricing” products_excludes=”description, buy-button” products_pagination=”false” pagination=”false” products_show_featured_only=”true”]
@mediavita Glad that worked!
You can change the column size when using the [wps_collections] shortcode like this:
[wps_collections products_items_per_row="2"]
If you’re using the [wps_products] shortcode, you can use this:
[wps_products items_per_row="2"]
Hi Andrew, thank you that worked a treat. I have noticed something that’s not working correct since I updated your plugin. If you visit the following page:
https://tonithorntonart.com/products/tempest/
If you select the following options:
size: 16×24
Colour of frame: Gold
Depth: 38mm
It will say out of stock, this is wrong as the Gold frame isn’t available in 38mm, before the update if you selected 38mm as your depth, Gold would be removed as an option. Im I missing something?
@mediavita
Hey, thanks for letting me know.
I recently changed this so even “out of stock” variants will continue to show inside the dropdown. I had numerous people tell me that they wanted to still display these variants to their users.
However I can see how hiding them would be useful too.
I think I should create an option to “toggle” this functionality on or off depending on the use-case.
Hi Andrew, the issue is its causing variants that aren’t actually available to list as being out of stock. Is there a way we can hide this from showing?
@mediavita I guess I’m confused about the difference between out of stock and unavailable … can you explain more?
so currently when selecting 3 variants that aren’t available as a combination it gives you an out of stock message.the previous plugin version would remove a variant if it wasn’t available so you wouldn’t get an out of stock message on a product that doesn’t exist