task: send a single request to the cart a few variations of the goods. As I see it: an array of values ​​through POST to the handler, then intercept before placing it into the basket and disassemble the array, add a cycle to the basket. The question is where to intercept the POST array?

Or maybe some other options are there? PS JS, JQ I know badly, I saw options with Ajax, but I didn’t figure it out, can someone help with them?

    1 answer 1

    decided via php $ woocommerce-> cart-> add_to_cart ($ value, $ _POST ['quantity'] [$ key]);