Site logo

[Support request] woocommerce shortcode pagination not working

Home Forums Support [Support request] woocommerce shortcode pagination not working

Home Forums Support woocommerce shortcode pagination not working

  • This topic has 5 replies, 3 voices, and was last updated 5 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1769931
    johnaps

    Hello!

    I am using this shortcode [products on_sale=”true” limit=”-1″ paginate=”true”]
    and i cant get the pagination to work!! Do you have any idea as to why?

    Thank you in advance!

    #1770519
    David
    Staff
    Customer Support

    Hi there,

    to the best of my knowledge the Pagination attribute only applies if the shortcode is being used in a Shop ( product archive ) not a static page. In a page setting, Shortcodes are only used for displaying static content.

    You would need to look for a plugin or custom development to add that capability.

    #1770974
    johnaps

    Ηello David!!
    Thank you very much for the info!
    I created a new product category and added a product in it… after that i created and element with gp and inserted the above shortcode that i sent you while enabling execute shortcode option in it…
    I tried different hook positions like generate_after_archive_title, generate_after_archive_description… but i got nothing, as if the shortcode wasnt even being loaded….
    I tried all this based on your suggestion that the pagination would work on product categories but it didnt even get loaded…
    Maybe you have any more suggestions i could try for this situation?
    Thank you very much David!

    #1771965
    Elvin
    Staff
    Customer Support

    Hi there,

    You can make a pagination of your own with this:
    https://docs.woocommerce.com/document/woo_pagination/

    It basically revolves around woo_pagination() and its parameters.

    #1772062
    johnaps

    So how would i use this in conjuction with onsale shortcode?

    When i inserted the onsale shortcode in product categories as David suggested, i got no loading of the shortcode…
    Where and how should i use onsale shortcode & woo_pagination()?

    #1772242
    David
    Staff
    Customer Support

    Well here we go – add this shortcode to you a static page:

    [sale_products per_page="2" paginate="true"]

    You may need to Regenerate the lookup tables in Woocommerce > Status > Tools

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.