Dev jr
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Square] Plugin Bringing back the deleted products after syncForum: Plugins
In reply to: [WooCommerce Square] Square sync taking hours….!Approximately how many products you are syncing ?
220 products approxWhether this is the first full sync or a regular update?
Regular updateIf you see any errors under WooCommerce, Status, Logs?
No errors, just square job in pending in scheduled acionsSystem Report:
https://quickforget.com/s/1a6d282d3e85a38e6fe60024b3c3b627eaf6c2ae2f43fcd7This is how i achieve it.
add_filter(‘woocommerce_package_rates’, ‘custom_filter_shipping_methods_above_200_with_fallback’, 10, 2);
function custom_filter_shipping_methods_above_200_with_fallback($rates, $package) {
if (is_admin() && !defined(‘DOING_AJAX’)) {
return $rates;
}$cart_subtotal = WC()->cart->get_subtotal();
// If cart subtotal is over $200
if ($cart_subtotal > 200) {
$has_ups_ground = false;foreach ($rates as $rate_id => $rate) {
if (strpos($rate_id, ‘flexible_shipping_ups:12:03’) !== false) {
// UPS Ground found, modify it
$has_ups_ground = true;
$rates[$rate_id]->label = ‘UPS Ground: ‘ . wc_price(0);
$rates[$rate_id]->cost = 0;
$rates[$rate_id]->taxes = [];
}
}// If UPS Ground exists, remove all other shipping methods
if ($has_ups_ground) {
foreach ($rates as $rate_id => $rate) {
if (strpos($rate_id, ‘flexible_shipping_ups:12:03’) === false) {
unset($rates[$rate_id]);
}
}
}
// else: no removal, all methods stay (fallback)
}return $rates;
}add_action(‘wp_footer’, ‘custom_force_shipping_reload_js’);
function custom_force_shipping_reload_js() {
if (is_cart()) : ?>
<script>
jQuery(function() {
jQuery(document.body).on(‘updated_cart_totals’, function() {
jQuery(document.body).trigger(‘update_checkout’);
});
});
</script>
<?php endif;
}Pls let me know, what should i do now?
Hello, thank you for the response!
I’ve already tried both the Client Credentials and Authorization Code methods, but the error still persists.Thank you for your response, i already fixed it but still thank you for letting me know.
Ahh i see thanks
I am already using these settings, but they do not fix the issue.
when I refresh the page it comes back to select language instead it should be showing the active one! any suggestions?
thank you for suggesting the html[dir=”rtl”] I added it on change of option value with js and used CSS after that so thank you. i want to know can I hide the select language option? i just want to show the active language only!
no need i fixed the issue with the js and CSS like you suggested!
which package I need to buy min?
i am using free plan