How can I add products with PHP to the customer's cart. Having customer's id and login details.
The login is successful. Just need to update the cart with the products, quantity and prices that user can also check from the magento site also.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityThe easy way? Just fire a ajax request to the page.
/path/to/magento/checkout/cart/add?product=[id]&qty=[qty]
Maybe you have a problem with the SameOriginPolicy with JS, so you might use an iframe or image instead.
The API would work well for this.
Supports SOAP and REST.