Hello. There is an interesting challenge.
Online store. It has a product card. We go there we see detailed information on the product. Below is the id of the kits for this product. I want to implement adding to the product basket. What to eat: there is the function itself that adds the basket on the php side, but you need to add an array of id sets to this function. From here questions:
1) How to pass an array via ajax if I get it using php.
2) how to write an array transfer code? previously passed only - the name of the variable: value.
Everything is solved by jQuery