WordPress.org

Ready to get started?Download WordPress

Forums

Simple Catch
Woocommerce with Simple-Catch poorly displayed products page (3 posts)

  1. srimmasch
    Member
    Posted 1 year ago #

    I've gone through a couple of shopping carts and have settled on woocommerce. But I can't get the products page to display correctly.

    Woocommerce's instructions for making this work are found here.

    I'm somewhat new to PHP - and can't quite figure out where exactly to put the hooks and find out what input needs to be placed for simple-catch wrapper start.

    The page in question is - http://www.myaccentflooring.com/shop/ It's live, but not finished.

    Any solution would be great. I tried replacing the loop, that didn't let simple catch pull any other content other than the shopping cart - no formatting whatsoever. Just a blank page with the cart.

  2. Catch Themes
    Member
    Theme Author

    Posted 1 year ago #

    @srimmasch: Simple Catch in not woo-commerce ready theme but you can build the child theme and make it compatible easily.

    You can create the child theme and just create two files: style.css and functions.php

    Define child theme is style.css as below:

    /*
    Theme Name: Simple Catch WooCommerce Child
    Theme URI: http://catchthemes.com/themes/simple-catch/
    Description: Simple Catch Child theme to support WooCommerce
    Author: Name
    Author URI: http://catchthemes.com/
    Template: simple-catch
    */
    @import url("../simple-catch/style.css");

    Then add the functions.php to support WooCommerce

    <?php
    /**
     * Adding support for WooCommerce Plugin
     *
     * uses remove_action to remove the WooCommerce Wrapper and add_action to add Simple Catch Wrapper
     *
     */
    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', 'simplecatch_child_woocommerce_start', 15);
    function simplecatch_child_woocommerce_start() {
    	echo '
    	<div id="main" class="layout-978">
    		<div id="content" class="col8 no-margin-left">
    			<div class="page woo-commerce status-publish hentry">';
    }
    
    add_action('woocommerce_after_main_content', 'simplecatch_child_woocommerce_end', 15);
    function simplecatch_child_woocommerce_end() {
    	echo '</div></div>';
    }
    
    add_action('get_footer', 'simplecatch_child_woocommerce_footer_end', 15);
    function simplecatch_child_woocommerce_footer_end() {
    	echo '</div>';
    }
  3. MartinaEL
    Member
    Posted 1 year ago #

    This works fine accept when a person is not logged in and they change the shipping method in the cart then the whole page is rendered again (embedded) underneath the cart??

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic