mikawhat
02-01-2008, 06:40 AM
I'd like to have the main site updated when a user clicks on the add to cart button on a popup win...how's that possible?
|
Click to See Complete Forum and Search --> : [RESOLVED] Update cart on site from popup mikawhat 02-01-2008, 06:40 AM I'd like to have the main site updated when a user clicks on the add to cart button on a popup win...how's that possible? mikawhat 02-01-2008, 07:25 AM OK i found a solution for this... you just call the following fuction <script language="JavaScript"> /* Reloads the parent window */ function parentReload() { if (window.opener && !window.opener.closed) { window.opener.location.href = 'http://www.site.com/index.php?page=basket&action=add&id=<?=$prod_id?>'; self.close(); } } </script> PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |