Skip to content

Commit

Permalink
Merge pull request #1146 from OFFLINE-GmbH/next
Browse files Browse the repository at this point in the history
Minor Bugfixes v3.3.1
  • Loading branch information
tobias-kuendig authored Jun 5, 2024
2 parents 4d2effe + f5db8bd commit 7de5942
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/product/price.htm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% set price = price|default(item.price()) %}

{% if price.official or item.oldPrice().integer %}
{% if price.official or item.oldPrice() %}
<div class="mall-product__old-price">
{% if price.official %}
{{ price.official.string|raw }}
{% else %}
{% elseif item.oldPrice() %}
{{ item.oldPrice().string|raw }}
{% endif %}
</div>
Expand Down
1 change: 1 addition & 0 deletions models/CustomerPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace OFFLINE\Mall\Models;

use Model;
use October\Rain\Database\Builder;
use October\Rain\Database\Traits\SoftDelete;
use October\Rain\Database\Traits\Validation;
use OFFLINE\Mall\Classes\Traits\HashIds;
Expand Down
1 change: 0 additions & 1 deletion models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class Order extends Model
'customer_payment_method' => [
CustomerPaymentMethod::class,
'deleted' => true,
'scope' => 'all'
],
'order_state' => [
OrderState::class,
Expand Down
8 changes: 6 additions & 2 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,10 @@ v3.2.2:
- 'Fixed mapWithKeys function call on array when oldPrice has been disabled, thanks to @dathwa (#1118).'
- 'Fixed backend Order menu breaks on used but disabled payment methods, thanks to @dathwa (#1120).'
v3.3.0:
- "Various Bugfixes"
- 'Various Bugfixes'
- 'Added support for RainLab.User 3.0'
- 'Deprecated OFFLINE\Mall\Models\User, use the RainLab.User model instead'
- 'Deprecated OFFLINE\Mall\Models\User, use the RainLab.User model instead'
v3.3.1:
- 'Minor Bugfixes'
- 'Fixed strict variables issue on oldPrice() attribute, thanks to @dathwa (#1118).'
- 'Fixed stripe purchase issue, thanks to @dathwa (#1145).'

0 comments on commit 7de5942

Please sign in to comment.