/** * Modelled closely on * * get_deleted_shopping_basket_confirmation_div * * above. * * The div here allows a customer to restore a shopping basket * by its ID rather than create a new one for the product. * * This is necessary for products with additional characteristics * like size or colour. * * This is actually redundant and has never been used or tested. * * See * * Shop_ShoppingBasketsTableRenderer::get_deleted_shopping_basket_confirmation_div_for_sbid * * @param $sbid The shopping basket ID. */ public function get_deleted_shopping_basket_confirmation_div_for_sbid($sbid) { $undo_location = Shop_ShoppingBasketsTable::get_restore_shopping_basket_item_url($sbid); return $this->get_deleted_shopping_basket_confirmation_div_for_url($undo_location); }
/** * This is shown in the last action div of the shopping * baskets page after a user has deleted an item from * their shopping basket. */ public static function get_deleted_shopping_basket_confirmation_div_for_sbid($shopping_basket_id) { $product_name = Shop_ShoppingBasketsTable::get_product_name_for_sbid($shopping_basket_id); $undo_url = Shop_ShoppingBasketsTable::get_restore_shopping_basket_item_url($shopping_basket_id); return self::get_deleted_shopping_basket_confirmation_div($product_name, $undo_url); }