Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Limiting Number of Products in Single Purchase

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-03-2005, 02:24 PM
  cliffo4's Avatar 
cliffo4 cliffo4 is offline
 

Member
  
Join Date: Jul 2005
Location: Leicester, UK
Posts: 19
 

Default

I have been going through the code this afternoon in the cart.php file.

I was looking around around line 345 onwards. My approach was to look at the MIN_AMOUNT field and try and work in a new field MAX_AMOUNT. However things dont seem to be that simple.

There seems to be 3 sections in the Update Quantity part that loop through the contents of the cart, each time reading data from teh data base, This seems a waste to me and causes extra overhead on the database that could be consolidated into one loop. Ive sort of given up as this was one section would need to check the section for adding an item as well.

My vote is to pop a request in the wishlist section to get this on the list of future required features.
__________________
X-Cart Gold 4.0.19
http://interstellarsounds.com
Reply With Quote
  #12  
Old 03-08-2006, 10:15 AM
 
inicom inicom is offline
 

Member
  
Join Date: Apr 2004
Posts: 24
 

Default

I guess this hasn't made it into xcart 4.1...at least i didn't see it. Quite a shame. I quoted this mod, but at the time decided it wasn't worth it. If we decide to go ahead with it, I'll for sure share it.
__________________
X-Cart Gold version 4.1.4
Reply With Quote
  #13  
Old 06-18-2006, 11:03 AM
 
golddog golddog is offline
 

Member
  
Join Date: May 2006
Posts: 18
 

Default

We have the same problem.

We're creating a store for a winery that is legally limited to shipping 24 bottles of wine per order (any combination). However, they also have some non-wine products on their site that would not be part of this total.

By looking at the earlier script change (from 3.x), is there anything in it that might muckup 4.0.18 or 4.1?

thx,
bev
__________________
xcart 4.0.18
Reply With Quote
  #14  
Old 08-13-2006, 08:03 PM
 
elomibao elomibao is offline
 

Member
  
Join Date: Sep 2004
Posts: 24
 

Default

I'm looking into this too. Our local DHL only allows a maximum of 6 (might be able to slip in eight) product type per order. Say 6 products of soap, 6 products of lotion, etc.

I initially looked into cart.php and it may seem a little easy. I'll make some tests and give you guys feedback. If anyone wants this solution, post here.

I'll basically add a new field in the database, max_amount and add code similar to where min_amount can be located.
__________________
X-Cart Pro 4.0.5
Fedora Core 2
Apache 2.x/PHP 4.x
MySQL 3.x
Reply With Quote
  #15  
Old 08-30-2006, 08:20 AM
 
golddog golddog is offline
 

Member
  
Join Date: May 2006
Posts: 18
 

Default Re: Limiting Number of Products in Single Purchase

Did you ever get this worked out? We could use this for our wine client.

Steve
__________________
xcart 4.0.18
Reply With Quote
  #16  
Old 08-31-2006, 06:25 AM
 
larrydavidow larrydavidow is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 38
 

Default Re: Limiting Number of Products in Single Purchase

Subscribed... Interested in getting this to work too... I'll poke around a bit and see if I can figure it out (eeek)
__________________
X-Cart Gold
4.5.4
Reply With Quote
  #17  
Old 12-11-2006, 05:51 AM
 
robidigital robidigital is offline
 

Member
  
Join Date: Aug 2004
Posts: 23
 

Default Re: Limiting Number of Products in Single Purchase

This seems like a necessary feature. I thought it was to be released in the 4.1 version. I am very interested.
__________________
Ryan Robillard
www.RobiDigital.com
Hagerstown, Boonsboro, Frederick, MD web site design, development and graphic design

X-Cart v4.4.2 Gold
Reply With Quote
  #18  
Old 01-26-2007, 06:49 AM
  limey66's Avatar 
limey66 limey66 is offline
 

Senior Member
  
Join Date: Feb 2006
Location: N.Ontario, Canada
Posts: 190
 

Default Re: Limiting Number of Products in Single Purchase

Will this work for 4.0.17 If not can someone please tell me what code to use ...and where to put it...
Thanks.
__________________
Thanks Michelle.
www.herb-care.com

Version # 4.6.3
Reply With Quote
  #19  
Old 04-06-2007, 03:09 AM
 
trini809 trini809 is offline
 

Member
  
Join Date: Oct 2002
Posts: 16
 

Default Re: Limiting Number of Products in Single Purchase

Has anyone figured this out yet?
This is a feature that my client want to implement, please feedback with any suggestions.

Thanks
__________________
trini809

:::
-oo
-

// --- x-cart [unix] --- //
// --- v.4.6 --- //
Reply With Quote
  #20  
Old 04-06-2007, 05:27 AM
  limey66's Avatar 
limey66 limey66 is offline
 

Senior Member
  
Join Date: Feb 2006
Location: N.Ontario, Canada
Posts: 190
 

Default Re: Limiting Number of Products in Single Purchase

Hi,
I asked X-Cart to price this for me...putting a Max number of items next to the Min number of items for each product...they quoted me $87 to do the Mod....I have not bought it yet as I need it so rarely I was hoping someone else would get it and post it in the completed mod section... Hint Hint
__________________
Thanks Michelle.
www.herb-care.com

Version # 4.6.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:07 PM.

   

 
X-Cart forums © 2001-2020