Skip to content

Commit

Permalink
Release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
jgodson committed Dec 4, 2022
1 parent 114b765 commit fe606cd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shopify-script-creator",
"private": true,
"version": "0.33.0",
"version": "0.33.1",
"description": "Shopify Script Creator",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions ruby_scripts/lineItem/grouped_tiered_discount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def run(cart)
groups.each_value do |items|
discountable_quantity = items.reduce(0) { |total, item| total + item.quantity }
qualified_tiers = @discount_tiers.select { |tier| discountable_quantity >= tier[:tier].to_i }
next if qualified_tiers.empty?
discount_amount = qualified_tiers.last[:discount].to_f
discount_message = qualified_tiers.last[:message]
discount = init_discount(discount_amount, discount_message)
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChangeLogContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function ChangeLogContent({newVersion} = props) {
<h3 id="changelog">Change Log</h3>

<ul>
<li>Added a new <strong>Fixed Price</strong> Discount for Shipping Scripts. This can be used to set shipping rates to always be a specific amount.</li>
<li>Important fix for the recently added <b>Grouped Tiered Discount</b> Campaign that could cause an error when no tier was applicable</li>
</ul>

<div style={{paddingTop: '2rem'}}>
Expand Down
1 change: 1 addition & 0 deletions src/scripts/lineItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ class GroupedTieredDiscount < Campaign
groups.each_value do |items|
discountable_quantity = items.reduce(0) { |total, item| total + item.quantity }
qualified_tiers = @discount_tiers.select { |tier| discountable_quantity >= tier[:tier].to_i }
next if qualified_tiers.empty?
discount_amount = qualified_tiers.last[:discount].to_f
discount_message = qualified_tiers.last[:message]
discount = init_discount(discount_amount, discount_message)
Expand Down
2 changes: 1 addition & 1 deletion src/versions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
currentVersion: "0.33.0",
currentVersion: "0.33.1",
minimumVersion: "0.1.0",
}

0 comments on commit fe606cd

Please sign in to comment.