Ordering Improvements #4258
Reference in New Issue
Block a user
Delete Branch "test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This branch continues on the work completed by @rekado in #2750 and aims to incorporate the feedback about the ordering folder layouts raised by @reinhard in that thread.
Additionally it aims to add counts of items to the website, and so hide items at build time if there are too few of them to be sold, as trying to sell them will likely result in us having to refund people as the item is not available.
Current behavior can be seen at https://test.fsfe.org/order/index.en.html.
719c65b697tofc0165725bfc0165725btof11cf3ff27f11cf3ff27tocf88fef82e70321851cbtocd72c1c505411219a0bato0115935c740115935c74to75020cb1ff75020cb1fftoe4f1fb13a6e4f1fb13a6tocd0d1676d2cd0d1676d2to9220722b559220722b55to1ed614f880c4905b8d66to4591d0c8234591d0c823to1d5290dede8e49dcfd1dtob757253307b757253307to929b22a7b9929b22a7b9to3c92c50a203c92c50a20to3837a7cce8ac70bf8becto88e54314d788e54314d7to7a71d737337a71d73733to58aa88e705This pr is currently functional.
It fixes the issue with using post requests from the merch ordering page, and changes the layout of the items directory to no longer be based on year.
Removal of items from store based on available quantity at build time is not implemented.
NOTE Quantities of items in items.en.xml file not correct, should not be merged as it will make available items that should not be available.
Currently can hide sizes of items that are unavailable, but not a whole item if there are no sizes available.
564428b9c7to0106c530010106c53001to12c4abfe4c12c4abfe4ctoe6e3037ad9e6e3037ad9to90bac91ad290bac91ad2to64f7bae440Decisions made that this should hide unavailable sizes, but not whole items so that people see what items can theoretically be bought. Items that are no longer available for extended period, eg christmas cards, plussy pins, should be commented out in items.en.xml
64f7bae440to225ce057a3225ce057a3tofcd0b88041Following feedback from @reinhard it has been decided to remove the automatic item hiding feature.
WIP: Ordering Improvementsto Ordering Improvementsfcd0b88041tod1c0a0f1c8