Jump to content

Stock managment module


Zeryk

Recommended Posts

I sell tea and each product has pre-set atributes. For ex. 50g , 100g, 200g ..etc. The problem of an PS version is that it doesnt consider it as one item but like separate entities. So if I have 200g total of that particular tea, the customer should be able to order 4x50g or 2x 100g or  1x 200g. In reality it doesnt work that way because there is no way how to let PS know that all those 3 atributes ( 50g,100g,200g ) are same one thing. Means , I have to set quantity on each individual atribute and that cause customers can order 4x50g and 2x 100g and 1x 200g ..so this way put in basket 600g of tea .

Is there any stock managment module where I will assign ( let the PS know ) that 50g is 50 units , 100g is 100 unints of some particular atribute and when I upload new product, I just type somewhere in that module stock 200g and customer will not be able order any more than that?

Link to comment
Share on other sites

One option you can use is delete attributes, set 1qty = 1g, use option minimum quantity and hide quantity field. 

Then you can use some module that display prepared content on choosen products with little html code and script that display buttons like attribute and by click on buttons it will set correct qty.

Something like this: https://jsfiddle.net/uLebanvr/

  • Like 1
Link to comment
Share on other sites

2 minutes ago, endriu107 said:

One option you can use is delete attributes, set 1qty = 1g, use option minimum quantity and hide quantity field. 

Then you can use some module that display prepared content on choosen products with little html code and script that display buttons like attribute and by click on buttons it will set correct qty.

Something like this: https://jsfiddle.net/uLebanvr/

Thanks for respond, but this is not an option for me , because the prices per gram are different for individual attribute. 100g is cheaper than 2 x 50g,  1kg in one bag is way much cheaper than 10 x 10g packs . ..and so on.  I also have a 357g puerh cake price and I offer 25g sample which is much higher price per gram as well ( because extra work , broken bits waste with that ....etc. ) There is no standard formula on how price per gram changes ( not in all cases at least ) , so I have to be able to set the prices on attributes without any restrain ( like freely without any rules  / constants )

Link to comment
Share on other sites

12 hours ago, endriu107 said:

You can set quantity discount for each product in few levels.

Still can't sell tea per gram as a unit. Many reasons for that , but just briefly : Shipping 1g ( packing weight ) could be 50g if e-packet or 70g if e-espress ..coz bigger sticker , bigger box ( but same box will be for shipping 50g of small leaf or 25g large leaf or 100g or pressed tea ) . Should I set up 1g of tea = 51g of total weight, if someone orders 100g by clicking number 100 😉 ..not making any sense then. Let alone if I pack some fragile teaware and heavy tea bricks with that...shipping weight calculation is all over the place. ...means there is no any other way how to calculate total weigh because orders are way to complex and shipping rates are very variable ( we ship worldwide ) 

Other reason is , somebody can order like 1g or 4g of tea.. I'm not going to bother chipping off hard iron pressed puerh tea cake ( google it please if you want to know what is it about ) just for few grams , because there will be much more waste than tea in sample.

I want to be able to sell ceratin amounts like 12g or 25g as sample, 200g or 357g is full cake .....etc. , not some like 17g or 264g or such.

Loose leaf comes also with 25/50/100...up to 1kg iwth certain discounts on the way up ( but not all the time same ) . I have already module like that for last 7 years ( custom made )  but it doesn't work properly. It works after the check out ( means it takes out of the stock after order is proceed to end but not during the adding the stuff in basket ) . So if have only 200g of tea and somebody purchase 50g, then yes, it will reduce it down to 150g and next time the attribute 200g will be saying not in stock. But before that, still possible to order 600g ( as mentioned before ) and some people do ( they don't understand if shop says 200g in stock only  😉 ) , then I'm ending up writting an appology emals for misunderstanding ...basically bug in system. Like it's not very often , frankly many people understand what " stock " means , but I'm thinking of trasfering to newest PS version so just searching for the functional module like that ( the old one not working on new ps version anyway )

But thank you for reading my post and comming up with some suggestions. Should you be able to write such a module or know someone who can, please do not hesitate and contact me with quotation.

 

Edited by Zeryk (see edit history)
Link to comment
Share on other sites

Hi.

To bring you closer to the issue.

Prestashop is built to sell units. If you want to divide the units, it is always a big problem for programmers too, and such modifications are quite demanding.
Creating a custom module?

Yes, it can be done.

But there are many other questions.


It could work on the principle as already suggested by @endriu107.

You create a weight per 1 gram in the product administration.
Next, you create combinations according to the weights you want to sell (10, 25, 50, 100).
Here, for the generated combinations, the module would display a box where you would enter increments (by 10, by 25, by 50 or by 100 grams).

You would then have visible weight options in the e-shop and you would show the customer your own input for the count.

In the background, however, the amount you select and enter would be calculated.
For example, if you choose 25 grams and put them in the cart 5 times, then you will have 25 * 5 = 125 grams in the basket.

Other options are to create separate product variants with your weight and hide them from the customer. Then the module could be used, if the customer chooses 25 grams of your product and enters 5 quantities, then 5* another product (variant) would be added to the cart instead of this product.

It can be combined with more options.

I will also write to you right away that the development of such a module will take at least 30 hours for experienced programmers !!!

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