E-junkie Ecommerce Forums » E-junkie Discussions
Tag Cloud for this topic: | |
| |
|
GuestUser member Posts: 808 |
I am setting up my cart and was wondering if there is any way to add multiple products to the cart with a single button. We often sell bundles (like two software titles or a software title and a backup CD). I tried to put multiple i= variables in the add to cart link, but that didn't work. Let me know if there is a way. # POSTED ON: November 5, 2007 @ 16:59 GMT -7 |
|
E-JunkieExpert member Posts: 804 |
I'm sorry but that's not possible with E-junkie cart. # POSTED ON: November 5, 2007 @ 17:00 GMT -7 |
|
untitledtv member Posts: 30 |
This post seems to contradict it: does it work as described? 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. # POSTED ON: August 8, 2009 @ 14:29 GMT -7 MODIFIED ON: July 12, 2011 @ 17:50 GMT -7 |
|
E-junkieGuru E-Junkie Crew Posts: 4345 |
Yes, that will allow a single Add to Cart button/link to add multiple different items to a buyer's cart at once. # POSTED ON: August 9, 2009 @ 14:21 GMT -7 MODIFIED ON: August 9, 2009 @ 14:21 GMT -7 |
|
untitledtv member Posts: 30 |
Okay...the earlier respond in this post and another said it was not possible..... # POSTED ON: August 10, 2009 @ 15:49 GMT -7 |
|
E-junkieGuru E-Junkie Crew Posts: 4345 |
E-junkieExpert is not part of our staff (though we're glad for the help they volunteer here :^) -- so they may not be privy to "insider info" like undocumented hacks such as the EJEJC_multiAdd function -- and you may notice that post was made nearly two years ago, so we've added quite a few new features and refinements since then as well. # POSTED ON: August 10, 2009 @ 17:41 GMT -7 |
|
JAHW member Posts: 17 |
untitledtvThe code you'll need is: 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 # POSTED ON: September 7, 2009 @ 14:39 GMT -7 MODIFIED ON: July 12, 2011 @ 17:51 GMT -7 |
|
JAHW member Posts: 17 |
Ok... I've played around with the codes a bit, and I must be doing something really wrong.... First I added the primary button code... (for the product) That one works... 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! # POSTED ON: September 7, 2009 @ 16:25 GMT -7 MODIFIED ON: July 12, 2011 @ 17:52 GMT -7 |
|
E-junkieGuru E-Junkie Crew Posts: 4345 |
Bear in mind that you would need to specify your E-junkie client ID after every &cl= part, and specify the Item Number for each product after each &i= part. For instance, using your account ID and some example item numbers, your multiAdd code might look like this: <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. # POSTED ON: September 8, 2009 @ 18:10 GMT -7 MODIFIED ON: July 12, 2011 @ 17:14 GMT -7 |
|
JAHW member Posts: 17 |
Hi, Thanks for responding, below is the exact codes that I placed... <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 # POSTED ON: September 9, 2009 @ 06:12 GMT -7 |
|
E-junkieNinja E-Junkie Crew Posts: 753 |
The link did not go through can you try to send it again? # POSTED ON: September 9, 2009 @ 13:21 GMT -7 |
|
JAHW member Posts: 17 |
Sorry about that... Here is the link again http://justathomeworking.com/NoFeeWorkAtHome.aspx This is just a testing page. Thanks again, L # POSTED ON: September 9, 2009 @ 14:00 GMT -7 |
|
E-junkieGuru E-Junkie Crew Posts: 4345 |
The problem is caused by your Web page editing software. 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. # POSTED ON: September 9, 2009 @ 16:05 GMT -7 |
|
JAHW member Posts: 17 |
Ok! I've got it! If your website is setup through "Microsoft Office Live Small Business" you have to use the "custom footer" module to add the "View Cart" code. Otherwise it will not work. As an added measure I created another custom footer for the Array code given above with my main product URL listed first. IMPORTANT - when opening the "custom footer" module you must first delete all codes that are there first then add your code... 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! # POSTED ON: September 16, 2009 @ 06:08 GMT -7 MODIFIED ON: September 16, 2009 @ 06:10 GMT -7 |
|
E-junkieGuru E-Junkie Crew Posts: 4345 |
Hm, we don't really have a way to make products "dependent" on other products (so removing the main product would remove the others as well), but some merchants have devised ways of doing that with custom javascripting of their own. 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. # POSTED ON: September 16, 2009 @ 14:00 GMT -7 |
You must be logged in to make a post. Please click here to login. | |






