This topic contains 2 replies, has 2 voices, and was last updated by  oliver303 2 months, 1 week ago.

Ordering for Stores

  • Hi,

    is it possible to change the ordering of the stores from “Name” (ascending) to “Zip-Code”?

    regards
    oliver

    Sofia Moss
    StaffSuper ContributorUser Level

    Hi there,

    Thank you for your inquiry, you can edit ssf-wp-xml.php and search for the following code:

    $query=$wpdb->get_results("SELECT * FROM ".SSF_WP_TABLE." WHERE ssf_wp_store<>'' AND ssf_wp_longitude<>'' AND ssf_wp_longitude!='0' AND ssf_wp_latitude<>'' ORDER BY ssf_wp_store ASC", ARRAY_A);

    and change it to:

    $query=$wpdb->get_results("SELECT * FROM ".SSF_WP_TABLE." WHERE ssf_wp_store<>'' AND ssf_wp_longitude<>'' AND ssf_wp_longitude!='0' AND ssf_wp_latitude<>'' ORDER BY ssf_wp_zip ASC", ARRAY_A);

    Cheers,
    Sofia

    great! works! thx!

The topic ‘Ordering for Stores’ is closed to new replies.