Skip to content

Super Speedy Filters needs a new option in the Main tab below the 'check in stock' option to let admins choose how to treat 'backorders' #61

Closed

Description

@dhilditch

I want a new option added below the main tab to let admins control how to treat backorders.

Back-orders stock:

  • Treat backorders as out-of-stock (default)
  • Treat backorders as in-stock

https://i.imgur.com/DLWQyzu.png

Once this option is created, this option should be obeyed in the underlying search code and the table build

We currently check stock with SSF by checking the bit value in the wp_fww_object_ancestors table so that means just changing the build code and the MAINTENANCE code for fww_object_ancestors will be enough to fix this. Edit the table build code and the table maintenance code to respect the new option and choose whether to set instock=1 or instock=0 depending on the option and the source data value.

Remember there are two locations for maintaining object_ancestors - in the initial build and then in the table maintenance code hooked into the various post_updated/post_added hooks.

Activity

  1. dhilditch commented on Jan 29, 2024

    @dhilditch
    ContributorAuthor

    Additionally, I've had reports from customers that the upgrade from 5.14 to 5.15 was still allowing backorders to be treated as out-of-stock if they ran a table rebuild.

    This needs to be checked and ensure consistency in the table rebuild code and the table maintenance code.

  2. dhilditch commented on Feb 8, 2024

    @dhilditch
    ContributorAuthor

    New back-order stock option added to main tab of SSF. Users can choose how to treat back orders as in stock or out of stockc.

    A table rebuild is required after changing these stock settings.

  3. dhilditch commented on Feb 8, 2024

    @dhilditch
    ContributorAuthor

    Fixed in 5.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions