Skip to content

Products and cart #808

Answered by chocolata
MateThemes asked this question in Q&A
Discussion options

You must be logged in to vote

I made a website for a butcher a while back, maybe it might be of some use. I created variants based on the property "package". And so now the client can choose products based on price per kilo, per piece and per 10 pieces. Might be of some use:

https://georgesviandefumee.be/categorie/producten

The property looks like this:

The pipe character is used as a unit. I split the property label on this character and use the latter part to show next to the quantity selector on the product page. This way, you can see that you are buying 1 piece or 1 pack or 1 kilo or whatever you like.

My addtocart.html partial looks like this. Note "verpakking" => this is the unit in dutch (the property

{% if no…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tobias-kuendig
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #798 on July 27, 2021 05:05.