Support » Plugin: WP Shopify » how can I customise the order of the products?

  • Resolved Mediavita

    (@mediavita)


    I need to customise the order of the products, I tried using the shortcode but that only lets me go by
    title (default)
    vendor
    id
    price
    best_selling
    product_type
    created_at
    updated_at
    Is there anyway I can customise based on my own choice?

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @mediavita

    Hey there! As you mentioned, you can only sort the [wps_products] shortcode by the values you listed. You can see them here as well: https://docs.wpshop.io/#/shortcodes/wps_products?id=sort_by

    However there is still a way to do this, but you’ll need to use collections instead.

    First you’ll need to create a collection within Shopify, and assign the products you want to show with WP Shopify. Then, set the collections sort order to “manual”.

    Finally, you’ll then use the [wps_collections] shortcode instead of [wps_products]. Something like this:

    [wps_collections title="Your Collection Title" products_sort_by="manual" singl="true", excludes="image, title, description"]

    You’ll need to change the “Your Collection Title” to the name you give the collection.

    Let me know if this works!

    Hi Andrew

    I have added the shortcode and followed all your guides, but no products seem to show on the page?

    Are you able to advise any further

    Lee

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @mediavita

    Sure! Can you post the shortcode you’re using as well as a link to the page?

    cool, thank you:

    http://tonithorntonart-com.stormpr.uk/new-collection/

    [wps_collections title=”home” products_sort_by=”manual” singl=”true”, excludes=”image, title, description”]

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @mediavita

    Looks like you have a typo in single=”true”. Try this:

    [wps_collections title="home" products_sort_by="manual" single="true" excludes="image, title, description"]

    ok the products are showing but the order seems Wong, back to front and the descriptions and buttons are showing?

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @mediavita

    Are you saying the order is reversed? If so, try adding the reverse attribute like this:

    products_reverse="true"

    Also, you can hide the descriptions and buttons like this:

    products_excludes="description, buy-button"

    so this is the current shortcode:

    [wps_collections title=”home” products_sort_by=”manual” products_reverse=”true” single=”true” excludes=”image, title, description” products_excludes=”description, buy-button”]

    but “home again should be the first product on the page current its last and you have to click view more to see it purple has should then be second but is second last and so on

    sorry to be a pain, just wondered if you saw the last message

    hi any further news on this as desperate to launch my site

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @mediavita

    I think what might be happening is the sort order is only applying to current “page” of items. Try adjusting the page_size attribute to ensure you don’t have more than one page. Add this to your shortcode:

    page_size="50"

    doesn’t seem to work still 🙁

    this is my shortcode:

    [wps_collections title=”home” products_sort_by=”manual” page_size=”50″ reverse=”false” single=”true” excludes=”image, title, description, pricing” products_excludes=”description, buy-button, pricing”]

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    @mediavita

    Ok, would you mind if I logged into your site to try a few things? You can email me credentials here: hello@wpshop.io

    ive just emailed you. your help is much appriciated

    Plugin Author andrewmrobbins

    (@andrewmrobbins)

    Fixed via email.

Viewing 15 replies - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.