I'm curious, is there a way to grab the entire cart total? I'd like to be able to grab the total variable and if it's greater than $60 I would display a message, i.e. "Eligible for free shipping", on my pages.
We don't have a native solution for that, but it might be possible with some custom javascript in your page, perhaps adapting some aspects of our "minicart" hack explained here:http://www.e-junkie.com/bb/topic/3086E.g., the minicart calls EJEJC_cartamt().toFixed(2) to get a cart total rounded to 2 decimal places, so that may be useful in your custom scripting.
Thanks. I'm very familiar with "/topic/3086". Can you verify for me that the mini-cart calls EJEJC_cartamt().toFixed(2)? It gives me 0.00 every time. I tested EJEJC_cartsize(); which gives me the number of items in my cart.
Hm, that's interesting. It's returning 0.00 for me as well now. I'll have to ask Development to investigate why that's happening; thanks for bringing that to our attention.
Development has now fixed the bug that broke EJEJC_cartamt() -- thanks again for bringing that to our attention.
Development has now fixed the bug that broke EJEJC_cartamt(); thanks again for bringing that to our attention.
Thx. It's working on my end as well.
Share and learn in the E-junkie community.