# #----------[ OPEN ]---------- # admin/tabs/AdminCarts.php # #----------[ FIND ]---------- # // display cart header echo '<h2>'.(($customer->id) ? $customer->firstname.' '.$customer->lastname : $this->l('Guest')).' - '.$this->l('Cart #').sprintf('%06d', $cart->id).' '.$this->l('from').' '.$cart->date_upd.'</h2>'; # #----------[ REPLACE WITH ]---------- # if ($prevCart = Db::getInstance()->getValue('SELECT `id_cart` FROM `'._DB_PREFIX_.'cart` WHERE `id_cart` < '.(int)$cart->id.' ORDER BY `id_cart` DESC')) $prevCart = '<a href="'.$currentIndex.'&id_cart='.$prevCart.'&viewcart&token='.Tools::getValue('token').'"><img style="width: 24px; height: 24px" src="../img/admin/arrow-left.png" /></a>'; if ($nextCart = Db::getInstance()->getValue('SELECT `id_cart` FROM `'._DB_PREFIX_.'cart` WHERE `id_cart` > '.(int)$cart->id.' ORDER BY `id_cart` ASC')) $nextCart = '<a href="'.$currentIndex.'&id_cart='.$nextCart.'&viewcart&token='.Tools::getValue('token').'"><img style="width: 24px; height: 24px" src="../img/admin/arrow-right.png" /></a>'; // display cart header echo '<h2>'.$prevCart.' '.(($customer->id) ? $customer->firstname.' '.$customer->lastname : $this->l('Guest')).' - '.$this->l('Cart #').sprintf('%06d', $cart->id).' '.$this->l('from').' '.$cart->date_upd.' '.$nextCart.'</h2>';
19 March 2011
Next / Previous Links for Carts Tab v1.0
Adds Next / Previous images to the cart page to allow easy navigation between carts.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment