We have a client that wants to add a suffix to price in mini-cart which depends on a value of custom product attribute (named pack_type).

I have already done that for Product and Cart pages by surrounding price in a div element of class depending of value of that custom attribute and then use CSS to add text "per card" or "per share" after the price DOM element

As it is a very live store, custom plugins could break site one way or another

What is the best and less risky way to add such a suffix to price in mini-cart?

Thanks in advance

  • Does anyone have any advice? :p – Deggial Jul 15 '19 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.