rasamax
Forum Replies Created
-
Forum: Plugins
In reply to: [Klarna for WooCommerce] Not matching fields errorYes, “louisekrokedil” given link to documentation explained how to fix it. Don’t use “unset(…)” on original fields in “woocommerce_checkout_fields”, “woocommerce_shipping_fields” or “woocommerce_billing_fields” filters. Just make their [‘class’] contain “d-none” or other visually hidding class in case if you still need to show them directly in non-Klarna case.
Forum: Plugins
In reply to: [WooCommerce] Error: “There was an error getting your inbox.”Yes, @ac607 solution is correct.
Forum: Plugins
In reply to: [Booking calendar, Appointment Booking System] timeHello!
I guess this issue is the same as in “Wrong Reservation Date in Reservation List and Notification mail”.
The problem:
Reservation list shows dates the day before actually the booking was made for.
F.ex. Bookings made on 01.02.2020 (86), 09.02.2020 (88), 01.03.2020 (89). And calendar shows them fine https://i.imgur.com/NS0eJ6d.png as database too https://i.imgur.com/WTYl3Ce.png (89).
But reservation list shows as 31.01.2020 (86), 08.02.2020 (88), 29.02.2020 (89). https://i.imgur.com/3qrTGy0.pngPossible solution:
You used “date_i18n” function which requires second parameter to be a timestamp. But it has to be a timestamp and timezone offset in seconds. Our website timezone is “Oslo” which is +0100. The date from database 2020-03-01 results in timestamp for 2020-03-01 00:00:00. But “timestamp and timezone offset in seconds” for 2020-03-01 00:00:00 in Oslo is 2020-03-01 01:00:00 in GMT.
Currently we fix it by calculating and adding GMT offset to date_i18n() timestamp parameter. Or just using default date() in place of date_i18n() in Reservations.php several places https://i.imgur.com/y9FxcH1.png , https://i.imgur.com/HU8yxoB.png . Then reservation list shows correct dates. https://i.imgur.com/WMcy6le.pngThank you!