1 / 9
Aug 2009

Hi,



When i click add to cart button on my site - the product is added to the cart - no problems. However if i go to another page or even stay on that page and click it again - to add a second - it doesn't come up. It shows just 1, and so the user has to add the quantity themselves. This didn't use to happen... someone could click on an item add it to cart - conttinue shopping, add the same item to cart later and it would then show 2 ect ect.



That has just stopped working. Any ideas why? Is it the coding?

  • created

    Aug '09
  • last reply

    Jan '12
  • 8

    replies

  • 1.3k

    views

  • 4

    users

  • 2

    links

Maybe its something to do with my admin settings?

Hey James, In E-junkie cart, pressing "add to cart" twice never used to increase the quantity.

Strange - i thought it did.



So the only way to increase the quantity , is manually ?



Thanks 4 your reply.

That is correct; the only way to change quantity is for the buyer to manually edit the quantity in their cart.



If you want to set an initial default order size, say 2 units, you can add &quantity=2 to your Add to Cart button URL, so when the buyer clicks that button the first time, they'll start with 2 units of that item already in their cart.



You can also combine that with disabling "Let buyer edit quantity" in the product's settings, so continuing with the above example, clicking the Add to Cart button would add 2 units of that item to the cart, and the buyer would be unable to alter that quantity.

2 years later

I am a trial member who is testing the product for use on a site I manage. I've created a demo cart designed to sell a single physical product to the US and Canada. After I resolved an earlier issue creating two different flat shipping rates, the cart is working to my satisfaction, except for one thing: after placing a sample order, the Quantity field in the cart always shows the number 1, no matter how many units are selected from the drop-down menu on the web page. I'm pretty sure that's because of the way I configured the cart using the Variants option in the Admin tool. I'm guessing that I have to offer the customer the ability to enter the number of units manually in order for the Quantity figure to appear accurately in the cart. Also, because I limit customers to purchasing a maximum of 9 units in a single sale, I'm trying to figure out how to insert some type of error-checking code in my script to alert customers of this fact.

OK, so now I fixed the above problem by checking the "Let buyers enter quantity in cart" box in the Admin tool. The one sticky point remaining (and it's unrelated to the Quantity issue) is figuring out how to hide the destination country of the purchaser from appearing in the shopping cart under Item description right after the product name.

The country and ZIP/postal code fields on appear when the cart holds items which have either Shipping/Buyer's Address or Sales Tax/VAT enabled; if you disable those in your product's settings, the cart will not ask buyers to specify a location when they order that item.



We don't have any way to set a maximum quantity that each buyer can order, but you might consider adding some custom text/HTML to your cart reminding them that you can only accept orders of up to 9 units per product. Just add the following lines to your View Cart code, just before the "// -->" line in the standard code you got from Seller Admin:



function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

"You can order up to a <b>max. qty. of 9 units</i> per product");

}



Another approach you might consider would be having a Buy Now button that bypasses the cart and takes the buyer directly to instant checkout for just one product at a time. To provide a qty. selection menu for 1-9 units of this product, you can use this code (where XXXXXX would be your product's Item Number):



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

Quantity:<br>

<select name="quantity">

<option value="1">1

<option value="2">2

<option value="3">3

<option value="4">4

<option value="5">5

<option value="6">6

<option value="7">7

<option value="8">8

<option value="9">9

</select><br>

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

Thanks very much for your feedback. I figured out a way around the issue by setting a fixed price for a single unit, turning off the Variants option that I had set previously, then using the Discount Tool to provide the desired price break for bulk purchasers (3 or more). I also used the Shipping Tool to set different flat rate shipping charges applicable to Canadian and U.S. customers. When I now click on the Add to Cart button to bring up the Shopping Cart pop-up window, the product name appears in the Item column without the addition of the quantity number and country of the customer.