Support » Plugin: WooCommerce » single-product.php

  • Resolved moon pwint


    I used woocommerce for my store.
    Last time I can edit single-product.php and can arrange product description and additional infromation position.
    Now I’m doing for new project. I only can find
    <?php woocommerce_get_template_part( ‘content’, ‘single-product’ ); ?>
    instead of <?php woocommerce_get_template( ‘single-product/short-description.php’ ); ?>
    <?php woocommerce_get_template( ‘single-product/tab/description.php’ ); ?>
    I have no idea where can I edit for single-product page.
    Help me !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author James Koster


    The file you’re looking for is content-single-product.php.

    You can find all the single product template files in templates/single-product/.

    I finding php code to build single product page.

    For example :
    <?php get_header();$product = get_product($post->ID);?>
    <div id=”inner-content”>
    <div class=”field field_02″>
    <div class=”content”>
    <div class=”p-page-holder l-grid”>
    <div class=”product-page-left”>
    <div class=”product-image”>

    <div class=”img-wrapper”><?php woocommerce_show_product_images(); ?></div>

    $attachment_ids = $product->get_gallery_attachment_ids();
    if ( $attachment_ids ) :

    <div class=”prod-gallery”>

    <div class=”content_slide_box”>
    <div class=”content_slide_holder”>
    <?php do_action( ‘woocommerce_product_thumbnails’ ); ?>
    <br style=”clear:both;”>

    <?php endif; ?>



    <div class=”product-page-right”>

    <?php woocommerce_get_template( ‘single-product/short-description.php’ ); ?>

    <?php woocommerce_get_template( ‘single-product/tabs/description.php’ ); ?>
    <?php woocommerce_related_products(80,0); ?>
    <div style=”display: none”>
    <script type=”text/javascript”>
    (function ($) {
    $(“.latest-products”).each(function () {
    if ($(this).find(“.product”).length > 3) {
    $(this).parent().find(“.late-prod-nav a”).show();
    } else {
    $(this).parent().find(“.late-prod-nav a”).hide();

    target: ‘.content_slide_box’,
    items: ‘.product’,
    prev: ‘.late-prod-nav a.icons-left-arrow’,
    next: ‘.late-prod-nav a.icons-right-arrow’,
    margin: true,
    axis: ‘xy’,
    duration: 700,
    force: true,
    exclude: 2

    <?php if(get_option(“woocommerce_enable_lightbox”) == “no”): ?>
    <?php endif; ?>
    <div style=”clear: both;”></div>

    <?php get_footer();?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘single-product.php’ is closed to new replies.