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
Cost price on product variant entity #13250
Comments
I did that in combination with https://github.com/BabDev/supplier-plugin, so I have cost per supplier per variant. |
I also have the cost price plugin, but it's an overkill for just one property :D I like the idea of having a cost price per supplier, but I would still vote for a simple cost price on the product variant because I believe that 90%+ of merchants will only have one supplier per item and hence one cost price. |
Hi! In 1.11 we have added the "Minimum Price" field on the Product Variant's channel pricing. Please reopen if you have any remarks 🖖🏻 |
Could you reopen this issue, Maggie? Minimum price has nothing to do with cost price. If you never want to add a cost price, then please don't reopen, but I think for such a simple field that maybe 90-95% shops will have on all their products, it is bad prioritization. At least I would love to hear the arguments against such a property. |
Sure, reopened. 👌🏻 In my opinion "cost price" (as I understand it) can have a lot to do with "minimum price". But it all depends on the use-cases and these no one has mentioned in this issue yet. Could you give some more context then? Any examples from other platforms maybe? |
The cost price is the price, the store owner pays for the product. EXAMPLE
Other platforms |
Just adding a property is a good start, but ideally it should also be used in the order processing.
|
Okay, I would suggest making a plugin out of it. Like a In my opinion, this is not something 70-90% of shops would use as it often happens in other systems. Maybe a feature request to this plugin - https://github.com/odiseoteam/SyliusReportPlugin ? |
So what Victor is suggesting, Maggie, is a great idea, but as you can see it starts with the cost price on the variant ;) Victor suggested I create PRs to Sylius instead of creating plugins all the time (not entirely what he said :D). Would you accept a PR for the cost price? :) |
In my opinion, even if it would be nice to provide this costPrice in Core feature, it would make 0 sense without what Victor proposed as well. Just remember the But having those features in the core would be nice. I agree @CoderMaggie that not all the store would need that. But then thinking this way, you can remove a lot of features as well 😄 Having them on core would imo make sense, and would not be that hard to maintain. Sylius has to start implementing more of those features that not everyone use, but still a majority would. |
@Roshyo: It's a bold statement to say it makes 0 sense to have the cost price without anything else :D I, on the contrary, think it makes perfect sense 🎉 |
Just want to put some arguments out there, so you can see what I mean. With only the cost price, it's possible to:
If I used 10 more minutes I could probably think of three other things ;) |
I agree with Stephane on this one. Adding just the property will have the same effects as the original price. |
I suggested to Stephane that I could create a 'profit card' in the order show page in admin :) |
That would be a good start. It will require some order processing logic, similar to how it's not done with original price. |
This ☝🏻 should be done based on the minimum price of a variant 😅
|
I would love to add this property along with the small report card on the order.
Imo it should be channel agnostic. It should be on the product variant. |
Prestashop also supports this. In their case the variant field is increasing the base product price, but a lot of my clients use zero as product price, and then set that price increase to the real product's price. I actually found this because I'm currently trying to convince some of my clients to migrate from prestashop to sylius, and this is a must for them (I guess I'll try to create a plugin in the meantime tho). |
I am thinking |
Is this then planned for the upcoming 1.12? Or was just a thought? 😅 |
Hi Folks, just FYI, we do not plan this feature for Sylius 1.12, we'll see what the future holds 💃 |
Thank you for the update. Looking forward to 1.13 then ;))) |
Shopify handles 'cost' as part of 'inventory', which is separate from 'product' logic. Not all stores use their online shop to manage inventory, so it makes sense to have inventory be part of an optional module. https://shopify.dev/api/admin-rest/2022-10/resources/inventoryitem |
@nikkuexe: I see your point, but Sylius already has inventory in the core, i.e. not as a plugin :) |
@loevgaard For the scope of the discussion on cost, this is more similar to "inventory management" which is a function of a fulfillment center, not the online storefront. Shopify gives a good explanation of this logic here: https://shopify.dev/api/admin-rest/2022-10/resources/inventorylevel A product sold on a Sylius store could be fulfilled from one or more locations, and the cost per unit may be different at different locations. |
I would ❤️ to have cost price on the product variant. Would this be something you would be interested in if I create a PR?
The text was updated successfully, but these errors were encountered: