LeDukeBx
Forum Replies Created
-
Forum: Plugins
In reply to: [Themify - WooCommerce Product Filter] Scroll to products on Safari (iPhone)I fixed it.
<?php
/**
* Fix: Scroll vers les produits après filtrage - Safari compatible
* Corrige le bug du plugin Themify WC Product Filter sur Safari
*/
add_action('wp_footer', function() {
if (!is_page(667)) {
return;
}
?>
<script>
(function($) {
$(document).ready(function() {
function safariSafeScroll(target) {
if (!target || target.length === 0) return;
var adminBarHeight = $('#wpadminbar').outerHeight(true) || 0;
var targetPosition = target.offset().top - adminBarHeight - 20;
try {
window.scrollTo({
top: targetPosition,
behavior: 'smooth'
});
} catch(e) {
window.scrollTo(0, targetPosition);
}
}
$(document).on('wpf_ajax_success', function() {
var form = $('.wpf_form_scroll');
var isMobile = window.innerWidth < 981;
if (form.length > 0 || isMobile) {
var container = $('.wpf-search-container');
if (container.length === 0) {
container = $('ul.products').parent();
}
if (container.length > 0) {
setTimeout(function() {
safariSafeScroll(container);
}, 100);
}
}
});
var originalAnimate = $.fn.animate;
$.fn.animate = function(props, speed, easing, callback) {
if (props && typeof props.scrollTop !== 'undefined' &&
(this.is('html,body') || this.is('html, body'))) {
var targetScroll = props.scrollTop;
try {
window.scrollTo({
top: targetScroll,
behavior: 'smooth'
});
} catch(e) {
window.scrollTo(0, targetScroll);
}
if (typeof callback === 'function') {
setTimeout(callback, 1000);
} else if (typeof speed === 'function') {
setTimeout(speed, 1000);
}
return this;
}
return originalAnimate.apply(this, arguments);
};
});
})(jQuery);
</script>
<?php
}, 999);- This reply was modified 5 months, 2 weeks ago by LeDukeBx.
Forum: Plugins
In reply to: [WooCommerce] free delivery in the cart, based on the total, not subtotal@doublezed2 Thanks a lot for the advice !!
Forum: Plugins
In reply to: [WooCommerce] free delivery in the cart, based on the total, not subtotalHello @shameemreza
Thanks for your plugin suggestions,
However, the modules you offer only work with the subtotal and not the total (even in the pro version)@wooteam, don’t you have a solution for this simple problem?
Regards. Quentin
- This reply was modified 1 year, 11 months ago by LeDukeBx.
Forum: Plugins
In reply to: [WooCommerce] free delivery in the cart, based on the total, not subtotalHello @carolm29 !
Thanks for your Help !
Exactly, I want to apply the free delivery only if the total (after applying any discounts) meets the criteria (300€ of spent).
The problem with the solution you propose is that it works only if the discount previously applied is a coupon. But mine is quite complex depending on the quantity, and therefore it uses the “Discount Rules for WooCommerce – PRO” module from Flywheel. It is therefore not a coupon, and this solution therefore does not work.Do you have an idea ?
Best regards. Quentin
Forum: Plugins
In reply to: [Widgets for Google Reviews] Reviews NumberAhhhhhh so you answered my question 🙂 Thanks
Forum: Plugins
In reply to: [Widgets for Google Reviews] Reviews Number“If you use filters, less then 10 reveiws will be available in the widget.“
“You can set up the number of reviews in a widget in the admin: trustindex.io.“
Could you please show me where it’s possible ? I don’t find it in the WordPress Plugin admin.
Thanks a lot !
Forum: Plugins
In reply to: [WooCommerce] Cost problem by shipping class@seank123 Thank you very much, your solution works perfectly !
On the other hand, this does not prevent the calculation of Woocomerce from being false. (It is absolutely not normal to add the standard rate + the class rate)
Hope this helps anyone who encounters this issue in the future.
Regards.
Forum: Plugins
In reply to: [WooCommerce] Cost problem by shipping classI make you a screenshot to explain it 🙂
https://i.postimg.cc/L6d2fj1h/Capture-d-e-cran-2023-03-23-a-09-19-39.png
Thanks !
Forum: Plugins
In reply to: [WooCommerce] Cost problem by shipping classHere is the answer of the support : “There isn’t a built-in way to do this via the built-in Flat Rates shipping method, no. The scenario you’re describing would however be very straight-forward to set up via our extension Table Rate Shipping; that’s would I’d recommend for this use case.“
Pfffff so to make Woocommerce work properly you have to buy an extension for $100…
In some cases it is really justified, but in fact Woocommerce calculation of the shipping costs per class is false, or is deliberately distorted to sell paid extensions…
So if anyone has a free solution, I’m interested.
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Line break ?Forum: Plugins
In reply to: [WooCommerce] Save product attributs listAhhaa the solution was Soooooo simple ! “Duplicate”
Thanks a lot Charly !
Forum: Plugins
In reply to: [WooCommerce] Save product attributs listHello Charly,
I’m sorry maybe my explanation is not clear enough…
Attributes are already created and configured,But precisely I have to “select” them for each product I create, and I have many…
I would like the Attributes list display automatically in the product configuration page.Then I just have to enter the values.
I hope to have been more specific about my question 🙂