Plugin Directory

Changeset 357510

Timestamp:
03/09/2011 02:28:52 AM (13 years ago)
Author:
jghazally
Message:

Fix shortcode single product template bug: http://getshopped.org/forums/topic.php?id=18346

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-includes/theme.functions.php

    r356348 r357510  
    968968    $GLOBALS['nzshpcrt_activateshpcrt'] = true;
    969969   
    970     //Pretty sure this single_product code is legacy...but fixing it up just in case.
     970    //Pretty sure this single_product code is legacy...but fixing it up just in case.
    971971    // get the display type for the selected category
    972972    if(!empty($temp_wpsc_query->query_vars['term']))
     
    981981
    982982    ob_start();
    983     wpsc_include_products_page_template($display_type);
     983    if( 'wpsc-product' == $wp_query->post->post_type && !is_archive() && $wp_query->post_count <= 1 )
     984        include( wpsc_get_template_file_path( 'wpsc-single_product.php' ) );
     985    else
     986        wpsc_include_products_page_template($display_type);
    984987    $is_single = false;
    985988   
Note: See TracChangeset for help on using the changeset viewer.