-
Notifications
You must be signed in to change notification settings - Fork 0
/
shop-product.phtml
78 lines (55 loc) · 3.08 KB
/
shop-product.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<div class="pull-right">
<h4 title="<?php $this->show('Views'); ?>" class="text-muted"><i class="glyphicon glyphicon-eye-open"></i> <?php echo $product->getViewCount(); ?></h4>
</div>
<div class="row">
<div class="col-lg-6 clearfix">
<img data-zoom-image="<?php echo $product->getImageBag()->getUrl('original'); ?>" data-product-image="cover" class="img-responsive" src="<?php echo $product->getImageBag()->getUrl('450x450'); ?>" title="<?php echo $product->getName(); ?>" />
<?php if (count($images) > 1): ?>
<div class="product-images pull-left">
<h2 class="text-muted"><?php $this->show('More views'); ?></h2>
<div id="gallery_01">
<?php foreach ($images as $image): ?>
<a href="#" data-image="<?php echo $image->getImageBag()->getUrl('450x450'); ?>" data-zoom-image="<?php echo $image->getImageBag()->getUrl('original'); ?>">
<img src="<?php echo $image->getImageBag()->getUrl('75x75'); ?>" />
</a>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<div class="clearfix"></div>
<?php if ($product->isAvailable()): ?>
<div class="col-lg-3">
<br />
<div class="input-group input-group-lg">
<input class="form-control" type="number" min="1" max="<?php echo $product->getInStock(); ?>" value="1" data-basket-product-id="<?php echo $product->getId(); ?>" data-basket-input="qty" />
<span class="input-group-addon" id="sizing-addon1">
<a class="btn btn-primary btn-lg" data-basket-button="add" data-basket-product-id="<?php echo $product->getId(); ?>" data-toggle="modal" data-target="#added-success" href="#"><i class="glyphicon glyphicon-shopping-cart"></i> <?php $this->show('Add to cart'); ?></a>
</span>
</div>
</div>
<?php else: ?>
<div class="text-center">
<h3 class="text-muted"><i class="glyphicon glyphicon-remove"></i> <?php $this->show('The product is out of stock'); ?></h3>
</div>
<?php endif; ?>
<div class="clearfix"></div>
<?php if ($shop->getRecentProducts($product->getId())): ?>
<div class="clearfix" style="margin-top:59px;">
<h1 class="text-muted"><small><i class="glyphicon glyphicon-tasks"></i> <?php $this->show('Recently viewed'); ?>: </small></h1>
<?php $this->loadPartial('product-block', array('products' => $shop->getRecentProducts($product->getId()))); ?>
</div>
<?php endif; ?>
</div>
<div class="col-lg-4">
<h2><?php echo $product->getName(); ?></h2>
<div class="clearfix">
<?php if (!$product->hasStokePrice()): ?>
<h2><label data-basket-label="currency"><?php echo $basket->getCurrency(); ?></label> <?php echo $product->getPrice(); ?></h2>
<?php else: ?>
<h2><label data-basket-label="currency"><?php echo $basket->getCurrency(); ?></label> <?php echo $product->getStokePrice(); ?></h2>
<p><strike><h2 class="text-muted"><label data-basket-label="currency"><?php echo $basket->getCurrency(); ?></label> <?php echo $product->getPrice(); ?></h2></strike></p>
<?php endif; ?>
</div>
<article><?php echo $product->getDescription(); ?></article>
</div>
</div>