Browse code

Progress

Benjamin Roth authored on21/02/2023 19:42:19
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,41 @@
1
+<form id="<?= $this->formId ?>" name="iso<?= rand() ?>" method="post" enctype="<?= $this->enctype ?>">
2
+<div class="formbody" itemscope itemtype="http://schema.org/Product">
3
+<input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit ?>">
4
+<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
5
+<input type="hidden" name="AJAX_PRODUCT" value="<?= $this->product_id ?>">
6
+<input type="hidden" name="AJAX_MODULE" value="<?= $this->module_id ?>">
7
+
8
+<h2 itemprop="name"><?= $this->generateAttribute('name') ?></h2>
9
+
10
+<?= $this->getGallery('images')->generateMainImage() ?>
11
+<?php if($this->hasOptions): ?>
12
+<div class="options">
13
+<?php foreach( $this->options as $arrOption ): echo $arrOption['html']; endforeach; ?>
14
+</div>
15
+<?php endif; ?>
16
+
17
+<?= $this->getGallery('images')->generateGallery() ?>
18
+
19
+<?php if ($this->sku): ?>
20
+<div class="sku" itemprop="sku"><?= $this->generateAttribute('sku') ?></div><?php endif; if ($this->description): ?>
21
+<div class="description" itemprop="description"><?= $this->generateAttribute('description') ?></div><?php endif; ?>
22
+<?php /* @var \Isotope\Interfaces\IsotopePrice $price */ if ($price = $this->product->getPrice()): ?>
23
+<div class="offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
24
+<meta itemprop="priceCurrency" content="<?= \Isotope\Isotope::getConfig()->currency ?>">
25
+<div class="price" itemprop="price" content="<?= \Isotope\Isotope::roundPrice($price->getAmount(1, $this->product->getOptions())) ?>"><?= $this->generatePrice() ?></div><?php if($this->baseprice): ?>
26
+<div class="baseprice"><?= $this->generateAttribute('baseprice') ?></div><?php endif; ?>
27
+</div>
28
+<?php endif; ?>
29
+<?php if($this->actions): ?>
30
+<div class="submit_container">
31
+<?php if ($this->useQuantity): ?>
32
+<div class="quantity_container">
33
+<label for="quantity_requested_<?= $this->raw['id'] ?>"><?= $GLOBALS['TL_LANG']['MSC']['quantity'] ?>:</label> <input type="text" class="text" id="quantity_requested_<?= $this->raw['id'] ?>" name="quantity_requested" placeholder="<?= $this->minimum_quantity ?>" value="<?= \Contao\StringUtil::specialchars(Input::post('quantity_requested')); ?>" maxlength="10">
34
+</div>
35
+<?php endif; ?>
36
+<?php foreach ($this->actions as $action) echo $action->generate($this->product); ?>
37
+</div>
38
+<?php endif; ?>
39
+
40
+</div>
41
+</form>