View Single Post
  #4  
Old 10-04-2007, 07:59 AM
 
kacz kacz is offline
 

Member
  
Join Date: Aug 2007
Posts: 11
 

Default Re: Limiting the purchase quantity of a product

thanks, I've actually done a bit more with this mod. The biggest problem that I had to deal with is that my client had items for which tens of thousands could be purchased (he does large-scale DVD and CD replication). So, when you try to load the items with the max order quantity of say 50,000 you'll spin for minutes building the <select> form element.

The thing to do then was to replace the <select> form element with an <input type'"text"> element for the quanity in the cart and on the product templates.

Doing that has the side effect of requiring that you change the way minimum order quantities get handled (in the past, min order quanitites could be controlled by setting the first value in the <select> element to the minimum quantity).


So, if you get to the point where MAX Order quantity or the $config.Appearance.max_select_quantity causes your system to dog while it writes a bunch of selects, just drop me a PM and an I can send the rest of the changes.
__________________
X-Cart Pro - 4.1.8
X-Cart Pro - 4.1.9
Custom Mods and Skinning
Reply With Quote