Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Maximum Product Quantity with Admin support


bigjat69

Recommended Posts

This thread has been started as the original link for Maximum Product Quantity with Admin is dead.

 

Many thanks to kayakbabe, zlochko and talkingtowns for their hard work.

 

If you want to use NULL as the default value for maximum product quantity and set individual levels via the admin please use the updated contribution at

 

http://addons.oscommerce.com/info/4155

 

this is a complete package to fix broken checkout and maximum quantity changing from null to 0 when editing a product.

 

Regards, web-junkies

Link to comment
Share on other sites

  • 6 months later...

I am almost loving this contribution!!! It certainly has helped me reach one of my objectives. I wonder if anyone can help me take it one step further?

Would it be possible to modify this to allow an item to be re-ordered only if it was to have a different attribute selected than the first item? I believe that if the maximum quantity referred to the 'customers_basket_quantity' rather that the actual products quantity it would achieve this...I'm just not sure how to write it.

If anyone could help shed some light on this I would be forever greatful!!

Link to comment
Share on other sites

  • 1 month later...

I added this but had a problem due to how it handled a customer.

 

A customer went to the product_info.php page. There is a default attribute option, and they clicked add to cart and went to the shopping_cart.php page. Then they clicked continue shopping and went back to the same product_info.php page. Then they selected another attribute option, and clicked add to cart. The new attribute option does not appear and "MAXIMUM_ORDER_DUPLICATE" appears between the sub-total and the update/continue/checkout buttons. At this point they clicked remove for the original value and update. Then they clicked checkout. There is no longer a attribute option associated with their purchase.

 

I made this change 65 orders ago, and this is the first person who jumped around the pages to where this problem happened. Not sure yet if there is a problem with the code or if I implemented the code incorrectly. If it is a problem with the code itself - this behavior should be, if not handled, then at least caught.

 

I will be looking into this some more. The clicking behavior that led to it is unusual enough that I do not have to drop everything to get to it, but I don't want another customer ordering something, with me clueless as to what model they want.

 

I suggest people test this on their own site.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...