Support » Plugins and Hacks » WooCommerce Products Per Page » Shortcode or Widget call

  • Resolved wp-host

    (@kp152252)


    Hi, can this plugin be called with shortcode or widget ? I have big problems with theme and that would be great solution.

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeroen Sormani

    (@sormano)


    Hi,

    The plugin currently doesn’t work with shortcodes or widgets as it only works with the actual shop page.

    It could be possible with some custom code, through I can’t say how it would work with the custom positioning etc.

    Cheers,
    Jeroen

    wp-host

    (@kp152252)


    Ok, can you point me to some code to try.?
    I can call it from file that loads shop and side widgets … some code to call it or check it how it is called now from woocommerce ?

    Thanks,
    Matjaž

    Plugin Author Jeroen Sormani

    (@sormano)


    Hi Matjaž,

    You can take a look at this method: https://github.com/JeroenSormani/WooCommerce-Products-Per-Page/blob/master/includes/class-wppp-front-end.php#L60

    Thats the one that is showing the dropdown.

    Cheers,
    Jeroen

    Jeroen, thanks this is helpful.

    But if I call just this function I get error … is there a way I call your plugin from function php like products_per_page_dropdown() from where i want ?

    Where is your plugin called from woocommerce.php ? I need to relocate it. Function call would do just great 😉

    Thanks again,
    Matjaž

    Plugin Author Jeroen Sormani

    (@sormano)


    Hi,

    It is possible to call it, I believe there’s a code snippet on the forums somewhere, you’d need to call the method properly from the class instance.

    The dropdowns are added from the main file to WooCommerce.

    Cheers,
    Jeroen

    Thanks, but this looks a little over my head 🙁

    If you feel the challenge to do this please let me know I will be more than happy 🙂
    Matjaž

    Plugin Author Jeroen Sormani

    (@sormano)


    Hi Matjaž,

    I understand,, I’d recommend contacting your web-developer for help with customizations like this, unfortunately I can’t offer customizations like this for free 😉

    Have a great day!
    Jeroen Sormani

    No problem, I’d rather get it from you 🙂
    What would be the cost and where to send it ?

    Matjaž

    Plugin Author Jeroen Sormani

    (@sormano)


    Hi,

    Can you please reach out to me via my site here: jeroensormani.com/hire-me

    Thank you,
    Jeroen Sormani

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