kostasx
Forum Replies Created
-
Great! Thanks for the feedback. Will be on the lookout for the next version.
I am marking this as resolved, since it has been moved to Github.Just uploaded a fork of the plugin here.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] Plugin breaks visual editor in WP 4This invaluable post just saved my day. Austin & ShaMan, you rock!
I love this community!
On a sidenote, WordPress updates and plugin incompatibilities are starting to become a day to day nightmare.
??
Forum: Plugins
In reply to: [Woocommerce CSV importer] Featured image not showingIt seems there is a buggy line in the include/class-woocsv-product.php file.
The line #248 which contains the following code:$imageID = $this->saveImageWithUrl($this->featuredImage);
must be removed in order for the featured image to work by name.
This line overrides the previous conditionals, and thus breaks the code.
Looking at the odd indentation, it looks as if it has been copied-pasted there by mistake.( This line is found in the saveFeaturedImage() method. )
Hope this helps someone, until 1.2.8 comes out.
It seems there is a buggy line in the include/class-woocsv-product.php file.
The line #248 which contains the following code:$imageID = $this->saveImageWithUrl($this->featuredImage);
must be removed in order for the featured image to work by name.
This line overrides the previous conditionals, and thus breaks the code.
Looking at the odd indentation, it looks as if it has been copied-pasted there by mistake.( This line is found in the saveFeaturedImage() method. )
Hope this helps someone, until 1.2.8 comes out.
There is a quick tweak that can be implemented in the code, in order to add more than 2 options in the select option:
1) In your theme’s functions.php you’ll have to remove the
‘woocommerce_after_checkout_billing_form’ action associated with the ‘wccs_custom_checkout_field’ function, that is found in the plugin code. You can use the remove_action() WP function for this.2) You then initialize this action with a modified copy of the ‘wccs_custom_checkout_field’ function as a callback function.
Right where the function code (#836) accepts the input values from Option A and Option B fields for the select box, you replace the input array (‘options’) with an array created using the explode() PHP function (use comma as its separator) and $btn[‘option_a’] as the string input. You then enter more than 2 values using the following notation: Option 1, Option 2, Option 3, etc. right inside the Option A input box. You also have to use a WP sanitize function for the input.
I hope this helps someone…