-
Couldn't load subscription status.
- Fork 17
Open
Description
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
Labels
No labels