Descrição
This plugin stops customers from mixing products with different shipping classes in the same order. If a product is already in the cart, adding a product from a different shipping class will either be blocked, or the cart will be emptied first, depending on the option you choose.
This is useful for stores where mixing shipping classes causes shipping calculation problems, for example freight vs. standard items, or products that must ship in separate boxes or from different warehouses.
Once activated, go to WooCommerce > Settings > CartRules > One Shipping Class in Cart to turn the restriction on and choose what should happen.
Works with both the classic, shortcode-based cart and checkout, and the newer WooCommerce Cart and Checkout blocks.
Instalação
- Upload the plugin folder to
/wp-content/plugins/, or install it through the Plugins menu in WordPress directly. - Activate the plugin through the Plugins menu in WordPress.
- Go to WooCommerce > Settings > CartRules > One Shipping Class in Cart to turn the restriction on and choose what should happen.
Perguntas frequentes
-
What happens to products with no shipping class assigned?
-
They’re not restricted. Only products that have a shipping class assigned are checked against what’s already in the cart.
-
Does this work with variable products?
-
Yes, it works with all product types.
-
Does this work with the WooCommerce Cart and Checkout blocks, or only the classic shortcode-based cart?
-
Both. The restriction is applied when a product is added to the cart, so it works the same way whether your store uses the classic cart/checkout pages or the block-based versions.
-
Does this affect orders created or edited from wp-admin?
-
No, the restriction only applies to the storefront cart. Orders added or changed from wp-admin are not affected.
Avaliações
Não há avaliações para este plugin.
Colaboradores e desenvolvedores
“CartRules One Shipping Class in Cart for WooCommerce” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.
ColaboradoresTraduzir o “CartRules One Shipping Class in Cart for WooCommerce” para seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.
Registro de alterações
1.0.1
- Fixed the deny/replace notice showing up blank when the restriction is enabled without saving the settings screen first (e.g. via WP-CLI)
1.0.0
- Initial release
