Tagged: pagination, products, woocommerce
-
AuthorPosts
-
November 18, 2016 at 7:35 pm #714149
Hi there!
I am using pagination for my woocommerce products and have added a “View All” link to the woocommerce’s pagination.php file (floating it right) so that the user/customer can click it and be able to View All products (or View Less), but the link itself doesn’t show up. In fact I don’t think manipulating the pagination.php file is working. I am curious if the reason might be because I am using the Enfold’s Advanced Layout Builder Beta version that you all provided for my Shop Page and not the default shop page by woocommerce. Thoughts?
November 21, 2016 at 8:07 pm #714961Hey Tflores87,
Please refer to Ismael’s post here – https://kriesi.at/support/topic/create-a-show-all-button-in-archive-products-page/#post-711791
Best regards,
YigitNovember 21, 2016 at 8:17 pm #714964Hi Yigit,
Thank you for your response! I followed your instructions from the link, but the code I entered into my functions.php file didn’t work. I wanted to confirm and tried looking it up with the Developer tool with Firefox, but did not see the “Show All” link in there either.
- This reply was modified 8 years, 1 month ago by Tflores87.
November 23, 2016 at 5:12 pm #716062Hi,
Can you please create a temporary admin login and FTP logins and post them here privately?
Best regards,
YigitNovember 23, 2016 at 6:24 pm #716098Sure, thank you for your time, Yigit. I am looking forward to your support!
November 25, 2016 at 4:56 pm #716936Hi!
It did not work correctly because you were using Masonry element to display your products. I adjusted the code and turned it into a shortcode. Please use following shortcode to display “Show all” button
[woo_all_prodsc]
Regards,
YigitNovember 25, 2016 at 9:42 pm #717100Thanks for looking into this, Yigit!
The code you are referring to that you adjusted is in which file? The pagination.php or the child theme functions.php? I want to be sure I place the shortcode in the correct file.
November 25, 2016 at 10:01 pm #717102Hi,
I adjusted the code you added to functions.php :)
Let us know if you have any other questions or issues!Best regards,
YigitNovember 25, 2016 at 10:36 pm #717105Thank you :D
I inserted the shortcode [woo_all_prodsc] into the pagination.php file, but I did not see the “view all” button/link on the shop page :(
November 29, 2016 at 4:01 pm #718307Hi,
You should simply edit your page and insert the shortcode below your masonry element. You can use Text tab of Text Block element or Code Block element to display your shortcode on your page :)
Best regards,
YigitNovember 30, 2016 at 8:45 pm #718964Hi Yigit!
I inserted the shortcode, and the link shows up, but not within the pagination file and it does not open all products :D Thoughts?
December 6, 2016 at 5:09 am #720811Hi,
Please use the do_shortcode function if you want to use the shortcode inside a template.
// https://developer.wordpress.org/reference/functions/do_shortcode/
Best regards,
IsmaelJune 6, 2017 at 7:56 pm #804661Hi, @ismael!
I never got this to work and have been keeping an eye out for other posts having similar issues. I tried using the function code as found here (https://kriesi.at/support/topic/create-a-show-all-button-in-archive-products-page/#post-711791) in my functions file, but it does not place a “Show All” button to the WooCommerce Shop page (“avia_custom_shop_page”). This is the shop page (https://kingsdesigns.com/shop/). Any thoughts?
June 9, 2017 at 9:35 am #805932Hi,
We really cant go further with that.
The best option is to consider hire a freelancer who will help you with any modifications that you require and will help you finish that fast.Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.