-
I’m opening this topic to continue the discussion initiate at this topic: http://support.physcode.com/forums/topic/the-attribute-price-not-multipy-with-quantity-of-product
I think that is the same problem. Maybe the same solution.
I made a little change in the tour (Petar) for facilitate the understanding.Today, the tour variations are independent of number of tickets. Its is a problem when we want to each variation is part necessary of each ticket.
Is important understand that I want use this solution to offer the possibility of choice room type. If the variation is the “room type”, is necessary that the number of variations is the same of the number of tickets.
Lets go to the exactly formula of I want in each one of my examples.
Exemple 1 – https://travelwp.estacaofloresta.com.br/roteiros/capitolio-canyons-de-minas-gerais/
If user choice 2 adults and 1 children
2 adults: 1100 x 2 = 2200,00
1 children: 950 x 1 = 950,00
Total price of tickets = 3150,00
Total NUMBER of tickets: 3 (this number is very important, because will be the total of tour variation what user must necessarily choice)
User can choice 1 “Quarto individual (R$ 498,00)” and 2 “Quartos duplos (R$ 382,00)”
1 x 498 = 498
2 x 382 = 764
Total of variations: 498 + 764 = 1262,00
Total price: 3150 + 1262 = 4412,00Exemple 2 – https://travelwp.estacaofloresta.com.br/product/petar-aventura-nas-cavernas/
If user choice 2 adults and 1 children
2 adults – 843 x 2 = 1686,00
1 children = 450 x 1 = 450,00
Total price of tickets = 2136,00
Total NUMBER of tickets: 3 (this number is very important, because will be the multiply factor of tour variation)
If User choice “Quarto triplo (R$ 45,00)”: 45 X 3 (total of tickets – multiply factor) = 135,00
Total price: 2136 + 135 = 2271,00Sorry, this forum is for verified users only. Please Login
Support Hours
 Our forum hours are:
08:00 AM - 5:00 PM
Current time:
-