If you already have EJEJC_config or EJEJC_shown, just add the extra line shown above before the final "}" -- apparently that line got linewrap-broken here, but it should be one long, unbroken line from "document." to "cartamt();". You can of course customize the part that says " Items : Total $" with whatever text or HTML you wish (but avoid using any "double quote" characters -- you can use 'single quotes' instead).

Then in your page body wherever you want the cart items/total displayed, just insert this:

Tyson,
Is it possible to get <div id='itemsInCart'></div> to show without having to click on an e-junkie related button? Right now on my website it only shows cart information on website after I click an e-junkie related button and then close the lightbox.

Thank you for the Hack, but for some reason it is not displaying the total right. In my shopping cart I have a total of $104.00 and 51 items but in the div it displays the correct amount of items but the total is $0. What are your thoughts on this?

We have been unable to reproduce the $0 problem in testing. If someone could provide the URL of a page where the $0 display is happening, we can examine that particular case. Note that the minicart status display can only show a full Item Total before shipping/tax/discounts have been factored in.

Note this will only work with an E-junkie Cart; I don't think it should work with a FatFreeCart.com cart. Although the two carts appear and behave similarly from a buyer's viewpoint, they are actually completely different and unrelated in how they operate under the skin.

If you're handy with JavaScript, our Lead Developer says you can use the functions EJEJC_cartsize(); and EJEJC_cartamt(); at will, to get the number of items and the cart total respectively. The amount currently does not reflect discounts but that'll be fixed shortly.

E-junkieGuruIf you're handy with JavaScript, our Lead Developer says you can use the functions EJEJC_cartsize(); and EJEJC_cartamt(); at will, to get the number of items and the cart total respectively. The amount currently does not reflect discounts but that'll be fixed shortly.

can you check with you DEV guy as those functions quoted are returning errors and only available after EJEJC_shown has been run - has he got example code?

Note those functions would not be used in cart customization code, although they do depend on having our cart's box.js script loaded into your page (via the <script> portion of our View Cart code); you would need to write your own custom javascript to call those functions and output cart items/total onload within your page.