Single Product Page: Change SKU when Clicking Swatches

Solved4 replies3 participantsUpdated by Tony Rodriguez

  • Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Hello,

    Please see this single product page using your Variation Swatches feature.
    https://enduratex.site/product/alchemy/

    On the left side, just under the current swatch image, you can see SKU & Categories.

    The client has asked that, when they are clicking through variations if we could in some way either:
    A) Change the SKU to reflect the current variation, or…
    B) At least add logic to display the currently clicked / selected variation swatch SKU somewhere below the main product SKU.

    I could not find any clear & evident options in the Elementor Single Product template editor.

    Can you please advise if:
    * Is there an element we can add to the single product template that I have not found yet?
    * Is there any jQuery logic I can add for this purpose?

    Thank you in advance…

    4 Answers

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Enduratex,

    Yes, it is possible. To achieve this, you need to set an SKU for each variation separately. When the variation changes, the SKU will also update accordingly.

    Best regards,
    8Theme Team

    Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Hi,

    Yes, OK – so we actually DO have a SKU set for every variation.
    And oddly enough, it was not working before, but now… it DOES appear to be working exactly as you describe.

    So… I will just close this ticket and say thank you.

    Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Thanks for the support! My topic “Single Product Page: Change SKU when Clicking Swatches” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear Enduratex,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

The issue related to '‘Single Product Page: Change SKU when Clicking Swatches’' has been successfully resolved, and the topic is now closed for further responses