• Resolved oakhillman

    (@oakhillman)


    Everything is updated to the latest versions. I’m using the following shortcode in a shortcode block on our homepage.

    [products columns=4 visibility=”featured” orderby=”menu_order”]

    Looking at the Product list in WordPress administration, when we click “Sorting” and drag a product to a new position, it moves to that position just fine in the product list but on the homepage the change doesn’t show up until we either Edit or Quick Edit the product and save it.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @oakhillman

    Product sorting is managed within the products shortcode or by meta:

    https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-11

    That said, you could work with a developer to customize a solution for your website. We recommend one of the services listed on this page who can assist with any custom development work:

    https://woocommerce.com/customizations/

    Best,

    Thread Starter oakhillman

    (@oakhillman)

    I’m fine with the shortcode we’re using, so no need to have a developer do customerization. The reason for the post is to point out what appears to be a problem when using the menu field for sorting. Note that in my shortcode I have the parameter set as follows.

    orderby=”menu_order”

    As I mentioned, when I drag a product to a new position it doesn’t take effect on the website until I manually save the product.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @oakhillman

    when I drag a product to a new position it doesn’t take effect on the website until I manually save the product.

    Can you provide a screenshot of what you’re using to drag and drop? WooCommerce does not have a product placement feature in version 3.5 that allows you to position products in content.

    Thread Starter oakhillman

    (@oakhillman)

    Link to screenshot:

    https://bloomsinbloom.com/wp-content/uploads/2019/03/woo_sorting.jpg

    When I click on the Sorting link I get the ability to drag and drop products around. I can go into edit a product and it looks like the dragging and dropping does change the value in the menu field, but it doesn’t take effect on the website until I save the product, either in full edit or quick edit. It’s almost like there’s another field in the database that’s only updated with a save.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @oakhillman

    Thanks for the clarification. It’s confirmed that menu_order is set in the database, and it is only stored correctly after saving the product. This is the expected result.

    Thread Starter oakhillman

    (@oakhillman)

    Well, if that’s how it works then we’ll deal with it. I will say that it’s probably not all that apparent that it works that way. Took me awhile to figure out that I need to do a save to get it to go live. I wonder if the “Sort” link could toggle to “Save Sort” and when clicked would write the sort changes necessary to go live.

    Anyhow, I appreciate you sticking with me on this. Thanks so much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘sorting using shortcode’ is closed to new replies.