8 / 8
Apr 2013

I have just signed up with E-Junky. I have a single pdf book

that I am selling and I want to use just a button, but I need a quantity option

included. I am not sure where to add the code. This link suggests that it can be done withan E-Junky button. Here is a link suggesting that it can be done.

http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm

It says to add the code “&quantity=N” to the end of the url in the button code. Where would that be? Thanks for your help.

  • created

    Jan '13
  • last reply

    Apr '13
  • 7

    replies

  • 1.6k

    views

  • 4

    users

  • 5

    links

The way you would set this up would depend on which E-junkie purchase buttons you are using. If you are using our Add to Cart button codes, then you would not want to add it in, because your buyers can just change the quantity in the cart before they go to checkout.



However, if you are using our Buy Now buttons then you would want to edit the code so it looks like this:

<a href="https://www.e-junkie.com/ecom/gb.php?i=XXXXX&c=single&cl=XXXXX&quantity=N" target="ejejcsingle"><img src="http://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></a>



(That is an example code so do not copy and paste it to your site.)



Using the the Buy Now button would also require that you write your own code to provide a field for your buyers to use to enter in the quantity they want and then you would also need to write your own code to take that quantity and add it to the E-junkie code.

Thanks for your help. I know that the shopping cart works with quantity, but I feel using the buy now button would take out one page from the buying experience that would hopefully make less dropped transactions. Thanks for showing me where to add the quantity parameter. What would the code look like for the buyer to use to enter the quantity and take that quantity and where would you add this to the E-junkie code?

3 months later

Hi, I'm posting this question here as it's essentially the same but I'm hoping for a different outcome :slight_smile: even though it's sounds like it's not possible...



I'd like customers to be able to select the quantity they want on my web page BEFORE they click the 'add to cart' button AS WELL AS being able to then adjust the quantity in the e-junkie cart if they want to.



Is this possible?



Thanks!

Yes, just use the method explained above, and also enable "Let buyer edit quantity" in the product's settings in Seller Admin. Note that in your case, the form action= URL would have your own E-junkie Client ID, like so:



<form action="https://www.e-junkie.com/ecom/gb.php?i=XXXXXX&c=single&cl=247325" method="POST" accept-charset="UTF-8" target="ejejcsingle">

Quantity:<br>

<input size="3" name="quantity" value="1" type="text"><br>

<input src="http://www.e-junkie.com/ej/x-click-butcc.gif" alt="Buy Now" border="0" type="image"></form>

Hmm, maybe I'm missing something.



When I do as you describe, clicking on the 'buy now' button opens a new tab straight into paypal (thats the payment services I'm using) with no option to edit the quantity, although it does correctly show the number of items selected before pressing the 'buy now' button.



Just to clarify, I'm trying to get the popup cart that appears when using the 'add to cart' button to accept

1: the customer selecting a quantity before pressing the button.

2: the popup cart to show the quantity selected.

3: still give the option to adjust quantities.

If you are using the Buy Now button, so the buyer goes directly to PayPal, you are not going to be able to edit the quantity once the buyer goes to PayPal's website.



Based on your description, what you will want to do is replace the current Buy Now button that you are using and replace it with the Add to Cart button for the product, and you will also want to include the View Cart button on the same page.