View Cart button in callback from Lightbox Evolution
I have a fully functional eCart in my website and I am using LightBox Evolution to display products. The View Cart button works and exists on the side of the page. It looks like this:
<a href="cart.php"><img src="../WA_eCart/Images/Moab/Btn1_EN_viewcart.gif" border="0" class="eC_ImageButton" value="View Cart" name="pkCart_View_1" alt="Total: <?php echo WA_eCart_DisplayMoney($pkCart, $pkCart->GrandTotal()); ?>" />
I have integrated an icon for "View Cart" in the LightBox Evolution script, but it uses a jQuery callback to open the cart.php page. It is run like this:
<script type="text/javascript">
jQuery(document).ready(function($){
$("a.customlightbox").lightbox({
buttons: [
{
'class' : 'jquery-lightbox-button-openurl',
'html' : '<span>open in new window</span>',
'callback' : function(url, object) {
window.location.href = 'http://www.pkcollection.com/html/cart.php';
}
}
]
});
});
</script>
Any ideas on how I could pass the View Cart webassist button code into this callback to make it work?