|
How to use E-junkie shopping cart from inside Flash? How
to make sure that the cart comes on top of Flash?
Let's tackle the second question first.
Add the following parameter to the OBJECT tag:
<param name="wmode" value="transparent">
Add the following parameter to the 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 movie such that it's transparent.
Now, the first question
You will simple 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 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')");
}
If your E-junkie button code contains dropdowns (only
in the case 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 their values and append
it 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 place the red code anywhere in the HTML page containing
the flash.
|