Tagged: SKU
-
AuthorPosts
-
January 7, 2020 at 11:13 pm #1171273
Hi there!
I have narrowed down an issue with a missing SKU field under Product Data to the Enfold theme (by deactivating plugins, activating other themes, etc).
I was hoping you could help figure it out since I’m on the latest version and everything! Links in private content below.
January 8, 2020 at 2:01 pm #1171439Hey kellyCraftMedia,
Thank you for the inquiry.
Where can we see the issue? Are you referring to the actual SKU field in the product editor? The theme doesn’t really have any function or feature that would remove that field, so it’s probably an issue with another plugin or script. Have you tried to temporarily deactivate the third party extensions of the shop plugin?
Best regards,
IsmaelJanuary 8, 2020 at 8:07 pm #1171577Hi Ismael,
Yes as I mentioned, I’ve done all the testing by deactivating plugins and the issue was still there. Reactivated plugins and activated the Twenty Nineteen theme, and the issue was resolved. This is why I’ve narrowed it down to the Enfold theme – with all plugins activated and Child theme activated, it doesn’t work. When all plugins are activated and basic theme activated, it works.
January 9, 2020 at 8:20 am #1171706Hi,
Thank you for the update.
There are a bunch of parent Enfold theme with the same version in your installation, so we are not really sure which one to edit. Please remove the other copies of the theme that are not in use.
For the meantime, try to edit the enfold\config-woocommerce\admin-options.php file and remove these filters.
add_filter('woocommerce_general_settings','avia_woocommerce_general_settings_filter'); add_filter('woocommerce_page_settings','avia_woocommerce_general_settings_filter'); add_filter('woocommerce_catalog_settings','avia_woocommerce_general_settings_filter'); add_filter('woocommerce_inventory_settings','avia_woocommerce_general_settings_filter'); add_filter('woocommerce_shipping_settings','avia_woocommerce_general_settings_filter'); add_filter('woocommerce_tax_settings','avia_woocommerce_general_settings_filter'); add_filter('woocommerce_product_settings','avia_woocommerce_general_settings_filter');
Let us know if it changes anything.
Best regards,
IsmaelJanuary 10, 2020 at 1:53 am #1172037Thank you for looking into everything! I am not sure why there’s so many “copies” of the theme on there – I’m looking into that right now.
As I was digging around I noticed that the Enfold theme, instead of the Child theme, worked just fine – so I narrowed down the problem to my functions.php file, and then found this script:
add_filter( 'wc_product_sku_enabled', '__return_false' );
That was a script I’d added a long, long time ago in order to hide the SKU from showing on a product page (so the customer didn’t see it) but for some reason has now started hiding the SKU for admins as well! Do you have a good fix to hide that SKU on the product page that won’t interfere with our admin fields?
Thank so much!
January 11, 2020 at 4:36 pm #1172403Hi kellyCraftMedia,
I checked for the SKU on your product page but I could not see any SKU visibly showing.
An example of a product page I checked is in private content.
If there are pages that show the SKU, just point us to it so we can give you some CSS code that should hide it.Best regards,
NikkoJanuary 11, 2020 at 9:06 pm #1172451You’re right! I assumed that if I removed that code, the SKU would appear back. but it didn’t!
Thank you we can close this ticket!
January 11, 2020 at 11:37 pm #1172467Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘SKU field missing under Product Data’ is closed to new replies.