• Resolved Luca

    (@screenload)


    Hey guys,

    I’m synchronizing a few hundred products from our companys catalog with our online shop via PHP. The only thing thats missing is the custom menu order, is it possible to set this via PHP?

    I know there is already an option build in in the UI but I have no idea how to target that via PHP…

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @screenload It really depends on what you are working with, to be honest. If you are working with each product as a product object you can use set_menu_order on the object. If you are doing this in bulk, it works the same way as posts, since products are just custom post types. The menu_order is part of the post itself, so you can modify the post itself via db calls, as well.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Set product menu order via PHP’ is closed to new replies.