Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Only ONE product allowed to buy
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 01/24/2022 :  07:03:50  
On my site I don't need the ability to have more than one product bought.

They are digital products.

Is there a way to turn off the ability to have quantity?
I know I can simply hide the class but I need the ability of the store to recognize that you cannot buy two of the same.

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 01/27/2022 :  07:14:31  
No feedback on this one. Is there not a way of doing this?

You would think that if you are selling digital products, for instance a manual, that you would only allow it to be bought once. If the customer accidentally bought two, that a message or error would appear and not allow this.

There are sites that do this. Photo sites for one.

Terry (Redsei)

EllenD
Advanced Member

United Kingdom
434 Posts

Posted - 01/27/2022 :  09:13:46  
Hi Terry,

You can remove the Quantity box from the product, by removing 'quantity' from the $productpagelayout list in your includes.php file.

This may not be exactly what you want, but may help? I don't think it would stop the customer from adding the same item to the cart more than once, but at least the default would be that they only get one item when adding to cart.

The full list of items available is:
$productpagelayout='productimage, addtocart, productid, sku, productname, manufacturer, discounts, reviewstars, instock, custom1, description, options,dateadded, listprice, price, currency, quantity, custom2';

and you can read more about how to use them here https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#csslayout

Ellen

dbdave
ECT Moderator

USA
10468 Posts

Posted - 01/27/2022 :  09:31:47  
Ellen's suggestion is the only built in option, but of course that won't stop them from adding to the quantity in the cart itself, although I think that would be unusual.

If you lust have this feature, I can see a path to it, but it would require custom coding, so you might want to post in the developers forum.

It's also not a bad idea to post in the suggestions forum to gauge interest and that's where (often) new ideas are picked up from.

Thanks,
David

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 01/27/2022 :  11:05:15  
Yes thanks Ellen and Dave. I knew about the $productpagelayout. I think I'll put that down to the suggestions forum.

Terry (Redsei)
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000