Mewz
Forum Replies Created
-
It should be
_mewz_wcas_multiplier
with a leading underscore.Apologies, I left it out in my initial reply before editing.
Hi @westham00,
It really depends how you want this displayed. There are many different ways you could do it.
One of the principles of Attribute Stock is to not directly change the display or functionality of product pages in any way, so as to allow for maximum compatibility with other plugins, themes, and custom modifications.
With this in mind, any display change you want to implement can be done using standard WooCommerce hooks or template overrides.
To get the stock multiplier value that you’ve set on a product or variation, you can just get the meta value of
_mewz_wcas_multiplier
. For example:$value = $product->get_meta('_mewz_wcas_multiplier'); // or $value = get_post_meta($product_id, '_mewz_wcas_multiplier', true);
Thank you so much @linuxas99 ??
Thank you very much for reporting this bug @mike8040. We’ve just released a maintenance update that includes a fix for this.
Thanks for the 5-star review! ??
Hi @oshannel,
To get support for the full version of the plugin, please reach out to us via our premium support channel:
https://codecanyon.net/item/woocommerce-attribute-stock/25796765/support
Ok please reach out to us on our premium support channel so we can work with you to create an addon for this.
Yes I understand. But does the price not get synced between WooCommerce and Square? Does only stock get synced?
Yes it’s possible to essentially spoof a product’s type. Of course this means the product in Square would be a simple product without any options/variations. But I suppose that’s a fair compromise.
The other issue is that variable product don’t have a price. Do your products in Square have prices? How would you price this “simple” product in Square?
Hi @the_tim,
I think what they’re trying to say is that even if you could sync this product to Square, the Square system itself doesn’t actually support items with variations where stock is set at the product-level instead of on each variation. Even though this is possible in WooCommerce (even without our plugin), each variation in Square MUST have its own separate stock level.
The problem here is that even if we could add in a compatibility layer that tricks Square into thinking these are normal variations that each have their own stock levels, if for example all the 2oz stock gets used up in Square, it won’t automatically reduce the stock for the other oz options. So you’d have zero 2oz stock but still have stock of 4oz, etc. This poses difficult problem as stock will easily go out of sync.
I’m happy to hear your thoughts on this, and if there’s an acceptable usage you can think of while keeping in mind the constraints of item stock functionality on Square.
I have replied to your support email.
It’s possible on both versions. The only difference is the lite version won’t limit your product stock on the frontend for customers.
What you need to do to get this setup working is to create different attribute terms for your different quantities. For example, you’ll create an attribute term “20 Roses”, add this to your product, and to your “Roses” stock item with a multiplier of 20. If you have a different box with 10 roses, you create a “10 Roses” attribute term, and it to your product, and to the same “Roses” stock item with a multiplier of 10. Same thing with your chocolates and any other stock with a specific quantity.
Hi @erikanapoles,
Are you setting the stock multiplier on your products? In your case you want to make sure you’re only setting a multiplier on your attribute stock item.
For example you have two attribute stock items: Bases and Roses. Bases is a simple stock item with no multiplier. Roses has a multiplier of 20. Your product does NOT have any multiplier, as this will override the multiplier on both of your attribute stock items.
Have you tried removing the SKUs from the variations? Since stock is only enabled at the product level so technically none of the variations should have an SKU.
If this doesn’t work you’ll definitely need to contact the Square plugin’s support and ask why it’s not possible to sync product-level stock of variable products.
Hi again. Thanks for the purchase and glad to hear you got the multipliers working.
I can’t begin to guess why syncing to Square is disabled / not working. Unfortunately I don’t have any experience with syncing products to Square. All I can say is that our plugin shouldn’t affect this in any way.
I’d recommend reading carefully through the guides/instructions for the Square sync plugin you’re using, otherwise reach out to their support for assistance.