sharmaabhi
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Single Product is using single.php not single-product.phpI’m having the same issue. If any of you resolve it please tell me.
ThanksCan you tell me a bit more about what you want to do? Do you want the calendar to display a certain way only on mobile, for example?
I’m showing full normal calendar on desktop. I wonder if I can show calendar week wise on mobile screen.
Like only two column. One column shows day or date and another column shows events name for the respective day of the week. Because if I make full monthly calendar
small on mobile screen, user won’t be able to see events name.- This reply was modified 6 years, 9 months ago by sharmaabhi.
Thanks for the reply
I tried what you suggest. I fetched the dates of events and set in a hidden field and used that array of dates in javascript.
But for some reason, my datepicker is not being triggered. Below is the code that I implemented :-jQuery(document).ready(function(){ function disableSpecificDates(date) { var disableDates = JSON.parse(jQuery('.em-date-start').attr('data-event-dates')); var m = date.getMonth(); var d = date.getDate(); var y = date.getFullYear(); // First convert the date in to the mm-dd-yyyy format // Take note that we will increment the month count by 1 var currentdate = y + '-' + (m + 1) + '-' + d ; console.log(currentdate); console.log(disableDates); // We will now check if the date belongs to disableddates array for (var i = 0; i < disableDates.length; i++) { // Now check if the current date is in disabled dates array. if (jQuery.inArray(currentdate, disableDates) != -1 ) { return [false]; } } } jQuery('.em-date-start').datepicker({ beforeShowDay: disableSpecificDates }); });
Please tell me what I’m doing wrong ?
ThanksHi @caimin_nwl
Please help me with this. I really need to implement it.
ThanksAlso, Can you tell me if it is possible to show weekly view of normal calendar on mobile ?
Thanks@caimin_nwl I’m talking about event submission itself not booking of event.
Again sorry, this is embarrassing.
When user try to choose date for event submission I want to show dates(which have event associated with) on datepicker disabled.Sorry, but I don’t think you understand my question.
I meant to say if one user had already booked an event for a particular day then another user should not be able to book an event for the same day.@angelo_nwl I need to do the same thing.
What custom code do I have to do ? Can you tell me ?Never mind, got it. Thanks ??
Hmm, I don’t want to go into that. Thanks anyway. Appreciate the help.
Also I want to ask about custom attributes.
I defined two text_field custom attributes in the Events->Settings->Formatting.
Later, I changed those attributes to select field by adding some options. Now, select field custom attributes shows up but along with the text_fields.
How do I remove them? It shouldn’t be showing in the event form since I overwrite them.- This reply was modified 6 years, 9 months ago by sharmaabhi.
ok I’ll try this. Also, Can I submit event through ajax and show success or error messages without refreshing the page?