Tagged: attributes, Product Grid, woocommerce
-
AuthorPosts
-
March 14, 2021 at 5:41 am #1288068
Hi guys,
On this page, https://www.bebluebijoux.com/nos-histoires/essentiels-test/, I’m using this shortcode in an ALB Code Block:
[products columns="3" order="ASC" paginate="true" attribute="Histoire" terms="Essentiels" tag="Simple,Variable"]
But when doing so, I’m not getting the pagination buttons at the bottom of the WooCommerce product grid. It actually displays all available products (there’s over 50 of them).
So I tried using this this shortcode, by adding the “per_page” argument:
[products columns="3" order="ASC" paginate="true" attribute="Histoire" terms="Essentiels" tag="Simple,Variable" per_page="15"]
The grid is limited to 15 products, but I’m still missing the pagination buttons…
Anybody can help me with this?
FYI, I did try using the ALB Product Grid: it worked, but my problem with the ALB Product Grid is that it doesn’t work with WooCommerce attributes.
Thanks
PhetMarch 14, 2021 at 5:46 am #1288069Other thing I’ve just noticed, while trying to browse the source code, I can’t seem to find the code for the pagination:
<nav class="pagination">
As oppose to this page: https://www.bebluebijoux.com/categorie/bracelets/
March 17, 2021 at 5:31 pm #1288759Bump…
March 18, 2021 at 3:43 am #1288850Hi,
Sorry for the late reply. I’m not sure if that is possible, but the WooCommerce documentation might help you out? https://docs.woocommerce.com/document/woocommerce-shortcodes/
Best regards,
RikardMarch 18, 2021 at 9:45 pm #1289056Hey Rikard,
That WooCommerce post is where I read that I could use this shortcode. If you look at https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-9, you see that:
The [products] shortcode allows you to display products by post ID, SKU, categories, attributes, with support for pagination, random sorting, and product tags, replacing the need for multiples shortcodes…
So technically, it should be working and showing the default woocommerce pagination…
Do you know if there is a way I could edit the code so that Product Grid could be used with Attributs?
March 22, 2021 at 3:37 pm #1289652Should the default WooCommerce functionalities (in this case the pagination) be available or are they limited because of the Enfold’s template files?
March 27, 2021 at 8:47 pm #1290776Hi,
Sorry for the very late reply and thanks for your patience. I believe that this is the solution you are looking for.Best regards,
MikeMarch 29, 2021 at 3:59 pm #1291110Hi Mike,
I’ve looked into the post you’ve mentioned in your last reply.
Unfortunately, that did not work… And also, by applying that snippet, it removed my WOOF widget in the sidebar of all WooCommerce archive pages…
Is there a way to tweak that snippet?
Regards,
PhetMarch 30, 2021 at 11:05 am #1291326Hi,
Unfortunately, I don’t think so without removing the customizations that Enfold requires for the other functions for woocommerce, and I don’t believe that is possible without major issues, you could try this thread but at the end it seemed to cause more issues.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.