From 9276b4276796c51822cc79f419fbbc19d8081355 Mon Sep 17 00:00:00 2001 From: "Thor J. Kooda" <792089+tkooda@users.noreply.github.com> Date: Fri, 9 Oct 2020 16:55:49 -0500 Subject: [PATCH] Add support for Bundled and Grouped Product price-type's to aslowasPLP.js --- view/frontend/web/js/aslowasPLP.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/frontend/web/js/aslowasPLP.js b/view/frontend/web/js/aslowasPLP.js index e6e4e19d..71b5ed8a 100755 --- a/view/frontend/web/js/aslowasPLP.js +++ b/view/frontend/web/js/aslowasPLP.js @@ -21,7 +21,7 @@ define(["jquery", */ initPrices: function() { var elements = $(document) - .find("[data-price-type='finalPrice'], [data-price-type='minPrice']"), + .find("[data-price-type='finalPrice'], [data-price-type='minPrice'], [data-price-type='starting-price']"), price, options, element_id, @@ -98,7 +98,7 @@ define(["jquery", if ($.contains(priceInfo, currentElement)) { price = $(el[0]).find("[data-price-type='finalPrice'], [data-price-type='minPrice']").text(); options = this.options; - options.element_id = 'as_low_as_plp_' + $(el[0]).find("[data-price-type='finalPrice'], [data-price-type='minPrice']").parent().parent().parent().attr('data-product-id'); + options.element_id = 'as_low_as_plp_' + $(el[0]).find("[data-price-type='finalPrice'], [data-price-type='minPrice'], [data-price-type='starting-price']").parent().parent().parent().attr('data-product-id'); aslowas.process(price, options); } }