9 / 9
Oct 2009

1) When I was testing the "Add to Cart" buttons on my site the shopping cart would appear in a smaller window with the current website page ghosted in the background. Now that I am trying to implement them on the site for real, the shopping cart now opens in a full-sized separate window.



2) When the continue shopping button is pressed, it sends the shopping cart window back behind the active website window (Usually directly behind, where it is completely hidden). Then when the view cart button or the add to cart button is pressed, it appears that nothing happens. This is because the shopping cart window is still open behind the current window and it does not automatically come to the front.



3) I set up another button, using variables, for my product in bulk. When the add to cart button is clicked, it opens the PayPal account login page in the open window (replacing the current web page). So, not only does it NOT take you to a shopping cart, it requires you to hit the history button to navigate back to the website where I am trying to sell.



Help please!

  • created

    Sep '09
  • last reply

    Oct '09
  • 8

    replies

  • 1.3k

    views

  • 3

    users

  • 11

    links

Often issue like one and two happen because some of the view cart code is incomplete. As for the other button it sounds like a Buy Now button instead of an Add to cart button. Can you send us the URL of your sales page and we can take a look at it

1 & 2: This page is missing part of the View Cart code (specifically, the line referencing our box.js cart script), which is required to generate the nice overlay-style cart display. Because the cart overlay cannot be rendered, the cart is operating in "fallback mode" using a popup window/tab.



Make sure you obtain your complete View Cart code from your Seller Admin and paste that into your page source, then if you wish, modify the buttons' appearance however you require; this page gives tips for replacing our standard button images:

1http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm1


3: This page is only using PayPal's own button code, although part of an E-junkie View Cart button link is also stuck in there uselessly.



BTW, nice product -- it's pretty much the sort of setup I'm already using, albeit mine is rather cobbled up from improvised odds'n'ends and not a proper "solution" like you've devised. :^)

Thanks Tyson. However, I have copied and pasted the source code provided by e-junkie several times, all with the same result.



I have even recreated my product buttons to generate new code, with the same results. I do not write code (I think that's pretty obvious), so I cannot determine what is missing. Is it possible that your code generator is providing me incomplete code (specifically, the line referencing your box.js cart script)?



I really want to use e-junkie's cart solution and I feel like I am 94.235% there. If I could just get the cart to display correctly (not open in separate window) I would be home free.



Regarding #3: I was using PayPal's Buy Now Button code for the specially priced trial unit purchase, since it was working fine and we currently have an e-blast campaign that is driving people to that page, I didn't want to mess with it until I could get e-junkie carts straightened out. I created a product with variables in e-junkie for my bulk/case orders. I then placed that shopping cart code on the same page.



I have now added the trial unit as a product in e-junkie, along with the bulk/case cart. The cart now opens, but it still opens in a separate window.



Any help you could provide is most appreciated.



BTW, thanks for the comments on the product. Even though the trial unit pricing is for potential distributors, I would be happy to let you have a Mobo at the trial price, if you want to try one. Thanks in advance.

I took a look at your page, www.getyourmobo.com. Here is what I saw for your view cart code:

<a class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this);" href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=83132&ejc=2" target="ejejc"><img src="http://www.getyourmobo.com/storage/ButtonView_Cart.png" border="0" alt="View Cart" /></a> <div id="deferred_script_4775846_1"><div class="deferred-widget">Loading..</div></div><script type="text/javascript">window.setTimeout("dfv_4775846_0=document.createElement('script');dfv_4775846_0.type='text/javascript';el=document.getElementById('deferred_script_4775846_1');el.innerHTML='';el.appendChild(_dfv4775846_0);",1);</script>

<!--

function EJEJC_lc(th) { return false; }

// -->



Here is the standard code:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl= 83132&ejc=2" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejview_cart.gif" border="0" alt="View Cart"/></a>

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

<!--

function EJEJC_lc(th) { return false; }

// -->

</script>

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



I would suggest trying the standard code, with no modifications and see if it works like that.



As for #3 if you are now using an E-junkie purchase button for this page, try the standard code that is above and see if the cart comes up in the overlay window.

Okay, I have determined where the issue is, I just do not know if there is a fix for it.



Here is what is going on:



I am using the shopping cart code in a widget that allows HTML to be used in the sidebar navigation of my site. When the cart code is inserted there, it displays the cart in a separate window when clicked.



When the same exact code is inserted in a HTML page in the main content area of the site, the cart displays as desired (pop up window over screened back site).



Is there any way to get the cart to display correctly in the HTML sidebar widget?



Thanks in advance.

Your page-editor software, or the sidebar widget itself, may be altering the code after you paste it in, apparently removing the box.js line for some reason. The overlay-style cart should work if you can at least get this block of lines pasted anywhere in the page at all:



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

<!--

function EJEJC_lc(th) { return false; }

// -->

</script>

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



For instance, you could paste those lines in the main HTML content area of your page (they don't actually show anything visible in the page by themselves), and then you could paste the Add to Cart and View Cart buttons into your sidebar widget. This would be the rest of your View Cart code that displays the button itself:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=83132&ejc=2" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.getyourmobo.com/storage/ButtonView_Cart.png" border="0" alt="View Cart"/></a>

Tyson,



Thanks bud, that worked. I had to insert that code on every page where the cart in the sidebar appeared (Basically every single page). But that fixed it and the cart now works properly. Thanks for the patience and all of the help.



Kevin