Single Product Page, Order of Variation Swatches

Solved7 replies3 participantsUpdated by Tony Rodriguez

  • Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Hello,

    We are trying to find the option that controls the order of variation swatches on the single product page.
    Dragging and dropping variations into the desired order seems to have no effect.
    They automatically self-order alphabetically, rather than manual custom order.

    Thank You

    7 Answers

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Enduratex,

    The order of variation swatches on the single product page is determined by the order of product attributes. To adjust this, please navigate to Products > Attributes, select the attribute in question, and reorder its terms by dragging them into the desired sequence. Once saved, this order will be reflected in the variation swatches on the product page.

    If you have already reordered the terms and the issue persists, please clear your site and browser cache, then check again. Should the problem continue, kindly provide us with temporary admin access so we can investigate further.

    Best Regards,
    8Theme’s Team

    Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Hello, and thank you for the reply.
    But, yes… These were the 1st things that occurred to me as well.
    And I have already done all of that, double & triple verified testing.
    The variation swatches always appear in alphabetical order.

    I am providing login credentials below:

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Could you please provide temporary FTP access? We will check what can be done to help you.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best Regards,
    8Theme’s Team

    Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Attached.
    Thank You

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Enduratex,

    We have made the necessary changes by modifying the following file:
    wp-content/plugins/et-core-plugin/packages/st-woo-swatches/public/partials/class-st-woo-single-variable-product.php

    Unfortunately, we cannot set this type of sorting as the default option, as it would affect our other customers. Therefore, we have added the following code to the functions.php file of your child theme.

    // Sort taxonomy terms by variation rows order from product editor.
    add_filter( 'sort_terms_by_product_editor_order', '__return_true', 4, 10 );

    Best regards,
    8Theme Team

    Avatar: enduratex@gmail.com
    Enduratex
    Participant

    Thanks for the support! My topic “Single Product Page, Order of Variation 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, Order of Variation Swatches’' has been successfully resolved, and the topic is now closed for further responses