View Single Post
  #6  
Old 09-30-2019, 09:23 PM
 
Ed B. Ed B. is online now
 

eXpert
  
Join Date: Apr 2016
Posts: 331
 

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
Code:
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