hidegandras
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Qty values are rounded downHello,
I rolled back to version 9.1.1 and the values in the cart are not rounded down anymore. The issue was happening with versions 9.2.0 and 9.3.1 (didn’t had the chance to try other versions).
In order to ger decimal values in the cart, we use the Min Max Step Quantity Limits Manager for WooCommerce plugin and also we added these to functions.php (please note that these functions were added after the issue with cart qty rounding):
add_filter( 'woocommerce_loop_add_to_cart_link', 'view_product', 10, 2 );
function disable_qty_field_for_specific_category($product_quantity, $cart_item_key, $cart_item) {
$parent_category_slug = 'piele-naturala';
// Get the product ID
$product_id = $cart_item['product_id'];
// Check if the product belongs to the specified parent category
if (has_term($parent_category_slug, 'product_cat', $product_id)) {
// Return only the product quantity without the input field
return sprintf('<span class="product-quantity">%s</span>', $cart_item['quantity']);
}
// Return the default quantity input field for other products
return $product_quantity;
}
add_filter('woocommerce_cart_item_quantity', 'disable_qty_field_for_specific_category', 10, 3);
add_filter( 'woocommerce_quantity_input_args', 'custom_decimal_quantity_step', 10, 2 );
function custom_decimal_quantity_step( $args, $product ) {
$args['step'] = 0.01;
$args['min_value'] = 0.01;
return $args;
}
add_filter( 'woocommerce_cart_item_quantity', 'allow_decimal_quantities_in_cart', 10, 3 );
function allow_decimal_quantities_in_cart( $product_quantity, $cart_item_key, $cart_item ) {
$product_quantity = wc_format_decimal( $cart_item['quantity'], 2 );
return $product_quantity;
}Products with decimal qty values are all variable products.
Example: one product is available in 2.35, 4.30, 4.37 and 4.68 sizes. For the variations the min and max qty is set to it’s corresponding size and the qty field is disabled (so customers cant override the values). So, if a somebody wants choses the 4.37 size, then 4.37 qty is added to the cart.
Hello Jeff,
thanks for getting back to me. The plugin is at version 13.3.7. I want to change the batch to 50, as you mentioned, however nothing happens when I press the SAVE button.
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Ajax not working + 404 errorHello,
so I followed your instructions, created a new filter, added the widget and now we have again the 404 issue. It seems that by accident I used the old widget.
Please go to https://www.vanzari-piele.ro/categorie-produs/piele-naturala/, then choose any page number (5-6 or something higher) and then select a colour. It should give you a 404 page.
For ex, on page 8 I selected coral colour: https://www.vanzari-piele.ro/categorie-produs/piele-naturala/page/8?yith_wcan=1&product_cat=piele-naturala&query_type_culoare=or&filter_culoare=coral
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Ajax not working + 404 errorHello,
sorry for the late reply. So, the plugin is working now almost correctly, in the sense that if I am selecting a color while being on the 5th product page for ex, it shows the correct products and doesn’t give a 404 error. It was probably some issue that got fixed with an update
However, there is another issue. After selecting a filter, the filter dissapears. Reloading the page shows the filter again. What could be the source of this issue?
Here is an example: https://www.vanzari-piele.ro/categorie-produs/piele-naturala/
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Product Filter] Ajax not working + 404 errorHello, yes we removed the widget it yesterday because a lot of visitors were getting 404 pages because of this. I will create a temporary page with the widget and let you know ASAP.
Great, that worked! As for the issue with the badge not displaying on discounted prices, we are using the “WooCommerce Dynamic Pricing & Discounts” from RightPress in order to set up discount rules. Could be this why the badges don’t appear on all discounted products?
Any update regarding these issues?
Hi,
the badge should be visible an all discounted products from all categories.
I tried to enable the loop hook, I actually tried all the settings before writing here.
Here is a category that should display the badge: https://latinonails.ro/produse/oje-permanente/oje-15-ml/
Also, if you go to the home page, you will see a section where the badges are displayed, but if you go to a category where that product is located you will see that no badge is displayed.
Here is an URL with a product, where the badge is displayed on the top left corner of the page, instead of the product image: https://latinonails.ro/produs/oje-permanente/oje-7-5-ml/gel-lac-laser-lemon/
Thanks for the reply, it turned out that it was an issue on server side: the asp_tags were turned on. Because of this some js code didn’t run correctly.
If anyone else experiences the same error as I did add this to your .htaccess file:
php_value asp_tags 0Forum: Plugins
In reply to: [My YouTube Channel] Only one video showingOkay, never mind. Please read the FAQ how to get it to work: https://ww.wp.xz.cn/plugins/youtube-channel/faq/
Forum: Plugins
In reply to: [My YouTube Channel] Only one video showingGot the exact same issue.
Yes, it did solve the problem, the permalinks for the events are now in default, and for the rest of the pages it remains the custom mode.
Thank you!