WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Possible to change the displayed"SKU (5 posts)

  1. mbraasch
    Member
    Posted 2 years ago #

    Messed up the title but couldnt change it.

    I would like to change the displayed SKUto Part #. I found its location within class-wc-product.php but when I change this it doesnt change on the visual page.

    Site is under construction:
    http://www.trzmotorsports.com/wordpress

    I'm not a real tech guy, but this is one of the only parts that have stumped me so far.
    Any help would be great, thanks in advance

    http://wordpress.org/extend/plugins/woocommerce/

  2. ryansales
    Member
    Posted 2 years ago #

    You changed the following line:

    'sku' => __( 'SKU:', 'woocommerce' ) . ' ' . $variation->get_sku(),

    to

    'sku' => __( 'Part #:', 'woocommerce' ) . ' ' . $variation->get_sku(),

    Then make sure you dump your browser cache, your wordpress cache if you are running one, and any other caches (such as Cloudflare).

  3. mbraasch
    Member
    Posted 2 years ago #

    That's what I thought would do it, but it does not change it. It's the only file I could find with "SKU:" but there must be something else.

    I dont know how to clear the wordpress cache. Does woocommerce using caching? That could be a problem I suppose. I have cleared the browser cache. Thanks

  4. ryansales
    Member
    Posted 2 years ago #

    Clear transients?

  5. mbraasch
    Member
    Posted 2 years ago #

    I have no idea what "clear transients" are.
    I could only find one file previously in the woocommerce plugin editor. I just realized that each file you click on the right, when opened, also displays other files which werent on the original files list.
    I found the file which needed to be modified (meta.php)as you said in the directory:

    woocommerce/templates/single-product/meta.php

    Thanks! This file also allowed me to remove the category listing that kept showing up after the SKU field

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags