Search Custom Field or Truncated SKU - by gtstyling

This topic has 4 replies, 3 voices, and was last updated 4 years, 3 months ago ago by Olga Barlow

  • Avatar: gtstyling
    gtstyling
    Participant
    November 11, 2019 at 09:51

    Hello,
    I am looking for a way to search for our part number shown below. We are required to use a duplicate PARTID for our inventory due to the type of product we sell. I have created a UNIQUESKU which is the part number + an arbitrary check digit that is unique to each product listed. Since woocommerce can only use one unique sku this was the only alternative I could come up with. My issue is customers want to search our website using the published PARTID, the UNIQUESKU is only internal and does not match published information. Is there a way to add a custom field PARTID somewhere that can be searched using your search function without adding a 3rd party plug in? I would need it to produce the results as well as be able to find all instances of the PARTID in the woocommrece product database.

    My other thought was to truncate the SKU display on the front end of the website to hide everything after the ” – ” [dash] since the characters after the dash are only for woocommrece product database.

    Woocommerce 3.7.1
    Word Press 5.2.4
    WooPress 6.0.1

    PARTID UNIQUESKU
    40109 : 40109-6
    40109 : 40109-11
    40109 : 40109-16
    40109 : 40109-21

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 11, 2019 at 16:47

    Hello,

    Thanks for using our theme.
    Please provide some screenshots to help me better understand your request.
    You can use Lightshot Screenshot tool https://app.prntscr.com/en/index.html and provide the link to screenshot here.
    Also, provide URL of a product with such SKU on your site.

    Regards

    Avatar: gtstyling
    gtstyling
    Participant
    December 23, 2019 at 07:51

    Hello, below is the screen shot of the item page showing product SKU: GT0165Y-SKU4177
    The actual SKU is GT0165Y
    However due to wordpress uniuque SKU requirement we have made a custom SKU to add the additional “-SKU4177” to the end of each SKU. Is there a way with CSS or any method to HIDE all characters AFTER the “-” in the SKU field on the item page and on the customer invoice?

    https://paste.pics/e6b499ff1030ea80230c10e17dddf984

    Also there are some areas of the website where the buttons appear on hover to be RED
    as shown below. I cant figure out where to change this to match our other buttons.

    https://paste.pics/ab05d9b10edc081dbb7c089ef114ee6c

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 23, 2019 at 08:53

    Hello,

    1) There is no option to hide that part. You may submit an additional customization request to WPKraken team. Maybe they will be able to help you with this because our support provides assistance only with existing options, additional customization outside the scope of our support.

    2) Fixed. Let me know if you found any other buttons that have an incorrect color with the default state or hover.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Search Custom Field or Truncated SKU’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.