andersi913
Forum Replies Created
-
The images are optimized before they was added to the website..
Because it’s optimized with another program and I don’t want an already optimized version to be optimized again so the images get “over optimized/comprised” and looks bad..
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] add action after product added to wishlistThanks that helped!
Do you have a similar hook to when product is removed from wishlist?I still got some problems i want to add a value to a product attribute when it is added to wishlist for certain user roles..
I got this code:
add_action('yith_wcwl_added_to_wishlist', 'addOwnedByUserToProduct', 10, 3); function addOwnedByUserToProduct($product_id, $wishlist_id, $user_id) { if(!is_user_logged_in()) { return; } $user = wp_get_current_user(); $roles = ( array ) $user->roles; foreach ($roles as $role) { if($role == 'medlem' || $role == 'administrator' || $role == 'bestyrelse') { // add username as value to product attribute named "i eje" not really sure how to break; } } }But i cant figure out how to add/append a value to the product attribute “i eje”..
I know it is not your problem but thanks for the help with the hook.. 🙂
I found another solution sorry for the inconvenience.. 🙂
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] Decimal quantity in cartIf i understand you right try to edit this file: “/wp-content/plugins/quantities-and-units-for-woocommerce/assets/js/ipq_input_value_validation.js”
and add this line:
new_qty = parseFloat(new_qty).toFixed(2);
between line 24 and 25Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] can’t set min. less than 1Can now get to 0,25 😀 😀 😀
My theme (tm organic) was the problem.. 🙂
added this:
min=”<?php echo esc_attr( $min_value ); ?>”
max=”<?php echo esc_attr( 0 < $max_value ? $max_value : ” ); ?>”
to (FILE) ftp // web/wp-content/themes/tm-organik/woocommerce/global/quantity-input.php..so the plugin did the job except the change mentioned earlier thanks! 🙂
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] can’t set min. less than 1edit to the this file: “ipq_input_value_validation.js”
I added this line (new_qty = parseFloat(new_qty).toFixed(2);) between line 24 and 25..and now i can click “+” to 2,35 and “-” back to 2,30 without typing in the textField..
Forum: Plugins
In reply to: [Quantities and Units for WooCommerce] can’t set min. less than 1Link to website : http://stofmoellen.designfyn.dk/produkt/karryfarvet/