Do gift vouchers while you are there, you will retire within 6 months.
Announcement
Collapse
No announcement yet.
Stock control!
Collapse
X
-
while i wish an elegant solution was this simple, there are a host of problems related to this.
i was considering hijacking the buy button and then dealing with the lack of stock using script, thats easy...
but where does the stock information come from? i was thinking an sql database, that populates the dropdown, as the page builds with some ajax, therefore making it impossible to order those things out of stock.
where on the receipt page, there would ahve to be something that removes the exact item from stock. the stock would have to basically be a large table with all permutations of item in it.
this pipedream is actually possible, but the work required and the problems encountered when detecting the dropdowns per product and populating all the feasable combinations of items make this job a silly difficult one.
if this were a curry, it'd be a vindaloo, and if it were a difficulty level on halo, it'd be 'legendary'.
suffice to say, this functionality is beyond actinic. realistically.
Comment
-
Originally posted by gabrielcrowesuffice to say, this functionality is beyond actinic. realistically.
D
Comment
-
Originally posted by gabrielcrowea question to actinic programmers listening in:
what _exactly_ happens when actinic changes a single stock level. is this in the cat files?
so... the drop downs on the html page and the cat file? is that it?
I may be wrong, but I thought it maintains the Stock levels 'state' in the .CAT files. There looks to be some simple flags in the CAT files
Code:'MIN_QUANTITY_ORDERABLE' => 1, 'MAX_QUANTITY_ORDERABLE' => 2, 'OUT_OF_STOCK' => 0
Also, Actinic manges the changing of the HTML to display "Out of stock" messages where appropriate as well.
To get around this you would need to: {aimed at Gabe}
1. Generate a stocklevel.fil file which holds numeric stock levels online, prod ref, relevant CAT file association etc
2. Edit cart perl script files to decrement the stock level
3. Edit the cart perl script files to change the 'OUT_OF_STOCK' flag to 1 for the relevant CAT file once stock level gets set to zero in said stockelevel.fil file
The inherent problems with this are synchronicity with stock levels locally e.g. offline ordering ,back ordering, permutations etc amongst others.....Fergus Weir - teclan ltd
Ecommerce Digital Marketing
SellerDeck Responsive Web Design
SellerDeck Hosting
SellerDeck Digital Marketing
Comment
-
Originally posted by gabrielcroweGod, i completely hate perl.
.oO~
Perls a stinger
It screws up when it runs the program(mo)
In a server
~Oo.
am I showing my age?
"edited to add - that song is almost a western pop haiku!"Fergus Weir - teclan ltd
Ecommerce Digital Marketing
SellerDeck Responsive Web Design
SellerDeck Hosting
SellerDeck Digital Marketing
Comment
-
I would simplify Fergus' suggestion and use the 'MAX_QUANTITY_ORDERABLE' field in the .cat file as a proxy for the stock level.
Then 'all' you have to do is reduce the quantity when items are ordered and set the out of stock variable when it reaches 0.
It would never be 100% accurate as the item could be in several carts at the same time, but it should be better than it is at present.
Mike
This sounds like the kind of thing that Actinic could probably do fairly easily themselves.-----------------------------------------
First Tackle - Fly Fishing and Game Angling
-----------------------------------------
Comment
-
Originally posted by gabrielcrowei think that propertyless products would be quite easy.
but the permutations and costings of the more complex items would be a nightmare.
I'm assuming you are thinking of some kind of mysql database updated with stock levels with an AJAX PHP call for each add to cart button, only displaying button if stock level > 0, and upon clicking it would call another AJAX php page to decrement mySQL stock level before posting data onto to add to cart cgi?Fergus Weir - teclan ltd
Ecommerce Digital Marketing
SellerDeck Responsive Web Design
SellerDeck Hosting
SellerDeck Digital Marketing
Comment
-
Originally posted by olderscotI would simplify Fergus' suggestion and use the 'MAX_QUANTITY_ORDERABLE' field in the .cat file as a proxy for the stock level.
Then 'all' you have to do is reduce the quantity when items are ordered and set the out of stock variable when it reaches 0.
It would never be 100% accurate as the item could be in several carts at the same time, but it should be better than it is at present.
Mike
Just need someone to mod the perl files to decrement the order amount when order is complete online.Fergus Weir - teclan ltd
Ecommerce Digital Marketing
SellerDeck Responsive Web Design
SellerDeck Hosting
SellerDeck Digital Marketing
Comment
Comment