daymobrew
Forum Replies Created
-
I noticed that the wqoecf_quote_or_enquiry_ajax_callback() function is returning the correct form.
The issue must be with the submission of the form. When it returns the error the popup form is changed to be the other form!I have been helping @priyam3491 with this issue because he was using some of my code.
I did some experiments with plain CF7 forms.My setup: WordPress 5.4.2, WooCommerce 4.3.0, CF7 5.2 and WooCommerce Quote or Enquiry CF7 1.5. Theme is Storefront 2.5.8.
I duplicated the CF7 form so I now have 2 identical forms.In a footer widget I added the CF7 shortcode for 1 form (form ID 48).
In your plugin settings I set it to use the other form (form ID 50). It is only showing on single product page.I am able to submit the form in the footer. The form action=”#wpcf7-f48-o1”
The popup form does not work. It reports “One or more fields have an error. Please check and try again.”
The error messages (The field is required.) are displayed in the footer form.
The form action for the popup is action=”#wpcf7-f48-o1” but this is wrong.
This is strange because the Enquire button attribute has data-enquiry-form=”50″Forum: Reviews
In reply to: [WPS Hide Login] the worst pluginThe same happened me once but it was my fault – I put in a url with mixed case and the plugin converted it to lowercase. Could that have been the problem for you?
Forum: Plugins
In reply to: [CMB2] How do precheck some items in multicheck?Thanks for the reply.
I decided against pre-setting the data as it would have negative knock-on effects if the client didn’t save new dates each week.The site is using jQuery DatePicker on the front end and I was feeding these dates as those to disable. I have changed my PHP code (that generates JavaScript code) to generate the dates for the next 4 Mondays and Tuesdays. This saves a lot of complicated stuff at the CMB2 side.
Forum: Plugins
In reply to: [WooCommerce] Attach PDF to confirmation email for specific product@indigorise: Yes, you could modify the code to check for multiple product IDs
For example, change:
$product_id = 11871;
to
$product_id = array( 11871, 123, 456 ); // Add the product IDs (or variation IDs)And change:
if ( $product_id === $item->get_product_id() ) {
to
if ( in_array( $item->get_product_id(), $product_id ) ) {Forum: Plugins
In reply to: [MINDBODY Widget] New bug spotted after updateIF you look at the bottom of
https://plugins.svn.wordpress.org/healcode-mindbody-widget/trunk/widget.phpyou will see the backticks on the last line.
Forum: Plugins
In reply to: [MINDBODY Widget] New bug spotted after updateThe wrong quotes were used when the fix for the deprecated function was done
(See my patch for that at: https://wordpress.org/support/topic/deprecated-function-notice-6/)Right now the same line uses back ticks instead of single quotes around ‘widgets_init’
The fix is to edit wp-content/plugins/healcode-mindbody-widget/widget.php.
At the end of the file is:
add_action(widgets_init, function() { return register_widget(“Hc_Insert_Html_Widget”); })The fix is to change
widgets_init
to
‘widgets_init’
change the backticks to single quotes.Note: The editor has changed my backticks to code.
- This reply was modified 6 years, 4 months ago by daymobrew.
Forum: Plugins
In reply to: [MINDBODY Widget] Deprecated function noticeHere’s a patch for the create_function() warning.
You can also remove the closing ?>— widget.php.orig 2019-11-22 10:55:10.000000000 +0000
+++ widget.php 2019-11-27 10:31:29.204687000 +0000
@@ -85,5 +85,5 @@} // end class Hc_Insert_Html_Widget
-add_action(‘widgets_init’, create_function(”, ‘return register_widget(“Hc_Insert_Html_Widget”);’));
+add_action(‘widgets_init’, function () { return register_widget(“Hc_Insert_Html_Widget”); } );
?>Forum: Plugins
In reply to: [P3 (Plugin Performance Profiler)] PROBLEM P3 PERFOMANCE PLUGINIf you are using PHP 7 then this plugin will not work.
See the pinned reply: https://wordpress.org/support/topic/php-7-compatibility-144/Forum: Fixing WordPress
In reply to: Create link within a categoryWould it be okay to have the extra text expand when it is clicked.
I’ve used the Collapse-o-matic plugin. Maybe you could use this in the product category description instead of creating a new page.Forum: Fixing WordPress
In reply to: Post thumbnailIt looks like you already have this on your site.
If you need something else then please reply.Forum: Fixing WordPress
In reply to: Widget doesn’t show up on websiteIs it the widget above the facebook icon?
Are there any error messages in the server error_log?I suggest:
– enable WP_DEBUG to true in wp-config.php
– install the Query Monitor pluginWhen you reload the page you will see php errors and notices when you click the Query Monitor dropdown menu. These will help you find out if there is a problem.
You can also ask the widget developer for help.
Can you view the database with phpMyAdmin? You might be able to fix the crashed table with it.
I think that you should ask your hosting company to explain why the tables are not closed. Maybe they can restart the web server.
Forum: Fixing WordPress
In reply to: WP 4.8.9In Dashboard/Updates can you see the option to update to 5.2.4?
If you do not want to go to 5.2.4 you should update to 4.8.11 to get some security fixes.
You can download the zip file for any version from the Releases page.Forum: Fixing WordPress
In reply to: Activation account sender’s nameThis can be changed with a plugin (e.g. CB Change Mail Sender) or with some code (you can put it your theme’s functions.php or into a standalone plugin).
Here is example code:
// Function to change email address function wpb_sender_email( $original_email_address ) { return 'globsticks@example.com'; } // Function to change sender name function wpb_sender_name( $original_email_from ) { return 'Glob Sticks'; } // Hooking up our functions to WordPress filters add_filter( 'wp_mail_from', 'wpb_sender_email' ); add_filter( 'wp_mail_from_name', 'wpb_sender_name' );