Articles on: For developers

MBC Bundles Code Install Instructions

WARNING: The installation also requires technical knowledge and prior experience with Liquid code. Please, duplicate the theme, to create a backup copy. If you are not comfortable with this, please request an installation

Update the Cart Price Code



Updates need to be done on the cart files that pull your product price information to the cart. The number and name of these files will vary from theme to theme

It's important that each theme file that pulls this price information be edited. This is to ensure the correct information always shows for your customers

Note: This may require you to go back and edit multiple files within your theme coding

Go through the list of files, one at a time, and then reference your theme's files to see if that particular file exists in your theme. Not all of these files will exist in a given theme

List of Theme Files to Update:


Templates: If your theme is using 'Sections', these files will be located within the 'Sections' folder as *-template.liquid files
cart.liquid
Sections & Snippets:
cart-content.liquid
cart-template.liquid

Code Adjustments Required:


First, you'll need to find each instance of coding that looks similar to this:

{{ item.price | money }}, {{ item.original_price | money }}, {{ item.final_price | money }}

Note: The item price display can vary by theme but should be similar to this



Copy and paste this code directly before that line:

<span class="Makebecool-theme-hook-DO-NOT-DELETE makebecool_cart_item_price" data-item-key="{{item.key}}" style="display:none !important;"></span>



Find every occurrence of code similar to:

{{ item.line_price | money }}, {{ item.final_line_price | money }}, {{ item.original_line_price | money }}



Copy and paste this code directly before that line:

<span class="Makebecool-theme-hook-DO-NOT-DELETE makebecool_cart_item_total" data-item-key="{{item.key}}" style="display:none !important;"></span>




Find every occurrence of code similar to:

{{ cart.total_price | money }}



Copy and paste this code directly before that line:

<span class="Makebecool-theme-hook-DO-NOT-DELETE makebecool_cart_total" style="display:none !important;"></span>

Updated on: 01/09/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!