raiserweb
Forum Replies Created
-
Forum: Reviews
In reply to: [WooCommerce Order Emails Log] Does not workHi aljuk
This was a bug that is fixed. Please reconsider your review
ThanksForum: Reviews
In reply to: [WooCommerce Email Test] Doesn’t work with most recent WoocommercePlease kindly edit this review from 1 star, since the issue was not related to this plugin
Forum: Plugins
In reply to: [WooCommerce Order Emails Log] does not install very wellThis is now fixed
Please update the plugin to the latest version, deactivate, and re-activate the plugin.Forum: Plugins
In reply to: [WooCommerce Order Emails Log] does not install very wellThis is now fixed
Forum: Reviews
In reply to: [WooCommerce Email Test] Doesn’t work with most recent WoocommerceAre there any orders in your woocommerce setup? If not, please create at least 1 order
Forum: Reviews
In reply to: [WooCommerce Email Test] Doesn’t work with most recent WoocommerceThat fatal error is showing a file path to a file within your wp theme. This would indicate to me that there is an error with your email templates, NOT this plugin.
This error you have found is exactly what this plugin is designed for – testing your emails and discovering errors. Please consider re-posting your review.
Thanks
RaiserwebForum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyOh hang on, I thought you meant you were echoing the whole query.
Try echoing the whole search query and debug from there.
The above individual echo’s are correct
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyDoesn’t look right
try chaning line 98 of functions.php to$orderby = ” ORDER BY (POW((acf_gms_geo.lng-{$lng}),2) + POW((acf_gms_geo.lat-{$lat}),2)) ASC”;
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyPlease add the following lines into the top of the acf_google_maps_search_save_post function
// now update historic post data
$acf_gms = new acf_gms;
$acf_gms->update_historic_post_gm_data();
exit;Then save any post.
This should update historic products. Finally, remove these linesForum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyNot sure. Try commenting this if statement
function acf_google_maps_search_save_post( $post_id ) {
// bail early if no ACF data
//if( empty($_POST[‘acf’]) ) {
//return;
//}$address = get_field( ‘address’, $post_id );
if( $address ){
$acf_gms = new acf_gms;
$data = [
‘post_id’ => $post_id,
‘lng’ => $address[‘lng’],
‘lat’ => $address[‘lat’],
];$acf_gms->save( $data );
}
}
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyOk, since test is displayed, it shows that the function is firing when you save a product.
So I’m afraid I’ll have to leave the rest to you to debug. Maybe $_POST[‘acf’] is empty
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptySorry I mean this:
function acf_google_maps_search_save_post( $post_id ) {
echo ‘test’; exit;
// bail early if no ACF data
if( empty($_POST[‘acf’]) ) {
return;
}$address = get_field( ‘address’, $post_id );
if( $address ){
$acf_gms = new acf_gms;
$data = [
‘post_id’ => $post_id,
‘lng’ => $address[‘lng’],
‘lat’ => $address[‘lat’],
];$acf_gms->save( $data );
}
}
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyTry this first. If no var dump, then you know the hook is not firing.
function acf_google_maps_search_save_post( $post_id ) {
var_dump($address); exit;
// bail early if no ACF data
if( empty($_POST['acf']) ) {
return;
}$address = get_field( 'address', $post_id );
if( $address ){
$acf_gms = new acf_gms;
$data = [
'post_id' => $post_id,
'lng' => $address['lng'],
'lat' => $address['lat'],
];$acf_gms->save( $data );
}
}
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyYou can perform the action on the front end (ie save the post), and add a var_dump + exit in the php function (acf_google_maps_search_save_post) to see if the browser displays the var_dump.
This plugin is intended for developers only
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyIt should work for products, since they are posts
To debug, please check that the action is firing (located in advanced-custom-fields-google-maps-search.php )
// save post
add_action(‘acf/save_post’, ‘acf_google_maps_search_save_post’, 20);Then check that this function has the correct data (located in functions.php)
function acf_google_maps_search_save_post( $post_id ) {
// bail early if no ACF data
if( empty($_POST[‘acf’]) ) {
return;
}$address = get_field( ‘address’, $post_id );
if( $address ){
$acf_gms = new acf_gms;
$data = [
‘post_id’ => $post_id,
‘lng’ => $address[‘lng’],
‘lat’ => $address[‘lat’],
];$acf_gms->save( $data );
}}