Using E-junkie Shopping Cart with Flash
Using E-junkie Shopping Cart with Flash
Making the cart appear in front of Flash content
Your embedded Flash content needs to be set as "transparent", so our cart overlay can "show through" the Flash, rather than being covered up by it. Add the following parameter to your OBJECT
tag:
<param name="wmode" value="transparent">
Also add the following attribute inside 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 or contact that Flash widget's provider 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");
Using E-junkie shopping cart on a site built in Flash
NOTE: This section is intended primarily for advanced Flash developers who program raw Flash ActionScript from scratch.
You will simply add your product in E-junkie admin and get the ADD TO CART and VIEW CART button codes. Then you will need to extract parts of that code to use it in Flash. In these example URLs, XXXXXX
represents your E-junkie Client ID, and YYYYYY
represents the product's unique Item Number in Seller Admin; the button code you obtain from Seller Admin should already include those values, or you can just add them manually when you program your Flash buttons.
- Add to Cart code you get from E-junkie Seller Admin:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYYYY&cl=XXXXXX&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>
The
href=
URL shown in bold is the key part there. When used in Flash, that link would be programmed like so:on (release) {
getURL("javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYYYY&cl=XXXXXX&ejc=2')");
}NOTE: If your E-junkie button code contains dropdown menus (only relevant when your products use Variants/Variations), then you will need to create dropdowns using Flash's standard menu components, and your button will need to pick the selected menu values and append those as parameters to the URL above (POST and GET parameters are interchangeable with our buttons).
- View Cart code you get from E-junkie Seller Admin:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=XXXXXX&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>Again, when used in Flash, that View Cart link would be programmed like so:
on (release) {
getURL("javascript:EJEJC_lc('https://www.e-junkie.com/ecom/gb.php?c=cart&cl=XXXXXX&ejc=2')");
}Additionally, you would also need to place the green/italic code shown above anywhere in your HTML "wrapper" page which contains the Flash! Just before the
</body>
tag is a good place for that.