Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #1171439

    Hey 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,
    Ismael

    #1171577

    Hi 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.

    #1171706

    Hi,

    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,
    Ismael

    #1172037

    Thank 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!

    #1172403

    Hi 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,
    Nikko

    #1172451

    You’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!

    #1172467

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘SKU field missing under Product Data’ is closed to new replies.