Edit a cart page - Add a calender using code or app

Topic summary

A user is attempting to add a booking calendar to their Shopify cart page for a service product, allowing customers to select a preferred trial date. They’ve implemented code generated by ChatGPT but are encountering two main issues:

Current Problems:

  • Unable to remove an unwanted text field/box that appears below the calendar (appears to be a drag-and-drop element labeled “preferred trial date”)
  • Need to capture the selected date data to trigger an automated follow-up email 3 days after the trial

Technical Context:
The user has shared HTML/CSS/JavaScript code for a basic calendar interface with month navigation and date selection functionality. They acknowledge limited coding experience and are seeking assistance.

A screenshot shows the calendar implementation alongside the problematic text field element that needs removal. The discussion remains open with no resolution yet provided.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I offer a service product on my site and I am looking to add a very basic calender to my cart allowing customers to book a preferred trial date. I am struggling to lose the box below it. I also need to collect the data so I can send an automated email 3 days after the trial asking how the class went. Can anyone help?

I am not a coder and the css was created by chatGPT. ‘Hangs head in shame’

Any help would be appreciated

Booking Calendar body { font-family: 'Roboto', sans-serif; background-color: #f9f9f9; color: #333; text-align: center; } .calendar { max-width: 400px; margin: 50px auto; padding: 20px; background-color: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-radius: 10px; } .calendar-header { margin-bottom: 20px; } .calendar-header h2 { margin: 0; font-size: 24px; color: #4CAF50; } .calendar-header button { margin: 10px; padding: 10px 15px; background-color: #4CAF50; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } .calendar-header button:hover { background-color: #ffca28; } .calendar-table { width: 100%; border-collapse: collapse; } .calendar-table th, .calendar-table td { border: 1px solid #ddd; padding: 10px; text-align: center; cursor: pointer; } .calendar-table th { background-color: #f2f2f2; font-size: 18px; } .calendar-table td:hover { background-color: #f1f1f1; } .selected { background-color: #4CAF50; color: white; }

Choose Your Preferred Day

Previous Next
Sun Mon Tue Wed Thu Fri Sat

Hi Felix,

Thanks for your reply. I tried this for the calender but it didnt work.

Booking Calendar body { font-family: 'Roboto', sans-serif; background-color: #f9f9f9; color: #333; text-align: center; } .calendar { max-width: 400px; margin: 50px auto; padding: 20px; background-color: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-radius: 10px; } .calendar-header { margin-bottom: 20px; } .calendar-header h2 { margin: 0; font-size: 24px; color: #4CAF50; } .calendar-header button { margin: 10px; padding: 10px 15px; background-color: #4CAF50; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } .calendar-header button:hover { background-color: #ffca28; } .calendar-table { width: 100%; border-collapse: collapse; } .calendar-table th, .calendar-table td { border: 1px solid #ddd; padding: 10px; text-align: center; cursor: pointer; } .calendar-table th { background-color: #f2f2f2; font-size: 18px; } .calendar-table td:hover { background-color: #f1f1f1; } .selected { background-color: #4CAF50; color: white; }

Choose Your Preferred Day

Previous Next
Sun Mon Tue Wed Thu Fri Sat

With regards to the box, it is one of the drag and drop options. Pic attached.