chris37
Well-Known Member
Even if you change that file to stop it being displayed on the product page, it is being preset by the default you are selecting on the product page, so it will still be listed as an attribute/option against the product in the cart, checkout, order details pages and the order confirmation email.
The better option is to disable the attribute from being used for variations, and accept that you need to manually click 'China' when placing the order with the supplier through WooCommerce. It still adds the product to the order automatically, you just need to tell it which country option you want. That way it's completely invisible to the customer, which I assume is what you're trying to achieve.
As far as I'm aware that's the only way to completely stop it from being visible, without adding a load of custom code.
You are right.
is always is gonna show in the confirmation email....but the order is already made....
For this reason even if I hide it from display in the products pages I change and the name to nearest warehouse...
The custome don't need so many information before it buy the products.
But when already place the other, you show them in the confirmation email and some extra information(like the ship from nearest warehouse).
I don't believe customer is gonna care.