1 / 4
Jul 2012

We have a buy 3 get 4th free discount on our site and even though it says it on every page when people check out they still forget they have to chose a 4th to get it free. Is there any way to make the cart tell them to select their item when they are eligible for it? its a pain having to contact people and ask them which one they would like free.

  • created

    Jul '12
  • last reply

    Jul '12
  • 3

    replies

  • 917

    views

  • 2

    users

  • 2

    links

You can insert some custom text/HTML in your cart by adding the following lines to your View Cart code on every page, just before the "// -->" line in the standard View Cart code you obtained from Seller Admin:



function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

jQuery("#tdPmnt").attr("innerHTML",

"Ordered 3 items? Be sure to order your 4th <b>free</b> item!");

}



We don't have a way to display that only to buyers who have at least 3 items in their cart, but that might be possible with some custom javascript. If you'd like some help with that, we can recommend the competent, E-junkie-experienced developers listed in our directory:

http://www.e-junkie.com/ej/developer-directory.htm

I added that code exactly where you said but when adding items to the cart none of the text is there.

Ah, it appears your site is using its own version of jQuery, which is conflicting with the jQuery our cart uses for customization; fortunately, we have a workaround for this scenario -- you can use 'ejejc_jQuery' in place of 'jQuery' in our cart customization code. Your complete View Cart script code should look like this:



<script language="javascript" type="text/javascript">

<!--

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

ejejc_jQuery("#tdPmnt").attr("innerHTML",

"Ordered 3 items? Be sure to select your 4th <b>free</b> item before checking out.");

}

// -->

</script>

<script src="http://www.e-junkie.com/ecom/box.js" type="text/javascript"></script>