Tagged: woocommerce
- This topic has 6 replies, 2 voices, and was last updated 8 years, 3 months ago by Mahesh.
-
AuthorPosts
-
July 27, 2016 at 5:59 pm #96120HenriëtParticipant
Hi,
I’m using Gridalicious Pro and am in the process of integrating Woocommerce. Both theme and plugin are the latest versions.
This theme is not yet compatible with Woocommerce (although according to this post here: https://catchthemes.com/support-forum/topic/woocommerce-integration/#post-58285
the implementation was supposed to go live over a year ago.
Any clue when it will really go live? I hope soon as that’ll solve my problems! 🙂WooCommerce provided the coding to add to the functions.php (for me the one of the child-theme I’m using). Reference:
https://docs.woocommerce.com/document/third-party-custom-theme-compatibility/I’d like to use the method using hooks, and it tells me to check the page.php of my theme for the correct markup. Found the page.php, but unfortuntaly, I really can’t figure out what the exact coding should be.
Page.php in Gridalicious Pro is:
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other ‘pages’ on your WordPress site will use a
* different template.
*
* @package Catch Themes
* @subpackage Gridalicious
* @since Gridalicious 1.0
*/get_header(); ?>
<main id=”main” class=”site-main” role=”main”>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, ‘page’ ); ?>
<?php
/**
* gridalicious_comment_section hook
*
* @hooked gridalicious_get_comment_section – 10
*/
do_action( ‘gridalicious_comment_section’ );
?><?php endwhile; // end of the loop. ?>
</main><!– #main –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>Hook code to use, according to Woocommerce, is this:
remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_output_content_wrapper’, 10);
remove_action( ‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10);add_action(‘woocommerce_before_main_content’, ‘my_theme_wrapper_start’, 10);
add_action(‘woocommerce_after_main_content’, ‘my_theme_wrapper_end’, 10);function my_theme_wrapper_start() {
echo ‘<section id=”main”>’;
}function my_theme_wrapper_end() {
echo ‘</section>’;
}This should make the woocommerce pages use the layout etc. of the theme used.
I understand that the part “my_theme” in the code should probably be replaced by “gridalicious” (not totally certain though), but even then it’s still only part of the coding apparently and for the life of me I can’t figure what the full code should be. I’ve tried a few things (least of all adding of course <?php en ?> tags), but nothing appears to work and I really don’t want to break anything!
So my question is:
What exactly do I put in the functions.php om my (child) theme so Woocommerce will be integrated flawlessly into the Gridalicious theme?thanks for your help!
Henriët
July 28, 2016 at 10:04 am #96158MaheshParticipant@gmg-jet: One theme is still to be made WooCommerce ready, and it is Gridalicious Pro itself. What are the odds. Sorry for that, the task has been put to high priority and our team is already into it. As soon as its done, we will release the update which will indeed be WooCommerce ready. We’ll let you know as we release it. Thank you for your patience.
Regards,
MaheshJuly 28, 2016 at 12:28 pm #96172HenriëtParticipantHello Mahesh,
Thank you for your reply! That’s just my luck of course 😀
Assuming that the work will not be ready in the next week or two: is it possible to let me know what exact code I could put in my theme’s function.php? See my opening post & links there to Woocommerce docs as to what I mean.
It’ll be a workaround till you’ve been able to finish the update for compatability, but at least I’ll be able to go live with my site. Can hardly publish a site that’s still at odds and ends, can I now :).
Could you perhaps tell me as well, about when this highly-needed update can be expected?
Thanks very much again! Regards,
HenriëtJuly 28, 2016 at 3:12 pm #96182MaheshParticipant@gmg-jet: The update will be available within 24 or 48 hours. So I recommend you to have patience till then.
Regards,
MaheshJuly 29, 2016 at 9:51 am #96227MaheshParticipant@gmg-jet:
Hi Henriët,Just to let you know that, the latest version 3.2.1 of Gridalicious Pro is released and is now available. The theme has been made WooCommerce ready. Please download the latest version and update the theme.
Regards,
MaheshJuly 29, 2016 at 12:56 pm #96236HenriëtParticipantHi Mahesh,
That is just awesome 😀 Thank you very much for this!
Went to check and see it’s already available in my WordPress dashboard too, so I can get started right away. I’m very happy and hope everything’ll work fine now, haha. Thanks ^^Regards,
HenriëtJuly 29, 2016 at 4:43 pm #96247 -
AuthorPosts
- The topic ‘integrating WooCommerce’ is closed to new replies.