# WordPress.org

## WooCommerce - excelling eCommerce[resolved] Problem with multiple variations and pricing (2 posts)

1. jonholuk
Member
Posted 1 year ago #

My issue is say I have 1 product which has 2 options/multiple variations. Each variation has a different price. It looks like I have to calculate the total value of each possible combination.

For example:

1 Adult + no Child = £50
2 Adults + no Child = £100
No Adults + 1 Child = £20
No Adults + 2 Children = £40
1 Adult + 1 Child = £70
2 Adults + 1 Child = £120
1 Adult + 2 Children = £90
Etc....

What I want to do is:

Children
- 1 Child = £20
- 2 Children = £40

The script knows I've selected 1 Adult at £50 and 1 Child at £20 and calculates the total for me.

Is it possible to do this ? I can go though each product and work out each possible combination but I'm looking at 4 adults, 4 Children and 4 Spectators!! . Which when you also add no adults, no children and no spectators I'm looking at 125 variations per product :O(

Thanks,

Jon.

2. jonholuk
Member
Posted 1 year ago #

In case anyone else has same issue.. This was my solution to the problem.

This topic has been closed to new replies.