Commit c15f43e
committed
Add is_only_wholesale handling in ProductController store method
This commit updates the store method in the ProductController to include logic for setting the 'is_only_wholesale' attribute when a product is marked as wholesale. This enhancement allows for better differentiation of product types during the creation process, aligning with the recent addition of the 'is_only_wholesale' attribute in the Product model.1 parent cd28c9f commit c15f43e
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
0 commit comments