Website Tutorials
Forum Replies Created
-
Maybe you could add a field in the backend in order for the user to enter and save the API key, and not mess with the code.
It needs an API key. In order to add it you should change the corresponding line in main.php to:
wp_enqueue_script('google-autocomplete', "https://maps.googleapis.com/maps/api/js?v=3&libraries=places&key=MY_API_KEY");
With this it works like a charm!
Forum: Plugins
In reply to: [Timologio for WooCommerce] Older PHP versions compatibility?No worries, I updated my PHP version and is now working great!
Forum: Plugins
In reply to: [Timologio for WooCommerce] Validation?I think I found it. In WcTimologio.php change everywhere (4 instances, one for each field) from
'class' => array( 'form-row-wide', 'timologio-hide' ),
to
'class' => array( 'form-row-wide', 'timologio-hide', 'validate-required' ),
I have an update. The Google API has a default language the english language. To change the output you must add your prefered language when you load the api js file. Here is a list of supported languages. For example, to return greek language, in main.php you change the following line:
wp_enqueue_script('google-autocomplete', "https://maps.googleapis.com/maps/api/js?v=3&libraries=places&language=el");
@jerryngm: true, this bug exists, but maybe the state field is unnecessary with this plugin? I thinK I will remove the state field from my checkout forms, cause since the address is autocompleted (and city and postal code as well), the state field seems redundant to me.
@marshall Stevenson: for me it is working for shipping as well. Do you have the latest WordPress and WooCommerce version?
Hi, same problem here. You say that you can bulk edit the wholesale prices, but I cannot do so. I’m in the products page, check the products that I want (they are simple product types), select the edit from WordPress dropdown and press apply (the usual wp process for bulk editing) but cannot see the wholesale price field.
If i click quick edit, I can see it, but this changes only one product at a time.
Forum: Plugins
In reply to: [WooCommerce COD Advanced Plugin] translationSolved it! Tested with WPML and string scanning.
1. Open plugin’s backend page and leave message field blank.
2. Open woocommerce_advanced_cod.php and change these lines:line 555
if(!$extra_charges_msg){$extra_charges_msg = __('COD Charges');}
and line 121
$form_fields['extra_charges_msg'] = array( 'title' => __('Message for extra charges','askoracle'), 'type' => 'text', 'description' => __('Message for extra charges while applied on checkout','askoracle'), 'default' => __('COD Charges'), 'desc_tip' => '', );
Forum: Plugins
In reply to: [WooCommerce COD Advanced Plugin] COD charges translationSolved it! Tested with WPML and string scanning.
1. Open plugin’s backend page and leave message field blank.
2. Open woocommerce_advanced_cod.php and change these lines:line 555
if(!$extra_charges_msg){$extra_charges_msg = __('COD Charges');}
and line 121
$form_fields['extra_charges_msg'] = array( 'title' => __('Message for extra charges','askoracle'), 'type' => 'text', 'description' => __('Message for extra charges while applied on checkout','askoracle'), 'default' => __('COD Charges'), 'desc_tip' => '', );
Forum: Plugins
In reply to: [WooCommerce COD Advanced Plugin] COD charges translationSame here. Seems that the plugin is incompatible with WPML.
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] Any way to check if plugin is active using PHP?Found it! Just use
if (function_exists('siteorigin_widget_get_plugin_path')) { // your code here }
Forum: Plugins
In reply to: [WooCommerce Collapsing Categories] Category orderExcellent @d2.roth! The ‘name’ entry works, without needing to modify the plugin source code!
Forum: Plugins
In reply to: [Yoast SEO] Snippet length (156) is set wrong (?)True! Same here.
Forum: Plugins
In reply to: [Custom Field Suite] Fatal error with new cfs versionExactly! I hope the developer fixes it, so that it is compatible with the old $cfs->get function.