Jump to content
WebFlake
  • 0

Comerce - Store Custom Field


Calentico

Question

Hello people: 

I have a question about the Customs Fields of the Store. I am working on a web that will contain hotels for rent. I need put there a field for chek-in date of the client and check-out date and finally get with the rest of both the amount of nights they are going to stay in the place.

Example: 

Checkout field (number) - Checkin field (number) = Amount of nights (the standard field for purchases)

Any idea how could I make this?

Thanks.

Edited by Calentico
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
On 4/19/2020 at 9:21 AM, Calentico said:

Thanks for the tip. But how can I make the amount of nights will be result of checkout-checkin?

If I can make that calculation automatic will be better.

You'd probably need to make a php function and count() the days between checkin and checkout. 

Link to comment
Share on other sites

  • 0

You should be able to do this in the custom fields on the ACP

a22f6e7695d51536494c731bfd63c63c.png
Make the field type a number for amount of nights and the checkin/checkout field a 'date'

It would be in the commerce area in the ACP

Edited by Voldri
Link to comment
Share on other sites

  • 0
24 minutes ago, Voldri said:

You should be able to do this in the custom fields on the ACP

a22f6e7695d51536494c731bfd63c63c.png
Make the field type a number for amount of nights and the checkin/checkout field a 'date'

It would be in the commerce area in the ACP

Thanks for the tip. But how can I make the amount of nights will be result of checkout-checkin?

If I can make that calculation automatic will be better.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...