Woocommerce: limit cart content by same category
-
Hello from the other side I must have called a thousand times.
.. now im stuck.
I am building a shop, where some of the products and shipping is handled by Printful API and other products – by me.
If I put Printful product to cart, Printful api offers and calculates the shipping. But if I have two products of whitch second one is mine, that has custom shipping cost under shipping clases, Printful api stops working and my custom shipping rates takes the lead.
I was looking for a way to limit cart content by category. To allow customer to have Printful category products in cart only, or only my products, so there would not be mashup between two different shipping systems.Ive found this https://aelia.co/2015/12/07/woocommerce-only-allow-specific-product-combinations-in-cart/ Only allow specific product combinations in cart.
Problem is it is complicated, you have to use this code from inside the php, and product IDs has to be put in by hand via php as well, plus no guaranties it will work in future with WP WC updates.Or maybe there’s a way to make shipping calculation different, for each product category in the cart and show total paying sum?…
So now I am stuck. Nor I can find a plugin nor I can figure out a work around.
- The topic ‘Woocommerce: limit cart content by same category’ is closed to new replies.