Re: Email cart contents?
Do you have any PHP experience?
If so, you could create a PHP page on the site root, say called emailcart.php - in this, the first lines would read
<?php
require "./auth.php";
x_load("cart");
This will give you access to the $cart variable, then just loop through $cart["products"], writing the details to a table, then use some of the other $cart variables to put in total, taxes, discounts etc. then wrap that whole string up into PHP's mail function and send it off to your address.
Then simply use JavaScript so that when someone clicks on that button, a popup box appears with emailcart.php loaded. Use JavaScript within emailcart.php to close the popup window when the page has fully loaded (i.e. the mail has been sent).
Does this make sense?
|