<td class="text-right"><strong><?php echo $this->translate("Subtotal"); ?> </strong></td> <td class="text-left cart-subtotal"><?php echo \CoreShop\Tool::formatPrice($this->cart->getSubtotal()); ?> </td> </tr> <tr> <td class="text-right"><strong><?php echo $this->translate("Total"); ?> </strong></td> <td class="text-left cart-total"><?php echo \CoreShop\Tool::formatPrice($this->cart->getTotal()); ?> </td> </tr> </tbody> </table> <p class="text-right btn-block1"> <a href="<?php echo $this->url(array("lang" => $this->language, "action" => "list"), "coreshop_cart"); ?> "> <?php echo $this->translate("View Cart"); ?> </a> <a href="<?php
/** * Returns the CartItem as array * * @return array+ */ public function toArray() { return array("id" => $this->getId(), "product" => $this->getProduct()->toArray(), "amount" => $this->getAmount(), "price" => Tool::formatPrice($this->product->getProductPrice()), "total" => Tool::formatPrice($this->getTotal())); }
?> "><?php echo $this->product->getName(); ?> </a></h4> <div class="description"> <?php echo $this->product->getShortDescription(); ?> </div> <?php if ($this->product->getAvailableForOrder()) { ?> <div class="price"> <span class="price-new"><?php echo \CoreShop\Tool::formatPrice($this->product->getProductPrice()); ?> </span> <!--<span class="price-old">$249.50</span>--> </div> <div class="cart-button button-group"> <button type="button" title="Wishlist" class="btn btn-wishlist"> <i class="fa fa-heart"></i> </button> <button type="button" title="Compare" class="btn btn-compare"> <i class="fa fa-bar-chart-o"></i> </button> <button type="button" class="btn btn-cart" data-id="<?php echo $this->product->getId(); ?> " data-img="#product-image-<?php
if ($shipping > 0) { ?> <tr> <td> </td> <td> </td> <td><?php echo $this->translate("Versandkosten"); ?> </td> <td class="text-right"><strong><?php echo \CoreShop\Tool::formatPrice($shipping); ?> </strong></td> </tr> <?php } ?> <tr> <td> </td> <td> </td> <td><?php echo $this->translate("Gesamt"); ?> </td> <td class="text-right"><strong class="cart-total-price"><?php echo \CoreShop\Tool::formatPrice($this->order->getTotal()); ?> </strong></td> </tr> </tbody> </table>
?> </td> <td class="payment-option-text"> <strong><?php echo $provider->getName(); ?> </strong> <?php echo $provider->getDescription(); ?> </td> <?php $paymentFee = $provider->getPaymentFee($this->cart); if ($paymentFee > 0) { ?> <td class="payment-option-price"><?php echo \CoreShop\Tool::formatPrice($paymentFee); ?> </td> <?php } ?> </tr> </table> <?php } ?>
"> <?php } ?> </td> <td class="delivery-option-text"> <strong><?php echo $provider->getName(); ?> </strong> <?php echo $provider->getDescription(); ?> </td> <td class="delivery-option-price"> <?php echo \CoreShop\Tool::formatPrice($provider->getShipping($this->cart)); ?> </td> </tr> </table> <?php } ?> <div class="row"> <div class="col-xs-12"> <a href="<?php echo $this->url(array("lang" => $this->language, "action" => "address"), "coreshop_checkout"); ?>
/** * Returns the cart as array * * @return array */ public function toArray() { $items = array(); foreach ($this->getItems() as $item) { $items[] = $item->toArray(); } return array("user" => $this->getUser() ? $this->getUser()->toArray() : null, "items" => $items, "subtotal" => Tool::formatPrice($this->getSubtotal()), "total" => Tool::formatPrice($this->getTotal())); }
/** * Return Product as Array * * @return array * @throws \Exception * @throws \Zend_Exception */ public function toArray() { $urlHelper = new \Pimcore\View\Helper\Url(); return array("image" => $this->getImage()->getFullPath(), "price" => $this->getProductPrice(), "priceFormatted" => Tool::formatPrice($this->getProductPrice()), "name" => $this->getName(), "thumbnail" => array("cart" => $this->getImage() instanceof Image ? $this->getImage()->getThumbnail("coreshop_productCartPreview")->getPath(true) : ""), "href" => $urlHelper->url(array("lang" => \Zend_Registry::get("Zend_Locale"), "name" => $this->getName(), "product" => $this->getId()), 'coreshop_detail')); }