[Resolved] WooCommerce Archive Pages – Show SKU

Home Forums Support [Resolved] WooCommerce Archive Pages – Show SKU

Home Forums Support WooCommerce Archive Pages – Show SKU

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #620064
    David
    Staff
    Customer Support

    That’s great to hear, and yes a great suggestion 🙂

    Do you mean the title in the table which says Product?
    If you mean the SKU: then you can edit this line:

    return $sku ? $title . sprintf(" (SKU: %s)", $sku) : $title; and change the SKU: within the brackets so it would read (Part No. %s)

    #620078
    Steve

    Thanks that did the job.
    Might be nice to include that code in the docs as well as its a neat way to get the Part No. into the cart and therefore print a listing.

    One final thing is there a way to remove the SKU title and number from below the rule leaving just the Categories and Tags.

    #620104
    David
    Staff
    Customer Support

    On the single product page?
    Might be simplest with some CSS:

    .woocommerce .product_meta .sku_wrapper {
        display: none;
    }
    #620111
    Steve

    Hi David

    Job done. Site now refers to Part No’s instead of SKU

    Many thanks

    Steve

    #620113
    David
    Staff
    Customer Support

    You’re very welcome Steve, glad to be of help.

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.