I was wondering if there's a way to auto-enter multiple items into a cart?
created
Mar '08
last reply
Jan '17
- 3
replies
- 1.8k
views
- 4
users
- 8
links
I was wondering if there's a way to auto-enter multiple items into a cart?
Here's the multiAdd to Cart code you'll need:
<a href="javascript:EJEJC_multiAdd(Array(
'https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=XXXXXX&i=YYYYYY',
'https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=XXXXXX&i=ZZZZZZ'
));" style="display: inline-block;background: #3da5d9 url(https://www.e-junkie.com/ej/images/newaddtocart.png) center/100px no-repeat;border: none;padding: 7px 55px;border-radius: 3px;box-shadow: 1px 2px 2px rgba(0,0,0,0.2);text-decoration:none;"> </a>
Those example URLs shown in the 2nd and 3rd lines there will need to be replaced with the actual href=
URLs from your Add to Cart button code2 for each item. You can add as many URLs as you want in the list, but note that all except the very last one need a comma after the closing quote at the end (as shown above).
This also depends on having at least one copy of our Cart Script code copied from your Cart button codes screen3 and pasted into the same page; this loads some javascript to display our cart as an overlay within your page, which also handles the multiAdd function.
Topic | Category | Replies | Views | Activity |
---|---|---|---|---|
504 Gateway Timeout | E-junkie Discussions | 1 | 410 | Apr '24 |
Loved the product! | E-junkie Discussions | 0 | 233 | Jul '24 |
Reddit Link Click Tracking | E-junkie Discussions | 2 | 256 | Aug '24 |
Issue with CC processing | E-junkie Discussions | 3 | 225 | Aug '24 |
How to Optimize E-junkie for Selling Digital Products | E-junkie Discussions | 1 | 177 | Oct '24 |