1 / 5
Feb 2009

I'm working with an officelive.com site with CSS that is ...resistant... to behaving properly with e-junkie. Essentially, it will load the popup, but only in a frame by itself that looks blank the rest of the time. I can cope with this by putting the buttons in a frame by themselves at the bottom of product pages, and that will work...acceptably.



Because of the way the site is behaving, I'd like to add a "Shopping Cart" tab in the navigation bar leading to a page that would have nothing else on it except automatically loading the cart (rather than having a button that had to be clicked.)



Can you tell me how to mod the "view cart" script to place it alone on a page and display the cart whenever the page loads?



Thanks!

  • created

    Feb '09
  • last reply

    Feb '09
  • 4

    replies

  • 1.2k

    views

  • 2

    users

  • 7

    links

Your site-builder software appears to be doing some really strange things with our button code, so it isn't just sitting there in the page source as plain HTML just as we provided it to you. We really can't troubleshoot such a nonstandard implementation since we don't even really understand what your software is doing to our code nor how the weird code it actually is inserting even works, and we've only tested implementations where our code gets inserted into the page exactly as-is.



The first thing I might try, if you can, would be to remove all the View Cart buttons you have, and instead put just one View Cart up in your page header -- maybe if you could sneak it into that navigation bar instead of your Shopping Cart link?



If that doesn't work, then you would probably just need to use the non-JavaScript version of our button codes, which open the cart in a new window/tab instead of the overlay floater we normally have. On our Get Button Codes screen, you will see a checkbox you can UNCHECK to convert the code to their non-JavaScript versions, so you can copy that version of the code to paste into your page.



Finally, if you have only the one product, you may not need to use our Cart and related buttons at all. You could just get the Buy Now button code we provide for your product, so the buyer would click that and be taken directly to a PayPal checkout, bypassing our Cart screen entirely.

Thanks Tyson. Yeah, the Microsoft-provided sitebuilder is...weird at best.



In this bizzare sitebuilder implementation, I can't actually do the button-moving suggestions (though I'd prefer to - believe me) because I seem to have the "choice" of having the the pop-up appear in bizzare places [like half-way down the horizontal length of the page], or having it appear inside of a frame, with the display limited to the size of the frame that I make. [IOW, if I make a button-sized frame, I see a button-sized part of the pop-up window.]



Your suggestion about the buy-it now button is right-on, I think, for the site I directed you to, and I'll do that. Unfortunately, it doesn't make the question go away.



The actual reason that I was asking the thread question is for this site here: http://megajoule.web.officelive.com/default.aspx where my wife has implemented the multi-color selection drop menus in the JS shopping cart by simply putting the code in a frame at the bottom of each of the product pages that is big enough to display the cart. It all works (abet in a somewhat odd way) but of course this still leaves no way to get to the cart from the top of every page.



So, she did the same thing I did on the page I directed you to : http://megajoule.web.officelive.com/ShoppingCart.aspx



If we assumed, arguendo (for the purposes of argument) that the view cart button is inside of a HTML module frame, pasted EXACTLY as provided, WOULD it be possible to mod the script to just run when the page is loaded, rather than to show the button?



IOW, just to be clear, if we suppose that this is what the code in the frame on this page looks like:

<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=47863&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>



...is there a version of that script that - on an otherwise blank web page - would just display the cart when the page loaded, instead of displaying a button and waiting to be clicked? I do know that this is a silly request, as it's all backwards from what the implementation would normally do, but humor me, if you would.



Thanks!



Dex

We really haven't devised any way to support what you're asking re: having a page that just auto-displays the cart, and really it wouldn't work if you can't get the cart overlay to display normally on other pages when an Add to Cart button is pressed, so that line of thought just takes you roundabout back to the original problem anyway.



If you have a site with more than one product where the Buy Now button would not be suitable, then you would just want to use the non-JavaScript version of our Add to Cart and View Cart button codes by UNchecking the box indicated on your Get Button Codes screens in Seller Admin, as those will operate the cart in a new window/tab rather than using the fade-in overlay screen for displaying the cart.