View Single Post
Old 09-30-2019, 09:23 PM
Ed B. Ed B. is offline

Join Date: Apr 2016
Posts: 370

Default Re: Allow customers to order a product in specific quantities only

If there is just one product, and if its product id doesn't change (it won't unless you remove from and add again to the catalog), probably all you need is to add an if clause like
if ($item->getProductId()=x){ }
(here x is the product id of your product) in an appropriate place in the code.
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote