-
AuthorPosts
-
September 19, 2017 at 10:19 am #853778
Hello,
Can you tell me how can I hide woocommerce SKU from product page? But that I can see in background and in order mails.
Thank you
September 19, 2017 at 10:59 am #853788Morning,
You can use the following to hide SKUs on a product page but keep them in the admin panel
function tj_remove_product_page_sku( $enabled ) { if ( ! is_admin() && is_product() ) { return false; } return $enabled; } add_filter( 'wc_product_sku_enabled', 'tj_remove_product_page_sku' );Code should be placed in your theme / child functons.php
Hope that helps
TJ
September 19, 2017 at 1:19 pm #853827Hello,
It is not help , It is crash site.September 19, 2017 at 1:55 pm #853845Ah that is not good.
Crashed as in site now wont load? can you post a link to site here?
Can you access the ftp to remove the code from the functions.php?
If you are unsure how to proceed leave your ftp / login details in the private content field below and an admin from here will be able to log in and help.
Thanks
TJ
September 20, 2017 at 9:10 am #854253Hi Zaccc,
If you should need help in getting your site back online then please post FTP details in private.
Thanks for helping out TJ :-)
Best regards,
RikardSeptember 20, 2017 at 9:36 am #854261Hello,
I have return all back . I just need help with SKU.
Regards
September 20, 2017 at 5:20 pm #854479Hi,
Add this to quick css:
.sku_wrapper{ display:none!important; }Best regards,
Jordan ShannonSeptember 21, 2017 at 2:36 pm #854878Thank you ! It is working.
Regards
September 21, 2017 at 5:45 pm #854978Hi,
No problem. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Hide SKU’ is closed to new replies.
