Single Product as Home Page

I set up a layout for Woocommerce single product pages. It looks great when I look at the page itself. But I’d really like the product page to be the front page of the site. So, I created a page and in cornerstone, I used the Raw Content element to show the product page using this shortcode:

[product_page id=“37”]

The page successfully embeds the product, but it ignores the layout and also ignores the cornerstone content in the description of the product. I did go into the layout settings and added the specific page to the list of conditions.

Is there a way for me to accomplish what I’m after? What am I missing here?

Product page: https://groovy.brooksberdanltd.com/product/tm-8-super-record-cleaning-solution/
Page with product embedded in it: http://groovy.brooksberdanltd.com/home-page-single-product/

The other thought I had was to simply forward the front page to the product page. That’s an acceptable solution for me, but the forwarder makes it so I can’t edit the header and footer of the site.

Hi @gavn8r,

Thanks for reaching out.
Unfortunately, the WordPress does not allow you to set a Single Product as the Home Page. I would suggest you create a page with the Query Builder of the Looper Provider and select the specific Product to show into the page and set that specific page as a Home Page. On the other hand redirect options is also an alternative solution to it.

Thanks

Thank you for pointing me in the right direction, @tristup. I’ve created a new front page and have implemented the looper provider and consumer on the columns where the dynamic content should be coming from. The problem I have now is that, while the product image, product name, short description, and add to cart form are working just fine, the product long description isn’t showing up. Also, if I try to put in the product gallery instead of the product image, it shows as blank. Any thoughts on what I’m doing wrong?

Here’s the new page: http://groovy.brooksberdanltd.com/

Hey @gavn8r,

The Product long description is working fine when the users logged in but when logged out it is not showing anything on the frontend. Do you have any 3rd party cache or CDN installed on your website? It seems that the data is not correctly rendered on the front end. That being said, I suggest that you disable all 3rd party cache, and also it could be one of your plugins that is causing the issue. Please check this troubleshooting procedure.

Hope that helps and let us know how it goes.

Hi @marc_a. Thank you so much for your help! Yes, the long description appears to have been a caching issue. I logged in and re-enabled all of the plugins and it’s working just fine. Now I just need to solve the product gallery issue. Can you tell me why when I put a Woocommerce Product Gallery inside the column with the looper it doesn’t show the gallery? It just shows a white empty area that has an active hyperlinl. When you click it, it opens a new tab with the featured image in it.

Thanks again for your help!

Hi @gavn8r,

The Product Gallery element works with the Single Product layout and does not have the option to specify the Product ID in it, and that is why it shows blank. You can use some shortcodes which may help you with this.

Thanks

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