get('moduleclass_sfx', ''); $show_price = (bool)$params->get( 'show_price', 1 ); // Display the Product Price? $show_product_list = (bool)$params->get( 'show_product_list', 1 ); // Display the Product Price? $dropdown_icon = $params->get( 'dropdown_icon', '' ); // User selected cart icon $dropdown_alignment = (bool)$params->get( 'dropdown_alignment', 1 ); // Dropdown alignment $options = array(); $session = JFactory::getSession($options); $multixcart = VmConfig::get('multixcart',0); $carts = array(); if($multixcart!='byproduct'){ $carts[1] = $session->get('vmcart', 0, 'vm'); } else { $carts = $session->get('vmcarts', 0, 'vm'); } $cart = VirtueMartCart::getCart(); /*if (VmConfig::get('oncheckout_show_images')) { $data = $cart->prepareAjaxData(true); } else { $data = $cart->prepareAjaxData(); }*/ $vendorId = $cart->vendorId; //vmdebug('cart module '.$multixcart,$vendorId,$carts); if(!empty($carts)){ foreach($carts as $vId=>$cartses) { if(!empty($cartses)){ //This is strange we have the whole thing again in controllers/cart.php public function viewJS() $cart = VirtueMartCart::getCart(false, array(), NULL, $vId); /*if (VmConfig::get('oncheckout_show_images')) { $data = $cart->prepareAjaxData(true); } else { $data = $cart->prepareAjaxData(); }*/ $data = $cart->prepareAjaxData(); require JModuleHelper::getLayoutPath('mod_virtuemart_cart', $params->get('layout', 'default')); } } //Reset cart to the selected one $cart = VirtueMartCart::getCart(false, array(), NULL, $vendorId); } else { $data = $cart->prepareAjaxData(); require JModuleHelper::getLayoutPath('mod_virtuemart_cart', $params->get('layout', 'default')); } echo vmJsApi::writeJS(); ?>