1 / 17
Jan 2013

I've searched through the forums and haven't found an answer yet. I sell performance rights to play scripts. I have individual pages set up for each play with a cart that allows customers to purchase the rights to a play -they select the number of performances and on checkout they are re-directed to a download page (.pdf script as a digital download) That works wonderfully.



I also have a general page set up with all of the scripts listed and a variable of different performance prices. For example is use something like this:

PERF1PLAYABC,85.00,0.00,0,1 Performance 85.00,PLAY A,

PERF1PLAYXYZ,85.00,0.00,0,1 Performance 85.00,PLAY X,

PERF2PLAYABC,120.00,0.00,0,2 Performances 120.00,PLAY A,

PERF2PLAYXYZ,120.00,0.00,0,2 Performances 120.00,PLAY X,



and so forth - I did not know if there was a way - based on some extra code or variant - this would also re-direct the buyer on checkout to the correct page to download the script they purchased.



The best I could do is for this General page to re-direct the customer to a page informing them I will email the script (pdf) to them in 24 hours. I receive notification of what play they ordered and how many performances. But wondered if there was something extra I could add? I looked at package files -but I am not sending bundles - only one particular download (.pdf) based on which one they choose.

  • created

    Jan '13
  • last reply

    Apr '15
  • 16

    replies

  • 2.0k

    views

  • 4

    users

  • 9

    links

It's not possible to have Variants for a given product determine which

It's not possible to use "Variants having individual price/stock/weight/sku" to determine which file is provided as a download for a given product. Products can only issue a Single File Download, or a bundle of files you'd already uploaded to other products, either of which would always be the same file(s) for all sales that product if the product uses Variants, regardless of which particular Variant the buyer selects. You will need to set up each script file as a separate product, though you can still use Variants to define variable pricing according to how many performances the buyer is licensing from you.



If you prefer to show a menu selection of scripts rather than a separate Add to Cart button for each script product, you can use a special version of our button code. If these products also use Variants, this would only work if the Option [1-3] Values for every product are identical (e.g., "1 Performance 85.00", etc.), though the prices and SKUs could vary if you wish. This is the button code you would use, where XXXXXX, YYYYYY, etc. should be replaced with your products' Item Numbers:



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=194360&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="o1">

<option value="1 Performance 85.00">1 Performance 85.00</option>

<option value="2 Performances 120.00">2 Performances 120.00</option>

<option value="3 Performances 155.00">3 Performances 155.00</option>

<option value="4 Performances 190.00">4 Performances 190.00</option>

<option value="5 Performances 225.00">5 Performances 225.00</option>

<option value="6 Performances 260.00">6 Performances 260.00</option>

<option value="7 Performances 295.00">7 Performances 295.00</option>

<option value="8 Performances 330.00">8 Performances 330.00</option>

<option value="9 Performances 365.00">9 Performances 365.00</option>

<option value="10 Performances 400.00">10 Performances 400.00</option>

</select>

<br>

<select name="i">

<option value="XXXXXX">Murder Me Always</option>

<option value="YYYYYY">Death Of A Doornail</option>

<option value="...etc.">...etc.</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">

One minor correction: I forgot to replace my own client ID with yours in the form action= URL of the example code I provided; I have edited my previous post to correct this now.

2 years later

Hi



I realize this is an old thread but I think it answers something I have been puzzling over for many hours.



For each title we are selling I want to provide a pull down menu enabling the purchaser to choose their preferred format. It seems far too cumbersome to have each option listed as an option on the page!



So - as you can see here, I have partially done this using the variants http://www.felinefriendlycare.com/books-by-Dr-Kim-Kendall-cat-vet.html#Book3 .



But I have a few challenges... (see below) Here is the code I have used...



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="o1">

<option value="CR1epub 3.99">EPub for iPads $3.99</option>

<option value="CR1mobi 2.99">.mobi for Kindle $2.99</option>

<option value="CR1PDF 3.99">PDF $3.99</option>

</select>

<br>

<select name="i">

<option value="CR1epub">What Is Your Pet Cat Trying To Tell You?</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">





1. The <option value="CR1epub">What Is Your Pet Cat Trying To Tell You?</option> seems redundant because we know that we don't need the title! Unsurprisingly it will not work anyway. I get the message 'This product combination does not exist' so I tried to delete the section:



<select name="i">

<option value="CR1epub">What Is Your Pet Cat Trying To Tell You?</option>

</select>

<br>



and just get a message that the cart is empty.



So I seem to be headed off at the pass every way I turn. Is there a solution or alternative?



2. Do I have the form action correct?



Many Thanks!

Hello,



Your needs are a little different because you're not actually setting up a product with Variants at all. You need to have a menu that selects from one of three different products to allow the proper format to be chosen.



You'll want to ditch the top menu and keep the bottom one, try something that looks like this:



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR1epub">Epub format</option>

<option value="CR1mobi">MOBI format</option>

<option value="CR1PDF">PDF format</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">



You aren't calling up any products with a menu, so you don't need the "on1" selection. You need the "i" selection, because that fills in which item is being selected in the form to be added to your cart.

Thanks for this. It solves about 90% of the question but throws up another wild card.



Using the format below it works great (http://www.felinefriendlycare.com/books-by-Dr-Kim-Kendall-cat-vet.html#Book3 .) but there are 2 other titles that we need to do the same thing for but only the one title is showing up. I presume that there is a destinction between each group of formats for each title but I am darned if I can see it!.



Thanks for the continued help



This is the code I used:



Book 1



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR1epub">Epub for iPad; US$3.99</option>

<option value="CR1mobi">mobi for Kindle; US$2.99 </option>

<option value="CR1PDF">Printable PDF; US$3.99, x pages</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">





Book 2



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR2epub">Epub for iPad; US$9.70</option>

<option value="CR2mobi">mobi for Kindle; US$5.49 </option>

<option value="CR2PDF"> Printable PDF; US$6.99, x pages</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">



Book 3



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR3epub">Epub for iPad; US$9.70</option>

<option value="CR3mobi">mobi for Kindle; US$5.49 </option>

<option value="CR3PDF"> Printable PDF; US$6.99, x pages</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">

The code is good, the only problem with your second and third buttons is that you haven't created any products in your account to correspond with CR2mobi, CR2PDF, CR3mobi, and CR3PDF. When you do create them, be sure to reset their product ID numbers to match those corresponding values, and naturally you'll need to upload their specific file formats as well.



Basically what the code is telling our cart to add the product which matches a certain ID number that you've entered into the menu. If there's no product to match that ID number there's nothing for us to add.



While looking up your products I also noticed that the CR1epub product does not have a file uploaded to it, so it doesn't have anything to deliver currently. You can edit that product to upload its file while you are setting up your other formats.



Once everything is set up each book should have three corresponding products in your account for a total of nine items, and given the size of your files so far they should all hopefully fit within the 100 MB your plan allows but we can't say for sure since only about half of your files have been uploaded so far. If you get stuck because the last product just barely goes over your limit send us an email to support@e-junkie.com or let us know here and we may be able to help fix that.



Otherwise, if your total file size ends up going well beyond 100 MB you can upgrade to the $15 plan to get the extra room or maybe consider offering less alternate formats. You could sell all three products in PDF alone on our $5 plan, for example.

Hi eJunkie Monster and thank you for this thorough post again. Sadly I am still having problems and am now completely out of good ideas again. I must be missing somethin so obvious. :(



To cut a very (day) long story short I ended up deleting everything off the system and re-uploading each file with specific file names CR1epub CR2epub CR3epub etc. So there are 9 files in the system with .mobi & epub using the same structure.



I have 3 separate sales boxes - one for each title as you can see below. But the first two are just not locating the correct items or not taking any action and the third works perfectly. Am I attempting to bit off more than I can chew?



I am sure I have the item numbers correct but, perhaps, referring back to your previous post I have misunderstood or have tried to be too clever some how.



Edited to add: Finally - I have just realised that this format may not work well on mobile devices. After all this work, I will not be able to use it anyway! Is that correct or am I mistaken? I have only looked on an iphone



Can you assist again?



The sales boxes are beneath each of this titles:





Book 1: http://www.felinefriendlycare.com/books-by-Dr-Kim-Kendall-cat-vet.html#Book1



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR1epub">Epub for iPad, Nook and many other readers; US$3.99</option>

<option value="CR1mobi">mobi for Kindle and many other readers; US$2.99 </option>

<option value="CR1PDF">Full color, printable PDF; US$4.99</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">





Book 2: http://www.felinefriendlycare.com/books-by-Dr-Kim-Kendall-cat-vet.html#Book2



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR2epub">Epub for iPad, Nook and many other readers; US$9.70</option>

<option value="CR2mobi">mobi for Kindle and many other readers; US$5.49 </option>

<option value="CR2PDF">Full color, printable PDF; US$6.99, x pages</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">



Book 3: http://www.felinefriendlycare.com/books-by-Dr-Kim-Kendall-cat-vet.html#Book3



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=230282&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<select name="i">

<option value="CR3epub">Epub for iPad; US$7.49</option>

<option value="CR3mobi">mobi for Kindle; US$5.49 </option>

<option value="CR3PDF"> Printable PDF; US$6.99, x pages</option>

</select>

<br>

<input src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" alt="Add to Cart" class="ec_ejc_thkbx" onclick="javascript:return EJEJC_lc(this.parentNode);" border="0" type="image">

You're simply missing the </form> tag at the end of each of those code blocks, so browsers are treating them all as one big form and trying to guess (poorly) which <select name="i"> menu value is actually being submitted. :^)

Don't you just hate the bleeding obvious....

Thank you :slight_smile:

Hello again,



I would like to check something in relation to using this code (above)



I am going to be using the same file across two products (different currency) using http://www.e-junkie.com/ej/help.package.htm#bundle



Can I just check that this will work with the code above before I go set it up? Thanks!

Paul..

Hi E-junkieGuru



So - since my last post, all this is working but I have had an aweful realisation. That purchasers have nowhere to choose how many copies of a book they buy. I really missed that. Is there anyway to add it to the code (otherwise working perfectly or won't it work for this method?



The ref page is http://www.felinefriendlycare.com/australia.html



Thanks!

Paul

Our bundling feature should work fine with this code, since that's defined in the individual product settings in Seller Admin, rather than in the button code itself, and here the menu in the button code is just specifying which Item Number the buyer is adding to their order when they click Add to Cart.



To allow buyers to choose how many copies they wish to buy, simply enable "Let buyer edit quantity" in each product's settings. For download products, buyers would still receive just one link, but their order quantity will simply multiply the max. Attempts you allow for that link, while the Hours limit remains the same as for a single copy.

E-junkieGuru

To allow buyers to choose how many copies they wish to buy, simply enable "Let buyer edit quantity" in each product's settings. For download products, buyers would still receive just one link, but their order quantity will simply multiply the max. Attempts you allow for that link, while the Hours limit remains the same as for a single copy.





Hi and thanks for this

I get what you are saying. My problem is that the order quantity is not adjustable although the 'allow buyers to select quantity' link IS selected , as it is by default. Hence the problem. I am sorry I should have been clearer



Paul

Make sure your products are priced above 0.00, as free products priced at 0.00 will not allow buyers to edit the item quantity. This prevents crooks from cleaning out a seller's inventory in case of inadvertent misconfiguration allowing unintended free product orders.