MadisonReed / magentoapi

Magento SOAP API Wrapper
68 stars 63 forks source link

Redirect to cart from a different domain #26

Open arunshan opened 9 years ago

arunshan commented 9 years ago

A client added us as a user and assigned a role in Magento backend. I would like to create a cart, add products and redirect to the cart URL from a different origin.

Scenario: Say we have a simple cart implemented in experience.example.com and have products added to the cart. On checkout button click it should redirect to the client's website (say ippolita.com/checkout/cart) with the products in it. We would like to create a new session and a new cart every time a user clicks on the Checkout button in expereince.fuiszmedia.com.

Progress:

  1. We can create a cart with a server side session
  2. Adding products to the cart is done
  3. But I am unable to redirect to the clients cart with products in it.

How would I get the link to the client's checkout page with cart and products in it?

ajith-github commented 9 years ago

The moveToCustomerQuote function in cart product adds the cart products to customer's cart. Is this the functionality you are trying to get?