...
This module adds additional data to CustomerData. This data can be used by frontend developers to customize the mini-cart.
Installation
Info |
---|
This module is optionalrequired by theme-creativeshop |
Code Block |
---|
composer require "creativestyle/magesuite-quote-additional-data" ^1.0.0 |
Admin settings
Store->Settings->Configuration->Magesuite->Quote Additional Data
Under General
tab, isEnabled
should be set to yes
...
Frontend
There are new entries in quote:
...
Code Block |
---|
<span data-bind="attr: {class: $parents[2].row_total_product_original_price ? 'cart-price cart-price-with-special' : 'cart-price'}"> <span class="price" data-bind="text: getFormattedPrice(getRowDisplayPriceInclTax($parents[2]))"></span> <span class="old-price" if="$parents[2].row_total_product_original_price" data-bind="html: $parents[2].row_total_product_original_price"></span> </span> |
Styling
Styling of special price is included in theme-creativeshop/src/components/minicart-product/minicart-product.scss
file
...