Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Frank2k

    (@frank2k)

    I have tried a couple of things but i dont get the result i want.

    I want a the homepage as a single product page.
    Product ID is 355.

    in the post above is the code from single-product.php

    Maybe someone can help me ?

    Thread Starter Frank2k

    (@frank2k)

    I use [product_page id="productid"]

    That code dont show the add to cart + Price.

    i am gonna try to edit the home.php

    my single-product.php from my theme have the following code:

    <?php
    /**
     * The Template for displaying all single products.
     *
     * Override this template by copying it to yourtheme/woocommerce/single-product.php
     *
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     1.6.4
     */ 
    
    remove_action( 'woocommerce_before_main_content', 'yit_shop_page_meta' );
    add_action( 'yit_before_content', 'yit_shop_page_meta' ); 
    
    get_header('shop');
    
    wp_enqueue_script( 'jquery-elastislider' );
    wp_enqueue_script( 'jquery-tipTip' ); ?>
    
        	<?php
        		/**
        		 * woocommerce_before_main_content hook
        		 *
        		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
        		 * @hooked woocommerce_breadcrumb - 20
        		 */
        		do_action('woocommerce_before_main_content');
        	?>
    
            <div itemscope itemtype="http://schema.org/Product" id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
        		<?php while ( have_posts() ) : the_post(); ?>
    
        			<?php woocommerce_get_template_part( 'content', 'single-product' ); ?>
    
        		<?php endwhile; // end of the loop. ?>
            </div><!-- #product-<?php the_ID(); ?> -->
    
        	<?php
        		/**
        		 * woocommerce_after_main_content hook
        		 *
        		 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
        		 */
        		do_action('woocommerce_after_main_content');
        	?>
    
        	<?php
        		/**
        		 * woocommerce_sidebar hook
        		 *
        		 * @hooked woocommerce_get_sidebar - 10
        		 */
        		do_action('woocommerce_sidebar');
        	?>
    
    <?php get_footer('shop'); ?>

    maybe you have a idea what to edit 😀

    Thread Starter Frank2k

    (@frank2k)

    i have tried that, but the shortcode dont include the add to cart option.

    Thread Starter Frank2k

    (@frank2k)

    its a kind of Deal site. I want the active deal (product) as Homepage.

    Thread Starter Frank2k

    (@frank2k)

    Tnx for your quick reply.

    But i mean a single productpage. not the “catch all”

    Thread Starter Frank2k

    (@frank2k)

    I use Woocommerce.

Viewing 6 replies - 1 through 6 (of 6 total)