Great work on Amazoop. Are you still working on the project?
I've love to help in any way I could.
I'm quite surprised that there isn't an open source "Amazon Store" using Amazoop as the backend - so I'm developing one that I can use for my web site, and it I can get it all working, I'd be happy to release it to the public.
I'm a little stuck though when it comes to removing items from a shopping cart.
Hi Mauricio,
Great work on Amazoop. Are you still working on the project?
I've love to help in any way I could.
I'm quite surprised that there isn't an open source "Amazon Store" using Amazoop as the backend - so I'm developing one that I can use for my web site, and it I can get it all working, I'd be happy to release it to the public.
I'm a little stuck though when it comes to removing items from a shopping cart.
Here is a function I am using:
function removeFromBasket ($asin, $amazonCountry)
{
$items = array ();
$items[] = $asin;
print_r ($items);
$aq = new AmazonQuery ();
$cart = $aq->removeFromCart ($items, $amazonCountry, $_SESSION['cartID'], $_SESSION['HMAC']);
echo 'REMOVED';
if( $error = $cart->getErrorMessage() )
{
$output = "It looks like there's an error: " . $error;
include ('output.html.php');
}
}
I'm just sending in a single ASIN number.
However, the item is not removed from the Shopping Cart. It remains.
Can you see any problems with this?
Again - if you would like any help with Amazoop, please reply and I'll see what I can do.
Keep up the great work!
Dave.