9 / 9
Dec 2009

Well, I'm back after experimenting with assorted shopping carts on my WordPress blog. All were a disaster. So I rebuilt product pages and place my e-junkie buttons (which had caused probs in the past). It all went great except for JUST ONE on this page http://panicattackology.net/mentoring. You'll notice after the second ADD TO CART button (for the $79 product) the image that follows it becomes misaligned. Now, if I remove that ADD TO CART button the image goes back in line. It's driving me nutso. Any ideas? Thank You...

  • created

    Dec '09
  • last reply

    Dec '09
  • 8

    replies

  • 1.1k

    views

  • 3

    users

  • 8

    links

First, I will refer you to our WordPress help, where you may find some useful tips:

http://www.e-junkie.com/ej/help.site-blog.htm#wordpress



Try adding this to your View Cart code, just before the "// -->" line in the standard code we provide:



function EJEJC_config() {

EJEJC_INITCSS = false;

}



...so your full View Cart code should look like this:



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

function EJEJC_config() {

EJEJC_INITCSS = false;

}

// -->

</script>

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



Also, it's a good idea to remove any other View Cart code remnants from your page; you can find these by looking for "/box.js". You may just want to put the View Cart code in a common template file or header/footer/sidebar region where your regular posting editor can't mess it up.

Nah...no go. Didn't work. Frankly, it's wearing me out...especially since I'm a shrink, not a coder. May just dump the product below it for now and move on. But I appreciate your help, nonetheless.

That's strange, I simply added the same code I use on my sales page button as html in the sidebar for a wordpress blog and everything seemed to work perfectly first time round. I don't know how effective this will be in the long run or if I'll keep it but one piece of code has just created a few hundred more potential shopping carts, since it automatically appears on every page, so with the right levels of traffic it could be very useful in theory.

Your WordPress appears to be garbling your code after you paste it in. Make sure you are saving your post directly from the raw HTML-code view after you paste in our code, without switching back to the visual-editor mode first.



In particular, where your page has this:



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

function EJEJC_lc(th) { return false; } function EJEJC_config() { EJEJC_INITCSS = false; }

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

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



You should change that to this:



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

function EJEJC_lc(th) { return false; }

function EJEJC_config() { EJEJC_INITCSS = false; }

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

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



Note the last line in particular, where type="'text/javascript'" should be changed to type="text/javascript" (remove nested single-quotes inside double-quotes).



If you'd like some expert assistance, we can recommend the competent, E-junkie-experienced developers listed in our directory here:

http://www.e-junkie.com/ej/developer-directory.htm

Valiant effort to be sure. And I appreciate the help. But, no, it ain't happening. No doubt, being fairly new to this blogging biz I've got all sorts of ick in my files. When I have the time and $ I'll get it cleaned up. For now, I gotta' forge ahead. Thank You!