1 / 9
Nov 2009

Hi there,



I was on a site that was using e-junkie yesterday (I run e-junkie on my own sites as well), and checked out in a process that was much different than the experience my customers have.



My customers click an "add to cart" button, and that takes them to a newly opened page, with the shopping cart info at the top. When I was going through this guys checkout process, after clicking the button, it opened a popup on top of the current page, neatly centered, and faded the previous screen in the background. That was pretty cool and I was wondering how that was done.



Additionally, I saw that a coupon code was already added on, without my ever having to put in a coupon code myself. How was that done too?



Any advice would be GREATLY appreciated. Thank you!!!

  • created

    Nov '09
  • last reply

    Dec '09
  • 8

    replies

  • 1.1k

    views

  • 2

    users

  • 6

    links

Just make sure that you include at least one block of your View Cart code on every page that has any number of Add to Carts, because the View Cart code calls upon all the programming that makes the nice overlay-style cart work like that. :^)



If you create a discount without a Discount Code (just leave that field blank), that discount would be applied automatically based on whatever criteria you defined for that discount (e.g., whenever an order meets the discount's Min. Items in Cart and/or Min. Item Total thresholds). It's also possible to add an actual Discount Code right in the button code, so the Code gets entered automatically when that button is pressed, if you'd prefer to go about things that way; to do this, just add &discount_code=CodeGoesHere to your Add to Cart URL like so:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXX&cl=YYYYY&ejc=2&discountcode=CodeGoesHere" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart"/></a>

Hi Tyson, thanks for the help.



I put the view cart code on my page, but only 1 of the two products on my page opens the nice window. The other clicks directly to a new page with the cart info at the top. Any ideas?



I don't have to grab the view cart code from each product, because the viewcart code is the same, correct?



Thanks!

Aha, figured it out. Nevermind Tyson. Thanks for the help once again!

The neat fading feature for the shopping cart doesn't seem to work for safari. Is this correct or am I not doing something right.

Our standard overlay-style cart has been tested to work reliably in every major browser (IE, Firefox, Safari, Opera, Chrome) on every major platform (Windows, Mac, Linux).



If you could paste the URL of your page where it doesn't seem to be working in Safari, we can have a look at what might be going on there.

9 days later

Um...you're awesome! Thanks so much for your help, I think I have it all figured out. Cheers Tyson!