Skip to content

Commit

Permalink
Added step attribute to offer price field in backend view
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kharanenka committed Oct 21, 2019
1 parent fa6c4f8 commit bcaa311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@
1.22.5:
- 'Fixed bug with deactivating items in import from XML files.'
1.23.0:
- 'Added ability to show catalog with active price type. Added annotations for integration with Digital product for Shopaholic plugin.'
- 'Added ability to show catalog with active price type. Added annotations for integration with Digital product for Shopaholic plugin.'
1.23.1:
- 'Added step attribute to offer price field in backend view'
8 changes: 4 additions & 4 deletions views/offer_price_list.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</tr>
<tr>
<td><?= trans('lovata.shopaholic::lang.field.main_price_type'); ?></td>
<td><input class="form-control" type="number" name="Offer[price_list][0][price]" value="<?= $formModel->setActiveCurrency(null)->setActivePriceType(null)->price_value ?>"></td>
<td><input class="form-control" type="number" name="Offer[price_list][0][old_price]" value="<?= $formModel->setActiveCurrency(null)->setActivePriceType(null)->old_price_value ?>"></td>
<td><input class="form-control" type="number" name="Offer[price_list][0][price]" value="<?= $formModel->setActiveCurrency(null)->setActivePriceType(null)->price_value ?>" step="any"></td>
<td><input class="form-control" type="number" name="Offer[price_list][0][old_price]" value="<?= $formModel->setActiveCurrency(null)->setActivePriceType(null)->old_price_value ?>" step="any"></td>
</tr>
<?php
$obPriceTypeList = \Lovata\Shopaholic\Models\PriceType::active()->get();
Expand All @@ -16,8 +16,8 @@
?>
<tr>
<td><?= $obPriceType->name ?></td>
<td><input class="form-control" type="number" name="Offer[price_list][<?= $obPriceType->id ?>][price]" value="<?= $formModel->setActivePriceType($obPriceType->id)->price_value ?>"></td>
<td><input class="form-control" type="number" name="Offer[price_list][<?= $obPriceType->id ?>][old_price]" value="<?= $formModel->setActivePriceType($obPriceType->id)->old_price_value ?>"></td>
<td><input class="form-control" type="number" name="Offer[price_list][<?= $obPriceType->id ?>][price]" value="<?= $formModel->setActivePriceType($obPriceType->id)->price_value ?>" step="any"></td>
<td><input class="form-control" type="number" name="Offer[price_list][<?= $obPriceType->id ?>][old_price]" value="<?= $formModel->setActivePriceType($obPriceType->id)->old_price_value ?>" step="any"></td>
</tr>
<?php } ?>
<?php } ?>
Expand Down

0 comments on commit bcaa311

Please sign in to comment.