robertstaddon
Forum Replies Created
-
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 (https://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 (https://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.
ururk, thank you so much for pointing this out! I upgraded from version 3.3.0 of this plugin to 3.3.6 and suddenly my multisite admin pages slowed to a crawl. It rendered this plugin practically unusable. Simply commenting out those lines solved the problem!
Why does this plugin need to scan all of the URLs of all the other networked sites in the admin bar on every single page load and switch them to HTTPS? If this feature is required, can we make it an option that can be disabled in the settings?
Why does the “wp-admin/includes/upgrade.php” file need to be required on every page load?
This seems rather inefficient to me and prone to cause problems like the one created with Types and Views.
OK! The problem appears to be that the
require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’)
command on line 481 of vimeography.php causes the
if(!function_exists(‘wp_terms_checklist’))
command in Types and Views to return false instead of true.
Digging a little deeper, the problem appears to be related to the “$this->_move_folder” function calls on lines 135 and 136 of vimeography.php in the vimeography_move_folders() function.
The problem appears to be related to the
add_action( ‘init’, array(&$this, ‘vimeography_move_folders’) );
line in vimeography.php. When this line is commented out, “if(!function_exists(‘wp_terms_checklist’))” suddenly starts returning “true”.
Somehow the “if(!function_exists(‘wp_terms_checklist’))” test that Types and Views uses fails once Vimeography is enabled. How is this possible, seeing that Vimeography doesn’t seem to define it’s own ‘wp_terms_checklist’ function?
Hello joadard,
I am having the exact same problem with a DVS on Plesk. Let me know if you find out anything.