Zen Cart Logo
Forums / General Questions / Special user products quantity

Special user products quantity

Views: 608

Results 1 to 6 of 6
27 Aug 2015, 8:51 PM
#1
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Special user products quantity

Hello, I am not sure exactly how to ask this but i will try...

We have opened for warehouses and we have different products and quantity stored there. I want to make it easy to know were is stored every one product, and to have the ability to buy it from there.

I thinked a little and figured it out. I will make special user who can chose from specified products, these products will have quantity value 1 and if some of them is buyed from that user only the value goes to 0 in his quantity table and on the normal one the quantity value substracts - 1 from the product real quantity.

Is this possible to happen and how?

Thank you!

4 Sep 2015, 7:57 PM
#2
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Special user products quantity

I think i couldnt express myself corectly so...

Lets say i have Total stock of 20 Apples
and I have 19 Apples in my stock house at the moment
and I Have 1 Apple in Store(user) in London

I dont want the users to see that i to have 19 piece of Apples in my product_info page rader i want to have 20 piece but still have the ability to show that there is 1 piece in London. If London (user) buy 1 apple just and only then the quantity is reduced by 1

For example:
Normal Apple product

Apples Price 1$
quantity: 20
1 in London

If London (user) already bought 1 piece of Apple from store then the product page shows:
Apples Price 1$
quantity: 19
0 in London

If any other user buy 1 Apple:

Apples Price 1$
quantity: 19
1 in London

4 Sep 2015, 8:15 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Special user products quantity

If your London location is a brick&mortar store then what you are referencing is a POS(point of sale) application
ZenCart as delivered is not a POS

4 Sep 2015, 8:37 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Special user products quantity

Seems to me that this could be a situation where stock by attributes could apply. Total quantity would show for all available options, while the quantity of the item applicable to the other options would be applicable to that option.

If as kobra suggested that London is a location and not a place holder, then there are some other things to consider regardless of the plugin or custom coding, what happens if someone orders all that are in stock? The thing I'm thinking about is shipping... Unless shipping is one price covers all, then if the one product (in London (a city)) is ordered with all of the rest, more than likely the customer would want all of them to arrive and not all but one that has to be picked up...

From the other perspective, if not considering London as a physical location but instead a resource for indication of who has what quantity, then that seems to indicate an issue of a different sort. Perhaps coould explain a little more about the sales, stock and shipping "plan" for this desired feature?

9 Sep 2015, 8:27 PM
#5
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Special user products quantity

Seems to me that this could be a situation where stock by attributes could apply

I didn't think of that, also I didn't know that Attriutes has attached quantity, that should do the trick I think.
Thank you for your help, now I have to see how to do that.

Best regards :smile:

9 Sep 2015, 8:36 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Special user products quantity

perfumbg:

I didn't think of that, also I didn't know that Attriutes has attached quantity, that should do the trick I think.
Thank you for your help, now I have to see how to do that.

Best regards :smile:

In ZC such attribute quantity is not available without additional code. Thereis a relatively stable version available from: https://github.com/potteryhouse. ZC 1.5.1 woulduse SBA 1.5.3 where ZC 1.5.3 and 1.5.4 would use SBA 1.5.4. There is also at least one commercial product available by a different name.