Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Delivery date calendar problem

Delivery date calendar problem 4 years 1 month ago #3919

  • hsojhsoj
  • hsojhsoj's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
lesanglierrestaurant.com/dining-certificate/electronic

The "Deliver Date" for an electronic gift card shows yesterday's date when you arrive on the page. I can change it to today's date using the calendar button next to the data entry field, but still can not send proceed with the purchase until the date is changed to tomorrow's date. The joomla time zone is set to Los Angeles because that is where the client is.

I would like the date to show today's date and be able to make a purchase and deliver the electronic gift card the same day.
Last Edit: 4 years 1 month ago by hsojhsoj.
The administrator has disabled public write access.

Delivery date calendar problem 4 years 1 month ago #3920

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1638
  • Thank you received: 245
  • Karma: 27
Hi,

You can try to modify components/com_cmgiftcard/models/forms/form.xml, change "user_utc" of
	<fieldset name="deliver_date"
		label="COM_CMGIFTCARD_FORM_FIELDSET_DELIVER_DATE_LABEL">
		<field name="deliver_date" type="calendar" class="validate-date"
			format="%Y-%m-%d" filter="user_utc" required="true"
			label="COM_CMGIFTCARD_FORM_FIELD_DELIVER_DATE_LABEL"
			description="COM_CMGIFTCARD_FORM_FIELD_DELIVER_DATE_DESC"/>
	</fieldset>

to "server_utc"
	<fieldset name="deliver_date"
		label="COM_CMGIFTCARD_FORM_FIELDSET_DELIVER_DATE_LABEL">
		<field name="deliver_date" type="calendar" class="validate-date"
			format="%Y-%m-%d" filter="server_utc" required="true"
			label="COM_CMGIFTCARD_FORM_FIELD_DELIVER_DATE_LABEL"
			description="COM_CMGIFTCARD_FORM_FIELD_DELIVER_DATE_DESC"/>
	</fieldset>

If it doesn't solve the problem please submit a support ticket with your FTP access, I will help you debug it. Please don't submit any login info here because this is a public forum.

Thank you and regards,
Hung
The administrator has disabled public write access.

Delivery date calendar problem 4 years 1 month ago #3921

  • hsojhsoj
  • hsojhsoj's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
The change made the form show today's date when the page loads but you can not proceed to the next purchase step when the date is set to today's dade. Thanks for the help, I submitted the ftp information to the contact form.
The administrator has disabled public write access.

Delivery date calendar problem 4 years 1 month ago #3922

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1638
  • Thank you received: 245
  • Karma: 27
Hi

What do you mean "you can not proceed to the next purchase step when the date is set to today's dade"? Is there any error message?

As I understand the change above fixes your date problem. So it seems you have a new problem. I have tried and I can go to checkout page successfully.

I have removed "class="validate-date"" from the code above, please try again to see if it makes any different.

Regards,
Hung
The administrator has disabled public write access.

Delivery date calendar problem 4 years 1 month ago #3923

  • hsojhsoj
  • hsojhsoj's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Thanks, that worked.
:)
The administrator has disabled public write access.

Delivery date calendar problem 4 years 1 month ago #3928

  • hsojhsoj
  • hsojhsoj's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
The dates stopped matching on the page load. Can you take a look again.
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2