E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Wed, 16 Sep 2009 21:00:49 GMT Fri, 10 Feb 2012 16:21:12 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #15 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 16 Sep 2009 21:00:49 GMT
E.g., see what Muvenum has done with their Backup CD option:
http://muvenum.com/buy-now/

If you add a download product to their cart, you can add an optional backup CD, but removing the download from the cart also removes the CD. We don't know quite how they managed that, so you'd need to examine their code and figure it out or ask them if they'd be willing to provide tips.]]>
E-junkie Discussions; E-junkieGuru
Post #14 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 16 Sep 2009 13:08:27 GMT So my code for the "Array code" in the custom footer looks like this...

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:template match="/Footer">
<![CDATA[
<a href="javascript:EJEJC_multiAdd(Array('https://www.e-junkie.com/ecom/gb.php?c=cart&i=320463&cl=84573&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=320483&cl=84573&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=320487&cl=84573&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=320489&cl=84573&ejc=2'));"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>
]]>
</xsl:template>
</xsl:stylesheet>

My code for the "View Cart" in the other custom footer looks like this:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" omit-xml-declaration="yes"/>
xsl:template match="/Footer">
<![CDATA[
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=84573&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_view_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>
]]>
</xsl:template>
</xsl:stylesheet>

Hope that helps someone.

Now my question... LOL is there a way to add a code that if the main item is removed that the other free bonus items cannot be downloaded? Another words if the main item is removed then the other items also get removed.. I don't want to use the packaging option because then the ebooks will not be stamped, from what I understand.

Thanks for all your help!]]>
E-junkie Discussions; JAHW
Post #13 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 9 Sep 2009 23:05:08 GMT
You would need to find some way of pasting your View Cart code and your multiAdd code directly into the raw HTML source code of your page, in such a way that you can be certain the code you paste is retained in the page itself exactly as-is without modification.

The software you're using is putting the View Cart code in a completely separate file that gets displayed inside an iframe in your page (instead of putting the View Cart code directly into the page itself), and the other code you're pasting such as the multiAdd is getting rather radically altered to the point our code cannot work as we designed it.]]>
E-junkie Discussions; E-junkieGuru
Post #12 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 9 Sep 2009 21:00:33 GMT http://justathomeworking.com/NoFeeWorkAtHome.aspx

This is just a testing page.

Thanks again,
L]]>
E-junkie Discussions; JAHW
Post #11 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 9 Sep 2009 20:21:15 GMT E-junkie Discussions; E-junkieNinja Post #10 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 9 Sep 2009 13:12:04 GMT
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=320463&cl=84573&ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>

<a
href="javascript:EJEJC_multiAdd(Array('https://www.e-junkie.com/ecom/gb.php?c=cart&i=320483&cl=84573&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=320487&cl=84573&ejc=2','https://www.e-junkie.com/ecom/gb.php?c=cart&i=320489&cl=84573&ejc=2'));">Add ALL</a>

I have placed them on an "old page" that is now my "test" page before I place them live on the site for visitors. Currently I have the main product "packaged" with the bonus books, but I'm not sure if that will deliver the way that I want it to... I want the ebooks to obtain the "pdf stamp", and be able to have all download links on the same "Thank You" page, or email.

Here is the link for the test page. The "view cart" button is located at top right, and the "buy now button and the ADD All link" is located at the very bottom.

Thanks again for all the help!
L]]>
E-junkie Discussions; JAHW
Post #9 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Wed, 9 Sep 2009 01:10:32 GMT
<a
href="javascript:EJEJC_multiAdd(Array(
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=111111&cl=84573&ejc=2',
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=222222&cl=84573&ejc=2',
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=333333&cl=84573&ejc=2'
));">Add ALL</a>

You can of course change "Add ALL" to say anything you want, or replace that with the <img> tag from a regular Add to Cart button or any custom button image you choose.

If this doesn't clear up the matter, we'd need the URL of a page where you're testing this, so we can have a look at the code you've got in that actual page.]]>
E-junkie Discussions; E-junkieGuru
Post #8 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Mon, 7 Sep 2009 23:25:04 GMT
Then for the 3 free bonus books I added....
<a href="javascript:EJEJC_multiAdd(Array(
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=...&cl=...&ejc=2',
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=...&cl=...&ejc=2',
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=...&cl=...&ejc=2'
));">Add ALL</a>

I then see an "Add to cart" and the "Add All" link. However the only the "Add To Cart" button works, the "Add All" doesn't work at all . I receive an error on page at the bottom of the browser only when the multi add code is added.

I've tried to "merge" the 2 codes into one several different ways and that doesn't work either. I do have the "View Cart" button code on the same page.

I, like the original poster offer 1 ebook for sale and 3 additional ebooks as a bonus.
These I would like to show up in the checkout / order screen and be available for individual download as well. I do not want to place them all in a zip file.

Thanks again for all the help!]]>
E-junkie Discussions; JAHW
Post #7 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Mon, 7 Sep 2009 21:39:17 GMT untitledtvThe code you'll need is:

<a href="javascript:EJEJC_multiAdd(Array(
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYYYY&cl=XXXXXX&ejc=2',
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=ZZZZZZ&cl=XXXXXX&ejc=2'
));">Add ALL</a>

You'll have to replace the URLs with the URLs from your add to cart button code. You can add as many URLs as you want in the array.

Hello - New to E-Junkie, and I'm wondering if we need to add the rest of the script for the button... "target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a>

If so, do we add it immediately following the "));">Add ALL</a>" Or does the above script follow the primary item button code?

Thanks]]>
E-junkie Discussions; JAHW
Post #6 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Tue, 11 Aug 2009 00:41:15 GMT E-junkie Discussions; E-junkieGuru Post #5 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Mon, 10 Aug 2009 22:49:24 GMT E-junkie Discussions; untitledtv Post #4 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Sun, 9 Aug 2009 21:21:15 GMT E-junkie Discussions; E-junkieGuru Post #3 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Sat, 8 Aug 2009 21:29:07 GMT

The code you'll need is:

<a href="javascript:EJEJC_multiAdd(Array(
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=YYYYYY&cl=XXXXXX&ejc=2',
'https://www.e-junkie.com/ecom/gb.php?c=cart&i=ZZZZZZ&cl=XXXXXX&ejc=2'
));">Add ALL</a>

You'll have to replace the URLs with the URLs from your add to cart button code. You can add as many URLs as you want in the array.]]>
E-junkie Discussions; untitledtv
Post #2 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Tue, 6 Nov 2007 00:00:24 GMT E-junkie Discussions; E-JunkieExpert Post #1 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 http://www.e-junkie.com/bb/topic/575/pg/0#post11514 Mon, 5 Nov 2007 23:59:41 GMT E-junkie Discussions; GuestUser