Post by trixiemay » Sun Mar 26, 2023 11:02 am

I have a site where people book a fishing trip.
They can book for themselves ($500) and an extra person ($100). If I put 2 in the quantity field OC will calculate as $1000 not the correct amount of $600.
Is there a quick hack in the code I can use where 1 is the maximum quantity but allows for the extra from the options?

thanks

___________________________________________
"Speak softly but carry a big stick" :crazy:


Active Member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by grgr » Sun Mar 26, 2023 10:41 pm

Why don't you just have an "Extra Persons" select option. 1 + $100, 2 + $200 etc....?

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by trixiemay » Mon Mar 27, 2023 2:31 am

The main guest is $500 and the extra guest is only $100.

___________________________________________
"Speak softly but carry a big stick" :crazy:


Active Member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by by mona » Mon Mar 27, 2023 3:47 am

Only one per order : You can disable the quantity box.
Additional people : That is what options are for.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ADD Creative » Tue Mar 28, 2023 12:03 am

If you didn't want to use options, you can set a discount price starting at a quantity of 2 to $300 and so on.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by by mona » Tue Mar 28, 2023 12:23 am

@ADD Creative : good point actually.
Depends on how you manage availability, but if you did it properly that would definitely be a better way.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: Google [Bot] and 108 guests