Using E-junkie Shopping Cart with Flash
How to make sure that the cart comes on top of Flash?
How to use E-junkie shopping cart from inside Flash?
Your Flash needs to be set as "transparent", so the cart overlay can show "through" the Flash (rather than being covered up by your Flash). Add the following parameter to your OBJECT tag:
<param name="wmode" value="transparent">
Add the following parameter to your EMBED tag:
wmode="transparent"
If you are using a JavaScript function to embed your Flash, then you will need to refer it's documentation to see how to embed the Flash such that it's transparent; e.g., if you are using SWFobject, then you would need to add this parameter to your SWFobject code:
so.addParam("wmode", "transparent");
How to use E-junkie shopping cart from inside Flash?
You will simply add your product in E-junkie admin and get the ADD TO CART and VIEW CART buttons. Then you will need to modify the code slightly as described below, to use it in Flash.
- Add to Cart code you get from E-junkie admin:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=1&cl=37&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="https://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0"></a>
...when used in Flash should be written like:
on (release) {
getURL("javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=1&cl=37&ejc=2')");
}
NOTE: If your E-junkie button code contains dropdown menus (only relevant when your products have Variants), then you will need to create dropdowns in Flash using Flash's standard components, and your button will need to pick the menu values and append those as parameters to the URL above.
- View Cart you get from E-junkie admin:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=37&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="https://www.e-junkie.com/ej/ej_view_cart.gif" border="0"></a>
<script language="javascript" type="text/javascript">
<!--
function EJEJC_lc(th) { return false; }
// -->
</script>
<script type="text/javascript" src="https://www.e-junkie.com/ecom/box.js"></script>
...when used in Flash should be written like
on (release) {
getURL("javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&cl=37&ejc=2')");
}
...and be sure to place the green/italic code shown above anywhere in your HTML page containing the Flash!
This page added by
E-junkieChef on July 16th, 2008 @ 5:38 pm GMT -7
Updated by
Tyson on December 23rd, 2008 @ 3:49 pm GMT -7