コード例 #1
0
                    <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 
コード例 #2
0
 /**
  * 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()));
 }
コード例 #3
0
?>
"><?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 
コード例 #4
0
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>
コード例 #5
0
    ?>
                            </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 
}
?>

コード例 #6
0
">
                                <?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");
?>
コード例 #7
0
 /**
  * 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()));
 }
コード例 #8
0
 /**
  * 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'));
 }