Hi,
You have an example of the Woocomerce frontpage here: https://demo.tagdiv.com/newspaper_tech/shop/
It doesn’t seem possible to replicate this as the tagdiv composer blocks don’t change the content of the page output.
The composer edit screen shows an error warning at the top of the page:
Errors happened during tdcIframeData.init() -> bindViewsModelsWrappers()!
I get the same testing editing of the shop homepage on 2 different servers and a localhost so this seems to be something specific to the shop homepage.
To get around that, I edited a standard page and added an image block to the top to try and replicate the demo, then copied the code from the editor into the page for the shop home. Nothing showed up.
So how do we create a shop homepage like the one that shows on the demo site?
Hello,
Please create a new page and add this content in the back-end in text mode:
https://pastebin.com/2RCe4N7C
You can also use woocommerce shortcodes in the tagdiv composer in a column text element
https://docs.woocommerce.com/document/woocommerce-shortcodes/
As for the mega menu, sorry but it will not be able to show products. It only shows the ‘post’ post type.
Thank you!
There must be a work-around hack for the Mega Menu!
What if we used ‘posts’ about each product, but the urls redirected to the SHOP page, where we only have a limited number of special products?
Could anything like that work? I really need images of the products showing up in the mega-menu, but they could be featured images from posts.
Thanks!
Hi Bogdan,
Regarding the shop frontpage. Are you saying that the actual Woocomerce frontpage can’t be changed and you need to use a page that isn’t set in the woocommerce settings?
If so, would you recommend just redirecting the actual woocommerce homepage to the newly created one?
The Woo breadcrumbs would point to the page set as the shop home in the settings so it sounds like this could cause some other issues.
Hello,
The woocommerce shop page can be set to any at all page you desire. Please read this guide: https://docs.woocommerce.com/document/configuring-woocommerce-settings/
You set the shop page here: https://www.screencast.com/t/dNpNXs5Zfy
You do not have to redirect between pages as woocommerce already allows you to choose the page you want as a shop.
Thank you!
If anyone wants to get Woocomerce product images working with a similar popup to the built-in theme popup you can add the following to you child thems functions file:
add_action( 'after_setup_theme', 'gnn_theme_setup' );
function gnn_theme_setup() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}
Thank you! It would be nice to use the megamenu with woocommerce.
Could you be so kind to give more details as how to use your code?
Are there any variables that must be changed so that it can work?
In the menu page, for one, I cannot find the category, or if I put the page ID of the shop page I see nothing.
Thanks.
-
This reply was modified 8 years by
beppepicaro.
-
This reply was modified 8 years by
beppepicaro.
Hi,
@beppepicaro That code will enable features for the product pages, such as zoom, image slider and modal. It can be entered in theme or child theme functions file, if you want to benefit from those features.
No need to change anything in the code, enter it and it should work.
The woocommerce shop page will show nothing in the mega-menu, when opened it will show content according to your settings
– https://www.screencast.com/t/23jih8QB
This default shop page can be skipped, you can display products in other ways as well. Such as Bogdan mentioned above shortcodes can be used, that is how the demo page was built.
Thanks