Skip to content

Product Allow Backorder not saved + solution #331

@Jozzeh

Description

@Jozzeh

On a product level, the 'Allow backorder' check is not saved in the latest version. (Concrete 5.7.5.9 + vivid store 3.1.4)
Since this is a fairly easy fix, i'll just post it here.

Solution:

  • src/VividStore/Product/Product.php - add pBackOrder as column and protected variable

/**
* @column(type="boolean")
*/
protected $pBackOrder;

  • single_pages/dashboard/store/products.php - On line 193 change $p->pBackOrder to use the order method to get the pBackOrder value.
checkbox('pBackOrder', '1', $p->pBackOrder())?>

---- Change to ---->

checkbox('pBackOrder', '1', $p->allowBackOrders())?>

Do not forget to update the package afterwards or the column will not be created in the database

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions