Job description
Good day,
I have a wordpress shop using woocommerce. I need a function that counts the number of products in the basket and displays the right message. More specifically, this is how it looks: In the store we have two categories: A (id: 22) and B (id: 33). First of all, the customer has to display a message in the basket informing him if he has enough products that allows free transport. Conditions - for products from category A the minimum must be 800 items, for category B the minimum is 300 items, and in case the customer chooses products from both categories A and B, there must be at least 500. If the customer meets the conditions, he receives information that it has a free transport, if not it displays a message that a transport fee will be added.