Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Change Date Format
- This topic has 7 replies, 2 voices, and was last updated 6 years, 10 months ago by WCFM Forum.
- AuthorPosts
- January 15, 2018 at 4:15 pm #17922info17Participant
hi again, i try to find in .po files from your plugins (also from dokan) but i dont find the solution.
i need to change all date format in your plugins from yyyy-mm-dd to dd-mm-yyyy
and in textform 15. January 2018 not January 15 2018
check printscreens πAttachments:
You must be logged in to view attached files. - January 15, 2018 at 5:23 pm #17944WCFM ForumMember
Hi,
This is absolutely possible to achieve for Product manager fields.
Let me check, if this possible for Reports page or not?“and in textform 15. January 2018 not January 15 2018” – where yo have this? Hope your WP date settings is as per your requirement!
Thank You
- January 15, 2018 at 5:29 pm #17946
- January 15, 2018 at 6:51 pm #17963WCFM ForumMember
Hi,
Kindly add this code to your site, this will change Product Manager Date format –
function wcfm_custom_wcappointments_cost_fields( $cost_fields, $product_id ) { if( isset( $cost_fields['_wc_appointment_cost_rules'] ) && isset( $cost_fields['_wc_appointment_cost_rules']['options'] ) ) { if( isset( $cost_fields['_wc_appointment_cost_rules']['options']['from_custom'] ) ) { $cost_fields['_wc_appointment_cost_rules']['options']['from_custom']['placeholder'] = 'DD-MM-YYYY'; $cost_fields['_wc_appointment_cost_rules']['options']['from_custom']['custom_attributes'] = array( 'date_format' => 'dd-mm-yy'); } if( isset( $cost_fields['_wc_appointment_cost_rules']['options']['to_custom'] ) ) { $cost_fields['_wc_appointment_cost_rules']['options']['to_custom']['placeholder'] = 'DD-MM-YYYY'; $cost_fields['_wc_appointment_cost_rules']['options']['to_custom']['custom_attributes'] = array( 'date_format' => 'dd-mm-yy'); } } return $cost_fields; } add_filter( 'wcfm_wcappointments_cost_fields', 'wcfm_custom_wcappointments_cost_fields', 50, 2 ); function wcfm_custom_wcappointments_availability_fields( $availability_fields, $product_id ) { if( isset( $availability_fields['_wc_appointment_availability_rules'] ) && isset( $availability_fields['_wc_appointment_availability_rules']['options'] ) ) { if( isset( $availability_fields['_wc_appointment_availability_rules']['options']['from_custom'] ) ) { $availability_fields['_wc_appointment_availability_rules']['options']['from_custom']['placeholder'] = 'DD-MM-YYYY'; $availability_fields['_wc_appointment_availability_rules']['options']['from_custom']['custom_attributes'] = array( 'date_format' => 'dd-mm-yy'); } if( isset( $availability_fields['_wc_appointment_availability_rules']['options']['to_custom'] ) ) { $availability_fields['_wc_appointment_availability_rules']['options']['to_custom']['placeholder'] = 'DD-MM-YYYY'; $availability_fields['_wc_appointment_availability_rules']['options']['to_custom']['custom_attributes'] = array( 'date_format' => 'dd-mm-yy'); } } return $availability_fields; } add_filter( 'wcfm_wcappointments_availability_fields', 'wcfm_custom_wcappointments_availability_fields', 50, 2 );
Please know me is this works for you or not!
Thank You
Simha - January 15, 2018 at 7:11 pm #17966info17Participant
hi again, first thank you for your help.
unfortunately is not working everywhere.
still have wrong format (yyyy-mm-dd) in
– wcfm-appointments-details
– wcfm-reports-sales-by month/date/7days etc
– wcfm-coupons-manage
– wcfm-coupons
– wcfm-appointments-staffs-manage
– wcfm-analytics month/date/7days etcand in wcfm-products show January 1, 2018 instead of 1. January, 2018
sorry for this long list, normaly the date format works from backend settings in wp.
if you change this for next update you dont have to send me the code for functions.php because the page goes live not before end of the month:)you have a paypal email, i like to spend something for your effort!!!
Attachments:
You must be logged in to view attached files. - January 15, 2018 at 7:32 pm #17973WCFM ForumMember
Hi,
This is code will not change date format every where, it’s only for Appointment Product creation fields.
Really thanks for the list, we will take a look at all those.
Actually, there has two type of dates, one is input types and another is information display type.
We will use WP date settings for all this in next update, hope then there will no such issues.
If you want to donate us something then may use “payment@wclovers.com” as our PayPal email.
If you get a chance then please add a review for me as well -https://wordpress.org/support/plugin/wc-frontend-manager/reviews/
If you already did that then we are really thankful to you.Just to mention, WCFM next update will be there in 3-4 days and hope then there will be no more date issues.
Really thanks for your cooperation.
Regards
Shhiv - January 15, 2018 at 7:36 pm #17974info17Participant
at the moment i have no login on wordpress to get a review, but i think now its time to get one..
i will transfer something for you in the next days via paypal because i am very happy with your support!!
thanks and have a great day/evening π - January 16, 2018 at 6:11 am #17979WCFM ForumMember
It’s ok, whenever you have time do it.
I am also happy to you, specially few things are really helpful WCFM as well.Really thanks for your cooperation.
- AuthorPosts
- The topic ‘Change Date Format’ is closed to new replies.