Matt Banks
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Hide the TimeHey Kelvin,
We can look into adding that, but I can’t promise a time when we can get it added (a little swamped right now).
Could you please add this as an issue on our Github repo so we can track it? https://github.com/mattbanks/woocommerce-local-pickup-time
Thanks,
MattHey B!
It’s supposed to be picking up your WordPress install’s date/time settings, but we may have a bug in there.
We may need to change https://github.com/mattbanks/woocommerce-local-pickup-time/blob/master/public/class-local-pickup-time.php#L323 from
get_option('time_format')
toget_option('date_format')
.I’m busy with projects for work for a bit, but if you want to try that locally and see if you works, you could put in a pull request on Github and I could get that merged and deployed.
Thanks,
MattThe way dates worked changed in 1.3.0. I can take a look when I get a chance. Unfortunately I’m pretty tied up with things for work. If you’d like to take a look and submit a pull request, the function for updating the email is here: https://github.com/mattbanks/woocommerce-local-pickup-time/blob/master/public/class-local-pickup-time.php#L465-L490
Thanks for the kind words! You can use a filter to change the location:
/** * Filter Local Pickup Time Select Location * default location is <code>woocommerce_after_order_notes</code> */ function my_custom_location_function( $location ) { $location = 'woocommerce_review_order_before_payment'; return $location; } add_filter( 'local_pickup_time_select_location', 'my_custom_location_function' );
Forum: Plugins
In reply to: [PDF Email on Save] Show pictures in postsHi Hans,
I’m a bit tied up with some projects right now, so it might be a few weeks before I’m able to take a look. I’ll have to add some additional filters on top of the
the_content
to replace allimg
tags withImage()
tags and parameters in tcpdf (as seen here – https://tcpdf.org/examples/example_009/).If you’re interested in coding that before I have a chance to get to it, the project is on Github – https://github.com/mattbanks/pdf-email-on-save.
Thanks,
MattForum: Plugins
In reply to: [PDF Email on Save] Show pictures in postsHi kuppj00!
Thanks for using the plugin! ??
I’m not sure whether images will get rendered inside the PDF by default, although it’s set to just pull the post content by default.
There are filters built in so that you can modify that content in your theme or a custom plugin that you write.
– Subject for email being sent:
pdf_email_on_save_subject
– Content of email message being sent:pdf_email_on_save_message
For example, to change the title, you can use a function like:
/** * Filter PDF email subject */ function my_custom_pdf_email_subject( $subject ) { $subject = 'This is my awesome new email subject!'; return $subject; } add_filter( 'pdf_email_on_save_message', 'my_custom_pdf_email_subject' );
A similar function can be used for the content of the PDF.
Hope that helps! ??
– Matt
- This reply was modified 7 years ago by Matt Banks.
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Delay time – 48 HoursDefinitely a good change to add. Unfortunately, I’m swamped with some client work right now. If anyone wants to add this and submit a pull request on Github – https://github.com/mattbanks/woocommerce-local-pickup-time – I’ll happily merge it and tag a new release (and give you credit as an author on the plugin).
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Selection AvailabilityDefinitely a good change to add. Unfortunately, I’m swamped with some client work right now. If anyone wants to add this and submit a pull request on Github – https://github.com/mattbanks/woocommerce-local-pickup-time – I’ll happily merge it and tag a new release (and give you credit as an author on the plugin).
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] 24h time formatI’m unfortunately tied up with some client work right now, but if anyone wants to submit a pull request on Github with all of the changes, I’ll be happy to merge it and push a new release (and add you to the contributors list)!
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] 24h time formatI’ll change the time format display to properly pull the time_format option in the next update!
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Php code to display time optionsIt’s not displayed via PHP in templates, it’s hooked in to
woocommerce_after_order_notes
by default. You can override the hooked location with thelocal_pickup_time_select_location
filter, but you need to keep it within the WooCommerce checkout page to get stored and processed with the order.Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Make "PICKUP TIME" Title in ItalianDeckey – the plugin is setup to be fully translatable (en_US.mo and en_US.po files are there). I don’t speak Italian, so I’m not sure what the translations would be. The plugin is available on Github if anyone would like to submit a pull request with translations for any other language!
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Pick only 1 dateNot currently possible, but I can put it on the list for things to look into when I have some time.
I’ll look into adding this in an upcoming update!
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Update pluginAdded a section for choosing number of days ahead in v1.2.0!