View Single Post
  #8  
Old 08-29-2008, 03:10 AM
  Piotr M.'s Avatar 
Piotr M. Piotr M. is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 134
 

Default Re: Load shop in external site

It's not difficult, I think.
HTML Code:
<form action="http://site-b.com/checkout.php" method="POST"> {foreach from=$cart.products item=p} <input type="hidden" name="products[{$p.productid}]" value="{$p.amount}" /> {/foreach} <input type="submit" value="Checkout" /> </form>

And at site B you get $products = $_POST['products'];
$products array where ey is product id, and value is amount.

If you have options, it vould be a bit more complicated, but also possible.
__________________
Regards,
Piotr Markushin

X-Cart PDF Catalog Generator NEW
Professional X-Cart Skins Store (7 new skins added in August 2008!)

ahedOffice.com - Web 2.0 Online Groupware
Reply With Quote