Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

limit the number of products per manufacturer


Stuart

Recommended Posts

I would like to limit the number of products that each manufacturer can enter ... the reason for this is I'm trying to set up myoscadmin to allow only a certain number of products for each user to add. My php is now about 3/10 ... I think I need to look at something like adding an if statement before after the add product button is clicked to check the number of products associated with the manufacturers id before proceeding with the function to add products , something like this

 

if $products_count >=20 then echo 'your max number of products has been exceeded'

else proceed with function

 

I am good with VB, so I understand the principle, I just have no idea where to find the function that adds the products or what the exact php code is.

 

Can anyone help?

 

Thanks in advance

Stuart

Link to comment
Share on other sites

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...