-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release version 2.1.0 See merge request engineering/sm/discovery-connectors/shopify-discovery-connector-v2!7
- Loading branch information
Showing
16 changed files
with
112 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## 2.1.0 | ||
|
||
### Added | ||
|
||
- [`ADDED`]: Added support for [Bloomreach Discovery Facet Response V3](https://documentation.bloomreach.com/discovery/reference/facet-response-v3-unified-ranking). | ||
|
||
## 2.0.0 | ||
|
||
### Changed | ||
|
||
- [`CHANGED`]: Completely rewriting of the app using the new Theme App Extensions. | ||
- [`CHANGED`]: Removed usages of the Assets API. This is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
const RecommendationTemplate = `<div class="blm-recommendation-widget-content" data-rid="<%= widgetMetadata.rid %>" data-type="<%= widgetMetadata.type %>" data-id="<%= widgetMetadata.id %>"> | ||
<% if (products.length > config.number_of_items_to_show) { %> | ||
<span class="blm-carousel__item blm-carousel-previous blm-invisible"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24"> | ||
<path fill="none" d="M0 0h24v24H0V0z" /> | ||
<path d="M15.61 7.41L14.2 6l-6 6 6 6 1.41-1.41L11.03 12l4.58-4.59z" /> | ||
</svg> | ||
</span> | ||
<% } %> | ||
<% if (products.length > config.number_of_items_to_show) { %> | ||
<span class="blm-carousel__item blm-carousel-previous blm-invisible"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24"> | ||
<path fill="none" d="M0 0h24v24H0V0z" /> | ||
<path d="M15.61 7.41L14.2 6l-6 6 6 6 1.41-1.41L11.03 12l4.58-4.59z" /> | ||
</svg> | ||
</span> | ||
<% } %> | ||
<section class="blm-recommendation__products" style="--number-of-items-to-show: <%= config.number_of_items_to_show %>"> | ||
<% products.forEach(function(product) { %> | ||
<div class="blm-recommendation__product" data-id="<%= product.id %>"> | ||
<div class="blm-recommendation__product-inner"> | ||
<div class="blm-product-image-container"> | ||
<a href="<%= product.link %>" class="blm-widget-link"> | ||
<img | ||
class="blm-product-image-container__image" | ||
alt="<%= product.title %>" | ||
src="<%= product.image %>" | ||
/> | ||
</a> | ||
</div> | ||
<div class="blm-product-details-container"> | ||
<div class="blm-product-details-title-container"> | ||
<a href="<%= product.link %>" class="blm-product-details-container__title blm-widget-link"><%= product.title %></a> | ||
<section class="blm-recommendation__products" style="--number-of-items-to-show: <%= config.number_of_items_to_show %>"> | ||
<% products.forEach(function(product) { %> | ||
<div class="blm-recommendation__product" data-id="<%= product.id %>"> | ||
<div class="blm-recommendation__product-inner"> | ||
<div class="blm-product-image-container"> | ||
<a href="<%= product.link %>" class="blm-widget-link"> | ||
<img | ||
class="blm-product-image-container__image" | ||
alt="<%= product.title %>" | ||
src="<%= product.image %>" | ||
/> | ||
</a> | ||
</div> | ||
<div class="blm-product-details-container"> | ||
<div class="blm-product-details-title-container"> | ||
<a href="<%= product.link %>" class="blm-product-details-container__title blm-widget-link"><%= product.title %></a> | ||
</div> | ||
<% if (product.price && product.sale_price) { %> | ||
<p class="blm-product-details-container__price"> | ||
<% if (config.format_money) { %> | ||
<%= config.format_money(product.sale_price.toFixed(2) * 100) %> <strike class="blm-product-details-container__original-price"><%= config.format_money(product.price.toFixed(2) * 100) %></strike> | ||
<% } else { %> | ||
<%= config.default_currency %><%= product.sale_price.toFixed(2) %> <strike class="blm-product-details-container__original-price"><%= config.default_currency %><%= product.price.toFixed(2) %></strike> | ||
<% } %> | ||
</p> | ||
<% } else { %> | ||
<p class="blm-product-details-container__price"> | ||
<% if (config.format_money) { %> | ||
<%= config.format_money(product.price.toFixed(2) * 100) %> | ||
<% } else { %> | ||
<%= config.default_currency %><%= product.price.toFixed(2) %> | ||
<% } %> | ||
</p> | ||
<% } %> | ||
</div> | ||
<% if (product.price && product.sale_price) { %> | ||
<p class="blm-product-details-container__price"> | ||
<% if (config.format_money) { %> | ||
<%= config.format_money(product.sale_price.toFixed(2) * 100) %> <strike class="blm-product-details-container__original-price"><%= config.format_money(product.price.toFixed(2) * 100) %></strike> | ||
<% } else { %> | ||
<%= config.default_currency %><%= product.sale_price.toFixed(2) %> <strike class="blm-product-details-container__original-price"><%= config.default_currency %><%= product.price.toFixed(2) %></strike> | ||
<% } %> | ||
</p> | ||
<% } else { %> | ||
<p class="blm-product-details-container__price"> | ||
<% if (config.format_money) { %> | ||
<%= config.format_money(product.price.toFixed(2) * 100) %> | ||
<% } else { %> | ||
<%= config.default_currency %><%= product.price.toFixed(2) %> | ||
<% } %> | ||
</p> | ||
<% } %> | ||
</div> | ||
</div> | ||
</div> | ||
<% }); %> | ||
</section> | ||
<% }); %> | ||
</section> | ||
<% if (products.length > config.number_of_items_to_show) { %> | ||
<span class="blm-carousel__item blm-carousel-next"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24"> | ||
<path fill="none" d="M0 0h24v24H0V0z" /> | ||
<path d="M10.02 6L8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z" /> | ||
</svg> | ||
</span> | ||
<% } %> | ||
<% if (products.length > config.number_of_items_to_show) { %> | ||
<span class="blm-carousel__item blm-carousel-next"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24"> | ||
<path fill="none" d="M0 0h24v24H0V0z" /> | ||
<path d="M10.02 6L8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z" /> | ||
</svg> | ||
</span> | ||
<% } %> | ||
</div>`; | ||
|
||
export default RecommendationTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.