lunarphp / lunar

An open-source package that brings the power of modern headless e-commerce functionality to Laravel.
https://lunarphp.io
MIT License
2.71k stars 357 forks source link

Fix missing product variant table #1945

Closed ken717w closed 1 month ago

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 9:06am
alecritson commented 2 months ago

Thanks @ken717w I think in this instance we don't want the table to show since it's managed via a widget so it's likely the whole method can be removed 🤔

ken717w commented 2 months ago

Thanks @ken717w I think in this instance we don't want the table to show since it's managed via a widget so it's likely the whole method can be removed 🤔

So how do we create and manage product variants in the dashboard? Originally I only see this in the Variants tab: Screenshot 2024-09-10 at 22-39-47 Variants - Lunar

I also tried to create a variant manually in database, and when I go back to the dashboard, tabs like Pricing and Inventory are gone. After some digging I can see that ManageProductInventory and ManageProductPricing are not being registered to the navigation if there are multiple variants. Although this makes sense, but I can find nowhere to update the price and stock value of each variant.

glennjacobs commented 2 months ago

Thanks @ken717w I think in this instance we don't want the table to show since it's managed via a widget so it's likely the whole method can be removed 🤔

So how do we create and manage product variants in the dashboard? Originally I only see this in the Variants tab: Screenshot 2024-09-10 at 22-39-47 Variants - Lunar

I also tried to create a variant manually in database, and when I go back to the dashboard, tabs like Pricing and Inventory are gone. After some digging I can see that ManageProductInventory and ManageProductPricing are not being registered to the navigation if there are multiple variants. Although this makes sense, but I can find nowhere to update the price and stock value of each variant.

To create variants you'll want to set the Product Options first, e.g. Colour -> Red, Blue, Green. It will then creste the variants for you, which you can then go on to edit.