0

I've been looking for a solution for some time to add the base price to the hyva minicart (the one reworked with alpineJS), not the already discounted one.

Do you have an idea on how to do it?

Thanks a lot :D

1 Answer 1

0

If you inspect, and go to total information. All values are calculated like this.

Replace grand_total with base_grand_total in checkout/cart and checkout order summary.

So you have to replace getValue() with getBaseValue() in your files.

<tr class="last"><td></td></tr>
<tr class="grand totals">
    <th class="mark" scope="row">
        <strong data-bind="i18n: title"></strong>
    </th>
    <td data-bind="attr: {'data-th': title}" class="amount">
        <strong><span class="price" data-bind="text: getBaseValue()"></span></strong>
    </td>
</tr>

app/design/frontend/Vendor/Theme/Magento_Tax/web/template/checkout/summary/grand-total.html

app/design/frontend/Vendor/Theme/Magento_Tax/web/template/checkout/cart/totals/grand-total.html

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.