This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
I would like to charge an automatic extra fee if the vehicle is picked up on a weekend. Is that possible?
Thanks for your reply.
in your suggestion, the fee is always active as soon as one of the booking days is on the weekend. But this is not what i want.
I only want the fee if the pick up is at the weekend.
Do you have any other solution?
You have very specific conditions. The current capabilities of the theme do not allow this to be implemented.
You can use this hook (aucapina_condition_check) in the Child Theme to modify any condition:
add_filter( 'aucapina_condition_check', function ( $satisfies_condition, $term_id, $start, $end, $day ){ /** * @var bool $satisfies_condition The $day satisfies the condition if true * @var int $term_id Condition ID * @var DateTime $start Start of the selected range * @var DateTime $end End of the selected range * @var DateTime $day The day from the selected range to check **/ // filter... return $satisfies_condition; }, 10, 5 );
You should create an empty condition and use its ID (from the url) to write a filter hook.
But to write a function, you need a specialist. We do not provide customization services for themes.
With this filter hook, you can, for example, write a condition so that it works if the customer has selected only Saturday and Sunday for pickup ($start).