Custom Code

Custom Code

Updates to calculate.js

Custom changes are required to the calculate.js hook. First, open your calculate.js hook script (*/cartridge/scripts/cart/calculate.js) and find the function calculateProductPrices(basket) {...}.

Change the “handle non-catalog products” if statement to be:

if (!productLineItem.catalogProduct || productLineItem.custom.parentLineItemUUID)


What’s Next
Did this page help you?