Price depending on weight ?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Price depending on weight ?

Post by MikaelNazarenko » 29 Jun 2021, 12:09

Is it possible to make product with different weights and price depends on which weight customer selected ?

Clarify me please, is this what I need post13426.html?hilit=price#p13426 ?

But I can't understand how does it work (( I don't understand how do I connect selection and article? SKU must match ?

Thanks!

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Price depending on weight ?

Post by aimeos » 30 Jun 2021, 08:37

Use a selection product with one article for each weight. The articles can have different prices.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Price depending on weight ?

Post by MikaelNazarenko » 15 Sep 2021, 09:44

Hi, Aimeos)

I try to achieve my goal to create product where is possible to select different weight with different price..

I have created product with type selection.
Also I have added 1 variant to variants..

This is a part from my config:

Code: Select all

'catalog' => [
            'domains' => [
                    'media',
                    'media/property',
                    'price',
                    'text',
                    'supplier',
                    'product',
                    'product/price',
                ],
But on front-end I don't see any possibility to choose product variants...
I look at the code and on front-end this product consists child product, but it is not shown because no price set, I think so..

so question is how to set price for variant and how to connect price with specific weight ?

Please explain this moment, maybe you could provide some screenshots..

Thanks a lot !
Attachments
Screenshot from 2021-09-15 12-39-18.png
Screenshot from 2021-09-15 12-39-18.png (109.21 KiB) Viewed 1425 times
Screenshot from 2021-09-15 12-39-07.png
Screenshot from 2021-09-15 12-39-07.png (91.23 KiB) Viewed 1425 times

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Price depending on weight ?

Post by aimeos » 15 Sep 2021, 17:39

In your example "variant-1" is your variant article for the selection product. Go to the product list and click on "variant-1" product in list view. There you can add the price and the weight for "variant-1".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Price depending on weight ?

Post by MikaelNazarenko » 15 Sep 2021, 23:28

Thank you!

This is almost clear for me now. Only one moment. Now I use weight and price like this: I have created attribute type 'weight', then I created some attribute '1kg' of attribute type 'weight', then I assign some price for created attribute '1kg', and then this '1kg' I add to variant product as 'variant attributes'.. Seems like too complicated.. Then I need to create a lot of such attribute for each product. Because products are different and each weight for each product has different price.. This solution is ok, but maybe there is better, easier and proper way ??

Thanks a lot !

Best regards

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Price depending on weight ?

Post by aimeos » 16 Sep 2021, 04:43

Add the price to the variant article itself, not to the weight attribute. Then, you have a structure like this e.g. for flour:

Product "Flour"
- Variant 500g
-- Variant attribute 500g
-- Variant price: 1€
- Variant 1000g
-- Variant attribute 1000g
-- Variant price: 2€
- Variant 2500g
-- Variant attribute 2500g
-- Variant price: 4€
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply