Wanting The Grid to show WooCommerce Products at random

Good morning,

I have ‘the grid’ working well on my WooCommerce / X theme site using the Grid Plugin. However when you first go on the shopping page it displays the order from newest product (at the top) to oldest.

I would like it to display at a random order when first entering the page.

In the Grid settings I have changed the source setting Order to ‘random’ but nothing happens.

Could I have some advice please?

Is it to do with the code put in the woocommerce.php to get it to display? (in child theme):

<?php get_header(); ?>

  <div class="x-container max width offset">
    <div class="<?php x_main_content_class(); ?>" role="main">
	
      
	  <?php woocommerce_content(); ?>

<?php
	
				The_Grid('WooProducts', true); // where true is for template mode
			?>
		
    </div>

    <?php get_sidebar(); ?>

  </div>

<?php get_footer(); ?>

I look forward to your thoughts

Hi,

You can use the grid shortcode to display it in your page.

eg.
https://www.afternynegallery.com/xtheme-test/

Good afternoon Paul and thank you for your suggestion - however that was not my question.

I have the grid working well on all shopping pages (roll over artworks at the top and click any option) but I would like the results to display in a random order. At the moment the products always come up with first published last, last published first

Thank you!
Jason

Hi,

I tried in my test site and I can confirm that the random order of the grid plugin is not working. I will be forwarding this issue to the plugin developers and hopefully they will be able to fix this on their next update.

Thanks

Thank you for this and forwarding the message - in the mean time what could I do?

Anything in the php I could do to set it at random?

Hi There,

Unfortunately we cannot provide custom code for our Addons Plugin.

I understand the plugin that comes bundled with the theme is not working as expected and we will inform the plugin developer about it, core files customization of the plugin would fall off the scope of our support.

Thanks for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.