jQuery(function($){ $(document).on('change', 'input[name="shipping_method[0]"]', function() { console.log("changed"); var selectedShippingMethod = $(this).val(); var targetShippingMethod = 'flat_rate:7'; // Replace this with your specific shipping method ID if(selectedShippingMethod === targetShippingMethod) { // Example: Append a string to the order total container $('.order-total .amount').append(' + T'); } else { // Remove the appended string if it exists and the condition no longer matches // You might need to adjust how you remove or revert the change based on your implementation } }); });

1–24 termék, összesen 419 db