WP Trio
Forum Replies Created
-
Forum: Plugins
In reply to: [Conditional Shipping for WooCommerce] Help with conditions for a productHi,
includes (exclusive) will only pass if there is Product X in the cart and nothing else. Includes is better if you want the ruleset to pass when there are other products in the cart also.
That should be all that’s needed. If it’s still not working, please enable the debug mode and check what it says. You can enable it at WooCommerce > Settings > Shipping > Conditions > Debug mode. It should look like this in the checkout: https://wptrio.com/wp-content/uploads/2020/02/woocommerce-conditional-shipping-debug.png
Closing this now but feel free to reopen if you need any help setting it up. Thanks!
Stock quantity keeps track of quantity of the product in stock. Every time a product is purchased it will subtract from the stock. Stock status on the other hand means that product is either in stock or out of stock. WooCommerce doesn’t change stock status by itself so stock status is always set by admin.
Usually stock quantity is used but there are some cases where stock status might be more suitable. For example, if product is made-to-order and there is no defined quantity, stock status would be used.
You will need to use same attribute on all sites. However, please note that Stock Sync cannot sync status, only quantity so for syncing status another solution would be needed.
Stock Sync skips products which SKUs don’t match between the sites so that can be used for excluding products.
Hope this helps! Marking this as resolved but feel free to reopen if you have any questions.
Hi,
Includes will pass when there is one or more of the listed products in the cart but there can be other products as well.
Excludes will pass when there isn’t any of the listed products in the cart.
Includes (exclusive) will pass when there is one or more of the listed products in the cart and nothing else.
All present will pass when all of the listed products are present in the cart. This isn’t used very often but there are some special cases where it might be needed.
The correct one depends on what kind of shipping rules you’re looking for. A couple examples:
Disable regular shipping for freight products
Products – includes – [freight products]
Disable shipping methods – [regular shipping]
Enable shipping methods – [freight shipping]In this example we want to use includes because if there is even one freight product in the cart, we cannot use regular shipping and have to use freight shipping.
Provide free shipping for Product X
Products – includes (exclusive) – [Product X]
Enable shipping methods – [free shipping]In this example we want to provide free shipping for Product X. However, if there is anything else in the cart, we cannot provide shipping for free. Includes (exclusive) will work here because it won’t pass if there is anything else in the cart.
There is also a debug mode which can be used to inspect how each condition works in the checkout. You can enable it at WooCommerce > Settings > Shipping > Conditions > Debug mode. After it’s enabled, there should be debug info available in the checkout like this: https://wooelements.com/wp-content/uploads/2020/02/woocommerce-conditional-shipping-debug.png
Hope this helps! Closing this now but feel free to reopen should you have any questions.
- This reply was modified 3 years, 9 months ago by WP Trio. Reason: formatting
Hi,
WooCommerce should log the exact error message in the logs (WooCommerce > Status > Logs > fatal-errors-xxxxxxx.log). Is there anything?
As for the postal code count, if it says 31310 regions and you have entered 300, it’s likely it’s separating them by spaces. Please try to enter one postal code per line and without spaces. You can also use wildcards to trim down the amount, for example TQ4* would match TQ4 5DW, TQ4 5DR etc.
Forum: Plugins
In reply to: [Conditional Shipping for WooCommerce] Two shipping zones?Glad to hear you got it solved!
For others, you can have two zones, one for local postcodes and other for the whole country. However, as WooCommerce finds the first matching zone, you will need duplicate shipping methods in the two zones in order for it to work. That’s all.
Forum: Plugins
In reply to: [Conditional Shipping for WooCommerce] Multiple conditionsHi,
I will close this due to being related to paid version of this plugin. Any questions related to Pro please contact us via our website.
Thank you!
Forum: Plugins
In reply to: [Stock Sync for WooCommerce] JSON Error: Syntax errorGlad to hear you found the culprit and thanks for reporting back!
Thanks for the clarification π
Enable shipping methods will disable the shipping method if conditions do not pass. If you want to allow a shipping method only for certain products, please try a ruleset like this:
Products – includes (exclusive) – [products]
Enable shipping methods – [shipping method]includes (exclusive) will only pass if cart contains 1 or more of the listed products and nothing else.
Does this work?
Hi,
Thank you for the screenshots!
The ruleset looks correct to me, however you will need to enable the Local pickup shipping method which you have disabled right now. Enable shipping methods will disable the shipping method if conditions do not pass but it cannot enable shipping methods if they’re disabled in the shipping method settings (WooCommerce > Settings > Shipping > [shipping zone] > [shipping method]).
There is also a debug mode which can be used to inspect how the rulesets work. You can enable it at WooCommerce > Settings > Shipping > Conditions > Debug mode. Once it’s enabled, you can view the debug info in the checkout like this.
Closing this now but feel free to reopen if you need further help.
Forum: Plugins
In reply to: [Stock Sync for WooCommerce] Internal Server ErrorHi,
There should be an exact error message in the debug log on either site. Please see here on how you can view the error log: https://wordpress.org/support/article/debugging-in-wordpress/
If you can send me the error message, I can suggest what could be the issue. Thank you!
Forum: Plugins
In reply to: [Stock Sync for WooCommerce] JSON Error: Syntax errorHi,
Syntax error occurs when the other website responds in a non-standard way that cannot be handled correctly. There are a few common reasons why it happens:
- URL is invalid / doesnβt respond β try to visit with your browser and ensure it displays the URL correctly
- Some security / firewall plugin causes the error, such as Defender β disable security plugins temporarily and test again
- Another plugin is causing a conflict which results in an error β check PHP and WordPress error / debug logs
- SSL certificate is invalid β try with valid SSL certificate or disable SSL temporarily
- HTTP basic authentication is enabled which prevents connection β disable any HTTP basic auth
- Multilingual plugin such as WPML or Polylang is redirecting from base path (https://example.com) to language path (https://example.com/en) β try to add language code (e.g. /en) to the URL
When you run the credential check in the settings (WooCommerce > Settings > Stock Sync > Check credentials) and syntax error occurs, the plugin will log the URL, response code and body which sometimes can give hint about the issue. You can view the log in WooCommerce > Status > Logs > woo-stock-sync-exception-x-x-x-xxxxx.log. The log is different from the basic log (WooCommerce > Stock Sync > Log). In this example the reason is 404 error which means that the page couldnβt be found.
If you run the credential check and send contents of the exception log, I can check what could be the issue. Thank you!
Forum: Plugins
In reply to: [Conditional Shipping for WooCommerce] I need helpIf you have a ruleset for free shipping which looks something like this:
Subtotal – greater than – 1500
Enable shipping methods – Free shippingYou should be able to exclude certain product from it by modifying the ruleset to this:
Subtotal – greater than – 1500
Products – excludes – [product X]
Enable shipping methods – Free shippingThis way free shipping won’t become available when that product is in the cart. There are also other ways to do this with the “Products includes / excludes” condition depending on what kind of setup you’re looking for.
Hopefully this solves your issue but if not, please reopen with further explanation.
Hi,
This is possible in the paid version but please contact us via WPTrio.com about any questions about it as we are not supposed to discuss paid versions here at WordPress.org.
Closing this now but feel free to reopen if you have any questions about WordPress.org version of this plugin.
Forum: Plugins
In reply to: [Conditional Shipping for WooCommerce] Undefined array key “price_mode”Thanks for taking time to report this issue!
This has now been fixed in the latest version 2.3.1.
Hi,
This feature is available in the paid version but since we are not supposed to discuss paid plugins here, please contact us via WPTrio.com if you have any further questions related to it π
Closing this now but feel free to reopen if you have any questions.