| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Limiting Number of Products in Single Purchase | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Limiting Number of Products in Single Purchase
Hi,
I'd like to be able to set up a product so that a customer may only order a maximum of two of them in a single order, regardless of the number of them in stock. How could I do this? |
|||||||
#2
|
|||||||
|
|||||||
in customer/cart.php
change: Code:
to: Code:
Please note this code is for 3.4.2
__________________
ex x-cart guru |
|||||||
#3
|
|||||||
|
|||||||
Just to complicate things - there only a couple of items out of about 10,000 that need this treatment, and it will change every month. Any way of doing it without hardcoding them in?
|
|||||||
#4
|
|||||||
|
|||||||
Not without a shed load of work I am afraid.
Would need to create an extra field in the products table to hold the max order amount and alter all the cart functions, display functions and modify product functions to read this.
__________________
ex x-cart guru |
|||||||
#5
|
|||||||
|
|||||||
I would also like to see this. Maybe in a future release of 4.0?
We have about 20 products out of about 20,000 which are made on demand. Supply is unlimited, but only about 10 of each product are ever on hand at any given time and ordering much more than 10 of any one could over-take the ability to supply them. Would be nice to have a feature like this. Maybe I should post under Wishlist?
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#6
|
|||||||||
|
|||||||||
Agreed, one should be able to set the MAX and MIN purchase amounts. While we are at it, I would love to see a "quick update" product page with price, list price, max, min, avail, forsale etc. No images, no categories, no fluff.
Just a list of products so you can update the fields used most often when current stock editing. |
|||||||||
#7
|
|||||||||
|
|||||||||
Yeah had a few clients ask for this one too.
It's very useful for limited edition stock too. As in Example you have 100 items of this but you may only order a max of 2 per order/customer. Same way supermarkets do it.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#8
|
|||||||
|
|||||||
any success
I saw this thread and wondered if xcart had moved on anything, or if anyone else has had some success with it.
__________________
d@spyfx.com _________ X-Cart version 3.5.11 PHP 4.1.2 MySQL server 4.0.20-standard |
|||||||
#9
|
|||||||||
|
|||||||||
"Max order amount" would be a good feature to add to a future version of xcart.
__________________
X-Cart 4.0.12 PHP 4.3.11 MySQL 4.0.23 Linux/Apache Net::SSLeay 1.25 libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4 www.ewdhosting.com |
|||||||||
#10
|
|||||||
|
|||||||
Any update to this for 4.0?
__________________
X-Cart Platinum 4.6.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|