Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product Allow Backorder not saved + solution #331

Open
Jozzeh opened this issue Sep 14, 2016 · 0 comments
Open

Product Allow Backorder not saved + solution #331

Jozzeh opened this issue Sep 14, 2016 · 0 comments

Comments

@Jozzeh
Copy link

Jozzeh commented Sep 14, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant