Exemple #1
0
 /**
  * Cart Table
  *
  * @return HtmlTagBuilder
  */
 protected function renderCart()
 {
     $cartView = new CartView($this->settings, $this->translator);
     return $cartView->renderCart($this->cart, false);
 }
Exemple #2
0
 /**
  * Cart Table
  *
  * @param ShopSettings     $settings
  * @param CartWithShipping $cart
  * @param Translator       $i18n
  * @param bool             $edit - show edit input fields
  *
  * @return HtmlTagBuilder
  */
 protected function renderCart($settings, $cart, $i18n, $edit = false)
 {
     $cartView = new CartView($settings, $i18n);
     return $cartView->renderCart($cart, $edit);
 }