Nick Verwymeren
Forum Replies Created
-
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] Less than 1 minimum quantity: 0,4give 1.0.7 a try and see if it resolves your issue.
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] Less than 1 minimum quantity: 0,4Good catch! Looks like this is a bug I’ll have to fix. I’ll try to push an update in the next day to fix this and update this thread when I do.
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] How to update quantity in cart?I can’t seem to reproduce the problem. I have a base installation of WooCommerce, Storefront theme and Quantities and Units installed. When I visit the cart page I can change the value, click update and the new total is calculated.
You mention cart and checkout as being the same page. In WooCommerce these are two seperate pages. WooCommerce does not have the ability to change values on the checkout page since this is where you’re finalizing your order. This is true whether QU is activated or not.
Can you please provide a url showing the issue or the exact steps to reproduce the problem?
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] Rules not applied to logged in usersok I tried to reproduce this on my local install but couldn’t make it happen. Do you have any other plugins installed such as Dynamic pricing (or some other price effecting plugin)?
I hate to give you the ‘deactivate all plugins and see if the issue persists’ line, but it might be a good place to start.
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] Rules not applied to logged in usersDo you have a ‘Sitewide’ rule activated? If so, this will take precedent over any other rules.
ok this should work if you paste in your functions.php file. It’s not pretty and I hope to refactor the code to make stuff like this easier in the future, but in the mean time this should work. Also if you want the minimum qty message to appear before the add to cart button, just change the 11 in add_action to a 9:
add_action( 'woocommerce_after_shop_loop_item', 'wpqu_show_min_on_archive', 11 ); function wpqu_show_min_on_archive(){ global $product; $settings = get_option( 'ipq_options' ); extract( $settings ); $rule = wcqu_get_applied_rule( $product ); // Return nothing if APQ is deactivated if ( $rule == 'inactive' or $rule == null ) { return; } // Check if the product is out of stock $stock = $product->get_stock_quantity(); // Check if the product is under stock management and out of stock if ( strlen( $stock ) != 0 and $stock <= 0 ) { $min = wcqu_get_value_from_rule( 'min_oos', $product, $rule ); $max = wcqu_get_value_from_rule( 'max_oos', $product, $rule ); } else { $min = wcqu_get_value_from_rule( 'min', $product, $rule ); $max = wcqu_get_value_from_rule( 'max', $product, $rule ); } $step = wcqu_get_value_from_rule( 'step', $product, $rule ); // If sitewide rule is applied, convert return arrays to values if ( $rule == 'sitewide' and strlen( $stock ) != 0 and $stock <= 0 ) { if ( is_array( $min ) ) $min = $min['min_oos']; if ( is_array( $max ) ) $max = $max['max_oos']; if ( is_array( $step ) ) { $step = $step['step']; } } else if ( $rule == 'sitewide' ) { if ( is_array( $min ) ) $min = $min['min']; if ( is_array( $max ) ) $max = $max['max']; if ( is_array( $step ) ) { $step = $step['step']; } } // If the text is set, update and print the output if ( isset( $ipq_qty_text ) && $min ) { $min_pattern = '/\%MIN\%/'; $max_pattern = '/\%MAX\%/'; $step_pattern = '/\%STEP\%/'; $ipq_qty_text = preg_replace($min_pattern, $min, $ipq_qty_text); $ipq_qty_text = preg_replace($max_pattern, $max, $ipq_qty_text); $ipq_qty_text = preg_replace($step_pattern, $step, $ipq_qty_text); // Output result with optional custom class echo "<div"; if ( isset( $ipq_qty_class ) and $ipq_qty_class != '' ) echo " class='" . $ipq_qty_class . "'"; echo ">"; echo $ipq_qty_text; echo "</div>"; } }
1.0.6 has an update with the css. I set the max width to 50px since it didn’t look right in some themes to be 80px wide. So if you need any wider you can manually override in your theme’s css file.
Thanks for the feedback. I’ll add this to the next update.
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] to translatelooks like the link got stripped out. maybe send to me directly via email:
me [at] nickv.codesForum: Plugins
In reply to: [Quantities and Units for WooCommerce] to translateYes definitely! Can you upload it somewhere and provide a download link?
Forum: Reviews
In reply to: [Quantities and Units for WooCommerce] does not work with decimal valuesI’ve pushed an update (1.0.5) that makes it a bit clearer in the instructions that you have to configure decimal quantities as they are not enabled by default.
In the future I might suggest you post an issue in the support area to try and get your issue resolved before giving 1/5 reviews on plugins.
Forum: Reviews
In reply to: [Quantities and Units for WooCommerce] does not work with decimal valuesHi Geekay,
Can you give me a bit more details? I’d be happy to look into it and sort out a fix. Have you properly configured the product to allow decimal step values? For example if you want to accept items in 0.1 increments, you need to specify this as the Step value on the product edit page.Same issue for me as well.
Sorry about the late reply on this. I hope to have a look soon about any issues with the latest version of wordpress. I’ve neglected this plugin, but hope to do some development on it in the next few weeks.
thanks for the detailed bug report. I think 1.0.3/1.0.4 should fix up a few edge case bugs as well.