Is there is any way to remove Completed orders Shipping fee and details like item name and shipping cost..
I will attach a image here
Related
I found this [this code]provides a short description in woocommerce cart for specified products. How can I alter it to show set text in the same place for certain product categories? I also need it to show in the woocommerce order receipt and completed order emails.
For example all products with the Category - Digital License need to have the set text Annual Digital License next to the product title in the cart and order emails.
I tried to alter the linked code but don't know how to add the set text to display for these categories
How do I Remove Shipping Charges from Cart when Cash on Delivery (COD) is selected and Add Shipping Charges to Cart if Stripe (Credit Card) is selected in woocommerce?
For Example, shipping to Canada costs $4.
If Cash on delivery (COD) is selected in payment options, I want to offer "free shipping" and remove shipping section from the cart but if credit cart payment option is selected in payment gateway by the buyer I want to add those shipping charges based on shipping rates set in shipping classes.
There is a very simple way:
Go in WooCommerce Settings > Checkout > Cash on delivery.
Add Free Shipping in "Enable for shipping methods" option field:
Now Free shipping will be enabled when Cash on delivery is selected.
I have a plugin that is calculating the shipping cost and it will add the shipping cost on the order view (checkout page).
When the customer select the shipping method, then the total cost will be updated. And I want to display the total shipping cost on the order view.
I want to display the shipping cost on the delivery charge row. Have any idea to get the shipping cost?
Thanks a lot.
Solution:
To get the total shipping cost:
$total_shipping = WC()->cart->shipping_total;
You need to Enable shipping methods from the backend woocommerce setting
Woocommerce->Setting
Shipping tab
Add your shipping classes
My shipping fields are deactivated at checkout because I'm using a payment gateway that asks for shipping data so I do this to avoid asking for the same shipping data twice.
I would like to SHOW the shipping fields on the order-pay page which comes right after the checkout only IF the payment gateway selected was Cash On Delivery (COD)
How would I go about doing this?
Thanks!
I have created a variation in woo commerce product. Currently my product have 3 variations with different prices. So I want that On the shop page when I select variation and click on add to cart button always add first variation price on cart not selected variation price.