robertstaddon
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Exclude Cache for Custom Plugin’s REST API EndpointThat worked! Thank you!
Here’s my revised function that’s working at https://test.abundantdesigns.com/wp-json/ld-muvi/v1/test
public function test_callback( $data ) {
$response[‘result’] = ‘Connection successful’;
$response[‘random-number’] = rand(1000, 9999);if ( class_exists( ‘LiteSpeed_Cache_API’ ) ) {
LiteSpeed_Cache_API::set_nocache();
$response[‘litespeed’] = “Successfully disabled LiteSpeed Cache on page”;
}$result = new WP_REST_Response( $response, 200 );
// Set headers.
$result->set_headers( array(
‘Cache-Control’ => ‘no-cache, must-revalidate, max-age=0’
) );return $result;
}I am experiencing the same issue after updating to WP 5.0.2 + WC 3.5.2. The default “All” tab in the WooCommerce Orders listing displays “No orders found”
I believe this issue has been resolved in my updated version of this plugin on GitHub: https://github.com/robertstaddon/mijireh-checkout-for-gravity-forms
Forum: Plugins
In reply to: [Mijireh Checkout for Gravity Forms] Gravity Forms ConditionsHey @nikcree. I encountered this same issue and fixed it in the code. You can find my patched version on GitHub: https://github.com/robertstaddon/mijireh-checkout-for-gravity-forms
Forum: Plugins
In reply to: [Mijireh Checkout for Gravity Forms] Incompatible with Gravity Forms CouponsI have rolled out an updated version of the plugin with this change on GitHub: https://github.com/robertstaddon/mijireh-checkout-for-gravity-forms
Forum: Plugins
In reply to: [WooCommerce Accommodation Bookings] Resources and peopleI would definitely vote for this feature as well! This post on the Idea Board looks close: http://ideas.woothemes.com/forums/133476-woocommerce/suggestions/11522154-quantity-in-accomodation-bookings
Forum: Plugins
In reply to: [WooCommerce Accommodation Bookings] js?ver=1.0.2 404 (Not Found)There is a currently a bug with the 1.0.2 zipped plugin file from the WordPress repository not containing the “assets” folder. (See https://github.com/woothemes/woocommerce-accommodation-bookings/issues/39)
Trying downloading this plugin from GitHub so that you will have the “assets” folder: https://github.com/woothemes/woocommerce-accommodation-bookings
Forum: Plugins
In reply to: [Mijireh Checkout for Gravity Forms] Incompatible with Gravity Forms CouponsIt appears that the problem is in the way that the get_product_query_string() function calculates the total amount to be charged.
It successfully adds the product items to an order array along with the coupon discounts. However, it never actually removes the discount amount from the “total” field which it is trying to charge through Mijireh. The Mijireh API expects the total field to equal the amount of all of the items minus the discount (http://www.mijireh.com/docs/api/#creatingneworders).
Adding a simple “$total = $total – $discount” line will solve this problem:
private static function get_product_query_string($form, $entry, $mj_order){ $fields = ""; $products = GFCommon::get_product_fields($form, $entry, true); $product_index = 1; $total = 0; $discount = 0; foreach($products["products"] as $product){ $option_fields = ""; $price = GFCommon::to_number($product["price"]); if(is_array(rgar($product,"options"))){ $option_index = 1; foreach($product["options"] as $option){ $field_label = urlencode($option["field_label"]); $option_name = urlencode($option["option_name"]); $option_fields .= "&on{$option_index}_{$product_index}={$field_label}&os{$option_index}_{$product_index}={$option_name}"; $price += GFCommon::to_number($option["price"]); $option_index++; } } $name = $product["name"]; if($price > 0) { $mj_order->add_item( $name, $price, $product["quantity"], '' ); $total += $price * $product['quantity']; $product_index++; } else{ $discount += abs($price) * $product['quantity']; } } if($discount > 0){ $mj_order->discount = $discount; $total = $total - $discount; // MISSING LINE! Remove the discount from the total } $shipping = !empty($products["shipping"]["price"]) ? $products["shipping"]["price"] : "0.00"; $mj_order->shipping = $shipping; $mj_order->show_tax = false; return $total > 0 && $total > $discount ? $total : '0.00'; }I’ve been experiencing the same issue as @themantimeforgot. After updating my network-activated Yoast Google Anlaytics plugin to 5.2.8, previewing a page or post brings up the error “You do not have permission to preview drafts.” Still haven’t found a fix so I’m rolling back to 5.2.7
Forum: Plugins
In reply to: [iQ Block Country] Purchasing MaxMind GeoIP2 site licenseThank you! Excellent work.
Forum: Plugins
In reply to: [iQ Block Country] Purchasing MaxMind GeoIP2 site licenseThanks so much for these tips! It would be a nice feature to add in a future version.
Forum: Plugins
In reply to: [iQ Block Country] Purchasing MaxMind GeoIP2 site licenseThanks! So I installed GeoIPupdate on my server (http://dev.maxmind.com/geoip/geoipupdate/) and the GeoIP.dat file is now being regularly updated by a cron job. How would I turn off IQ Block Country’s automatic monthly GeoLite database updates? (The purpose for turning this off would be to keep this plugin from overwriting my paid GeoIP database with the free GeoLite database once every month).
Just wanted to join in the chorus of calls for MultiSite support. 🙂 Everything worked great on 1.9.13 but I just upgraded to 2.0.11 thinking most of the bugs were worked out and got the typical error on the “Add Gallery/Images” screen: “You browser doesn’t have Flash, Silverlight, HTML5, or HTML4 support.”
Forum: Plugins
In reply to: [Network Plugin Auditor] Database error since last updateThank you! 1.5.2 seems to have solved the problem.
Forum: Plugins
In reply to: [Network Plugin Auditor] Database error since last updateI’m getting the same error as @pepe after upgrading to the latest 1.5.1 Network Plugin Auditor release.