Jump to content

Stock Levels - Two different processes


prestatent

Recommended Posts

Prestashop 1.5.4.1

 

Hi

 

I don't know if this is the correct place to ask this question but here goes:

 

I have 2 different types of users on my site:

 

- discount user

 

- guest user

 

I want the guest user to be able to order products regardless of stock level.

 

I want the discount user to be able to order products only if the stock is available.

 

My thinking at the moment is to have two different versions of the software running. One version where stock management is enabled and the other where stock management is disabled. The same database is accessed but one version of the software is installed on a sub-domain.

 

Is this possible?

 

Thanks for any help or pointers.

 

Link to comment
Share on other sites

you posted it in correct section, because feature like this need some custom development.

If i were you, in template files where add to cart button appears i will add code to:

 

- if condition to check customer group and customer quantity.

 

for example, guest group id = 2

{if customer_group == 2 AND $product->quantity <=0}

DON'T ALLOWED TO ORDER

{else}

ALLOWED TO ORDER - DISPLAY ADD TO CART HERE

{/if}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...