1 / 10
Oct 2009

As I was adding the add to cart and View cart I checked them and they worked perfectly.Now after everything is in place the buttons don't work any ideas.



Bigcanemiami

  • created

    Oct '09
  • last reply

    Oct '09
  • 9

    replies

  • 1.2k

    views

  • 4

    users

  • 8

    links

Could you provide the URL of your page where the buttons are not working, so we can have a look at what might be going on there?

The problem is with part of your View Cart code. This is the relevant portion of standard View Cart code we issue in your Seller Admin:



<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>



...whereas your page has this:



<script type="text/javascript">// <![CDATA[

function EJEJC_lc(th) { return false; }

// ]]></script><br />

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



Using a copy of your page, I was able to get that existing code working by manually adding language="javascript" to the first <script...> tag, and by fixing the nested single-and-double quotes for type="'text/javascript'" in the last <script...> tag, like so:



<script type="text/javascript" language="javascript">// <![CDATA[

function EJEJC_lc(th) { return false; }

// ]]></script><br />

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

13 days later

I am facing the same problem, I would really appreciate if someone could help me with this



View Cart Code on E-junkie Dashboard-



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



View Cart Code on My Wordpress



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

<script type="text/javascript">// <![CDATA[

function EJEJC_lc(th) { return false; }

// ]]></script>

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

Tyson's steps from above should take care of this issue. Here they are again:





Tyson

Using a copy of your page, I was able to get that existing code working by manually adding language="javascript" to the first <script...> tag, and by fixing the nested single-and-double quotes for type="'text/javascript'" in the last <script...> tag, like so:



<script type="text/javascript" language="javascript">// <![CDATA[

function EJEJC_lc(th) { return false; }

// ]]></script><br />

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

Thanks Tyson but that didn't help. I pasted e-junkie's view cart code and saved it in HTML Format without switching to visual format and the code is intact but doesn't work.

Technically the plugin should work, our FatFreeCart and E-junkie itself are built very similarly.