Minimum Order Amount by code

Hi,
This is the code that was suggested by a user @zivassor that I tried inputting on my website to create minimum order amount to checkout. Unfortunately, it did not work. Can someone help me with the same? Thanks :slight_smile:

This is the backend code:

And this is the code I used on the cart page:

Hi,

When you are importing a function from the backend you must put the function name in between curly brackets.

Try changing it to;

import {getTotal} from "backend/aModule.jsw" 

and then test your code again.

Hope this helps!

Dara | Corvid Team

Hi,

I tried this as well, and it still didn’t work. Could you please suggest an alternative way to go about this or any other code I could try that would help with this?
Thanks

hi, codes are working on my site but ı have another problem. i want to this; lightbox is visible all visitor but i have members and ı want just my members can see this light box on members side. thanks