-
AuthorSearch Results
-
July 13, 2023 at 8:55 am #119426
In reply to: product information not showing
Hi
You are on php 8.1. We are not yet compatible with that and many plugins are also not php 8.1 compatible. Please use php 8.0.xxx
I adjusted the code of the single-products-content.php as there was also a bug
PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328< ?php## rt-theme single product content#global $rt_sidebar_location;?>< ?phpif (have_posts()) : while (have_posts()) : the_post();//get queried object$this_product = get_queried_object();// featured images$rt_gallery_images = get_post_meta( $post->ID, RT_COMMON_THEMESLUG . "rt_gallery_images", true );$rt_gallery_images = ! empty( $rt_gallery_images ) ? ! is_array( $rt_gallery_images ) ? explode(",", $rt_gallery_images) : $rt_gallery_images : array(); //turn into an array$rt_gallery_images = rt_merge_featured_images( $rt_gallery_images ); //add the wp featured image to the array//values$regular_price = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'price_regular', true);$sale_price = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'sale_price', true);$sku = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'sku', true);$rt_attached_documents = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'attached_documents', true);$content = apply_filters('the_content',(get_the_content()));$permalink = get_permalink();$related_products = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'related_products[]', true);$short_desc = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'short_description', true);$password_protected = ( post_password_required($post) ) ? true : false ;// Password Protected//free tabs count$tab_count=4;$tabbed_page = "";for($i=0; $i< $tab_count+1; $i++){if (trim(get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true))) {$tabbed_page="yes";}}?><div class="row clearfix">< ?php if ( !empty($rt_gallery_images) && is_array($rt_gallery_images) && !$password_protected ): ?><div class="box three first"><!-- product images --><section class="product_images"><div class="product_images_holder">< ?php## call the product slider# @hooked in /rt-framework/functions/theme_functions.php#do_action( "rt_product_image_slider", $rt_gallery_images, $this_product->post_name );?></div></section><!-- / end section .product_images --></div>< ?php endif; ?>< ?php echo ! empty( $rt_gallery_images ) ? '<div class="box two-three last">' : '<div class="box one last">'; ?><div class="head_text nomargin">< ?php## get info bar (breadcrumb and page title )# @hooked in /rt-framework/functions/theme_functions.php#echo do_action( "get_info_bar", apply_filters( 'get_info_bar_single_products', array( "called_for" => "inside_content" ) ) );## call product price# @hooked in /rt-framework/functions/theme_functions.php#if ( get_option( RT_THEMESLUG."_show_price_in_pages") ){// call product price - hooked in /rt-framework/functions/theme_functions.phpdo_action( "rt_product_price", array( "regular_price" => $regular_price, "sale_price" => $sale_price) );}?><meta itemprop="name" content="<?php echo get_the_title();?/>"><meta itemprop="url" content="<?php echo get_the_permalink();?/>"></div>< ?php //short descriptionecho ! empty( $short_desc ) ? sprintf( '<p itemprop="description">%s', apply_shortcodes( $short_desc ) ) : "" ;?><div class="product_meta">< ?php//SKUecho ! empty( $sku ) ? sprintf( '<span class="sku_wrapper" itemprop="productID"><span class="sku"><b>%s:</b> %s </span> ', esc_html_x('SKU','Frontend Text','rt_theme'), $sku ) : "" ;//categoriesif (!empty(get_the_terms( $post->ID , 'product_categories'))) {$category_count = count( get_the_terms( $post->ID , 'product_categories') );echo '<span class="posted_in">' . get_the_term_list( $post->ID, 'product_categories', '<b>'._n('Category','Categories', $category_count,'rt_theme') .':</b> ', ', ', '' ) . '</span>' ;}?></div></div></div><div class="space margin-t20 margin-b20"></div><!-- space -->< ?php//get project navigation - for full width pageif( $rt_sidebar_location[0] == "full" ){do_action( "get_post_navigation");}?><div class="row clearfix"><div class="box one first">< ?php if($tabbed_page):?><div class="tabs_wrap tab-style-three"><!-- the tabs --><ul class="tabs clearfix">< ?php if($content):?><li class="with_icon"><a href="#general-details" rel="nofollow"><span class="icon-doc-alt"></span>< ?php echo esc_html_x('General Details','Frontend Text','rt_theme');?></a></li>< ?php endif;?>< ?php## Free Tabs#for($i=0; $i<$tab_count+1; $i++){$tab_icon = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_icon', true) ? '<span class="'.get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_icon', true).'"></span>': "";$tab_name = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true);$id = strtolower(urldecode(str_replace(" ","-", wp_kses($tab_name,[]))));if ( ! empty( $tab_name ) && !$password_protected ){echo ! empty( $tab_icon ) ? sprintf('<li class="with_icon"><a href="#%3$s" rel="nofollow">%1$s%2$s</a></li>', $tab_icon, $tab_name, $id ) : sprintf('<li><a href="#%2$s" rel="nofollow">%1$s</a></li>', $tab_name,$id );}}## Attached Documents#if( $rt_attached_documents && !$password_protected ){echo '<li class="with_icon"><a href="#attached-documents" rel="nofollow"><span class="icon-docs"></span>' .esc_html_x('Documents','Frontend Text','rt_theme').'</a></li>';}## Comments#if( ( comments_open() || get_comments_number() ) && !$password_protected ){echo '<li class="with_icon"><a href="#comments" rel="nofollow"><span class="icon-chat-empty"></span>' .esc_html_x('Comments','Frontend Text','rt_theme').'</a></li>';}?></ul>< ?php endif;?>< ?php if($tabbed_page):?><div class="panes">< ?php endif;?>< ?php if($content):?>< ?php## Main content - General Details Tab#if($tabbed_page):?><div class="pane">< ?php else:?><div class="box one box-shadow margin-b30">< ?php endif;?><div>< ?php the_content(); ?></div><div class="clear"></div></div>< ?php endif;?>< ?php## Free Tabs' Content#for($i=0; $i<$tab_count+1; $i++){if ( trim( get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true) ) && !$password_protected ){echo '<div class="pane">';echo (apply_filters('the_content',get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_content', true)));echo '<div class="clear"></div></div>';}}?>< ?php## Attached Documents#if($rt_attached_documents && !$password_protected):?>< ?php if(!$tabbed_page):?><div class="line"></div>< ?php endif;?><div class="pane"><!-- document icons --><div class="doc_icons">< ?php$rt_attached_documents_output = "";if(trim($rt_attached_documents)):$rt_attached_documents = trim(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $rt_attached_documents));$rt_attached_documents = explode("\n", $rt_attached_documents);endif;if(is_array($rt_attached_documents)){$rt_attached_documents_output .= '[icon_list font_size="medium_size" icon_style="colored"]';foreach($rt_attached_documents as $a_file){if(strrpos($a_file,"|")) {$fileTarget="";$a_file = explode("|", $a_file);$fileTarget = isset( $a_file[2] ) ? trim($a_file[2]) : "_self";$fileURL = isset( $a_file[1] ) ? trim($a_file[1]) : "";$fileName = isset( $a_file[0] ) ? trim($a_file[0]) : "";}else{$fileURL = trim( $a_file );$fileName = "";$fileTarget = "_self";}//the download textif(strpos($fileURL, ".doc")){$file_text = esc_html_x('Download Word File','Frontend Text','rt_theme');}elseif(strpos($fileURL, ".xls")){$file_text = esc_html_x('Download Excel File','Frontend Text','rt_theme');}elseif(strpos($fileURL, ".pdf")){$file_text = esc_html_x('Download PDF File','Frontend Text','rt_theme');}elseif(strpos($fileURL, ".ppt")){$file_text = esc_html_x('Download PowerPoint File','Frontend Text','rt_theme');}else{$file_text = esc_html_x('Download File','Frontend Text','rt_theme');}//the download link$download_link = ! empty( $fileName ) ? '<a href="'.$fileURL.'" title="'.$file_text.'" target="'.$fileTarget.'" rel="nofollow">'.$fileName.'' : '<a href="'.$fileURL.'" title="'.$file_text.'" rel="nofollow">'.$file_text.'</a>';//add to output$rt_attached_documents_output .= '[icon_list_line icon="icon-download"]'.$download_link.'[/icon_list_line]';}$rt_attached_documents_output .= "[/icon_list]";echo do_shortcode( $rt_attached_documents_output );}?></div><!-- document icons --></div>< ?php endif;?>< ?php## Comments#if( $tabbed_page && ( comments_open() || get_comments_number() ) && !$password_protected ):?><div class="pane"><div class='entry commententry'>< ?php comments_template(); ?></div></div>< ?php endif;?>< ?php if($tabbed_page):?></div></div><div class="space margin-b20"></div>< ?php endif;?></div></div>< ?php //related productsif ( is_array( $related_products ) ){$related_products_item_width = get_option(RT_THEMESLUG."_related_product_layout");$related_products_crop = get_option(RT_THEMESLUG."_related_products_crop");echo do_shortcode ( '[product_carousel id="'.sanitize_text_field($this_product->post_name).'-related-products" crop="'.$related_products_crop.'" style="rounded_carousel" heading="' .esc_html_x("RELATED PRODUCTS",'Frontend Text','rt_theme').'" heading_icon="icon-link" item_width="'.$related_products_item_width.'" list_orderby="" list_order="" max_item="" categories="" ids="'.implode(",", $related_products).'"]' );}?>< ?php endwhile;?>< ?php // comments for pages without tabsif( !$tabbed_page && !$password_protected && ( comments_open() || get_comments_number() ) ):?><div class="box one"><div class='entry commententry'>< ?php comments_template(); ?></div></div><div class="space margin-t10 margin-b20"></div>< ?php endif;?>< ?php else: ?><p>< ?php echo esc_html_x( 'Sorry, no page found.','Frontend Text','rt_theme'); ?></p>< ?php endif; ?></div>I will send this to the developer to fix in the next update.
June 19, 2023 at 9:44 pm #119293In reply to: Empty mini shopping cart
Hello,
We will update the theme soon and add WooCommerce 7.8.0 support.
For now, you can manually update /naturalife/rt-framework/functions/woo-integrations.php file with the code below.
PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469< ?php/*** RT-THEME WooCommerce Integration** Various Functions and hooks for WC** @author RT-Themes**/global $woocommerce;/***** HOOKS***///remove default css filesadd_filter( 'woocommerce_enqueue_styles', 'rtframework_remove_wc_default_css_files' );//remove woo wrapperremove_action("woocommerce_before_main_content","woocommerce_output_content_wrapper",10);remove_action("woocommerce_after_main_content","woocommerce_output_content_wrapper_end",10);//remove breadcrumbremove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );//paginationremove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );add_action( 'woocommerce_after_shop_loop', 'rtframework_woocommerce_pagination', 10 );//remove woo sidebarremove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);//hide woocommerce page titleadd_filter('woocommerce_show_page_title', 'rtframework_woocommerce_show_page_title');//Custom Loop Item Title//remove_action("woocommerce_shop_loop_item_title", "woocommerce_template_loop_product_title");remove_action("woocommerce_before_shop_loop_item", "woocommerce_template_loop_product_link_open", 10);remove_action("woocommerce_after_shop_loop_item", "woocommerce_template_loop_product_link_close", 5);add_action("woocommerce_shop_loop_item_title", "woocommerce_template_loop_product_link_open",5);add_action("woocommerce_after_shop_loop_item_title", "woocommerce_template_loop_product_link_close",4);//product thumbnailremove_action("woocommerce_before_shop_loop_item_title", "woocommerce_template_loop_product_thumbnail", 10);add_action("woocommerce_before_shop_loop_item_title", "rtframework_wc_loop_product_thumbnail_holder", 10);add_action("rtframework_wc_loop_product_thumbnail", "woocommerce_template_loop_product_link_open", 5);add_action("rtframework_wc_loop_product_thumbnail", "woocommerce_template_loop_product_thumbnail", 10);add_action("rtframework_wc_loop_product_thumbnail", "woocommerce_template_loop_product_link_close", 20);//ratingsremove_action("woocommerce_after_shop_loop_item_title", "woocommerce_template_loop_rating", 5);add_action("rtframework_wc_loop_product_thumbnail", "woocommerce_template_loop_rating", 5);// Cart total itemsadd_filter('woocommerce_add_to_cart_fragments', 'rtframework_cart_items');add_action('wp_enqueue_scripts', 'rtframework_enqueue_wc_cart_fragments');//before shop loopremove_action("woocommerce_before_shop_loop", "woocommerce_result_count",20);remove_action("woocommerce_before_shop_loop", "woocommerce_catalog_ordering",30);//sub page headeradd_action("rtframework_start_main_content", "rtframework_before_shop_loop_wrapper",15);add_action("rtframework_before_shop_loop", "woocommerce_result_count",20);add_action("rtframework_before_shop_loop", "woocommerce_catalog_ordering",30);//define post per pageadd_filter('loop_shop_per_page', 'rtframework_loop_shop_per_page');//loop column countadd_filter('loop_shop_columns', 'rtframework_wc_loop_columns', 999);//WC 3.0 galleriesadd_action( 'template_redirect', 'rtframework_woo_supports' );//product loop content wrapperadd_action("woocommerce_shop_loop_item_title", "rtframework_loop_content_wrapper_open",2);add_action("woocommerce_after_shop_loop_item_title", "rtframework_loop_content_wrapper_close",20);//add to cartremove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);add_action('woocommerce_after_shop_loop_item_title', 'rtframework_woocommerce_template_loop_add_to_cart', 10);//priceremove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);add_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 15);remove_action( 'wp_footer', 'woocommerce_demo_store' );add_action( 'rtframework_start_main_content', 'woocommerce_demo_store' );/**** Layout Specific hooks**/if ( ! function_exists( 'rtframework_layout2_hooks' ) ) {/*** Layout 2 hooks*/function rtframework_layout2_hooks(){if( ! strpos(get_page_template_slug(), "single-product-layout2.php") ){return;}//tabsremove_action("woocommerce_after_single_product_summary", "woocommerce_output_product_data_tabs", 10);add_action("woocommerce_single_product_summary", "woocommerce_output_product_data_tabs",70);}}add_action( "template_redirect", "rtframework_layout2_hooks", 100 );if ( ! function_exists( 'rtframework_set_row_post_class' ) ) {/*** Add extra class to single product page wrapper*/function rtframework_set_row_post_class($classes, $class, $post_id){global $woocommerce_loop;if( ! is_product() || isset( $woocommerce_loop ) ){return $classes;}$classes[] = 'single-product-div';return $classes;}}add_filter('post_class', 'rtframework_set_row_post_class', 10,3);/***** FUNCTIONS***/if ( ! function_exists( 'rtframework_woocommerce_template_loop_add_to_cart' ) ) {/*** Custom add to cart button for product listings*/function rtframework_woocommerce_template_loop_add_to_cart( $args = array() ){global $product;if ( $product ) {$defaults = array('quantity' => 1,'class' => implode( ' ', array_filter( array('button','product_type_' . $product->get_type(),$product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '',$product->supports( 'ajax_add_to_cart' ) ? 'ajax_add_to_cart' : '',) ) ),'attributes' => array('data-product_id' => $product->get_id(),'data-product_sku' => $product->get_sku(),'aria-label' => $product->add_to_cart_description(),'rel' => 'nofollow',),);$args = apply_filters( 'woocommerce_loop_add_to_cart_args', wp_parse_args( $args, $defaults ), $product );wc_get_template( 'loop/custom-add-to-cart.php', $args );}}}if ( ! function_exists( 'rtframework_woo_supports' ) ) {/*** Add WooCommerce Gallery Support - 3.0*/function rtframework_woo_supports(){$disable_zoom = get_theme_mod( 'naturalife_woo_disable_zoom');$disable_lightbox = get_theme_mod( 'naturalife_woo_disable_lightbox');if( ! $disable_zoom ){add_theme_support( 'wc-product-gallery-zoom' );}if( ! $disable_lightbox ){add_theme_support( 'wc-product-gallery-lightbox' );}add_theme_support( 'wc-product-gallery-slider' );}}if ( ! function_exists( 'rtframework_before_shop_loop_wrapper' ) ) {/*** Loop content wrapper open*/function rtframework_before_shop_loop_wrapper(){if( ! is_shop() && ! is_product_category() && ! is_product_tag() ){return;}echo '<div class="naturalife-before-shop content-row default-style fullwidth">'."\n";echo '<div class="content-row-wrapper default">'."\t\n";echo '<div class="col col-sm-12">'."\t\t\n";do_action( "rtframework_before_shop_loop" );echo '</div>'."\t\t\n";echo '</div>'."\t\n";echo '</div>'."\n";}}if ( ! function_exists( 'rtframework_before_shop_wrapper_open' ) ) {/*** Loop content wrapper open*/function rtframework_before_shop_wrapper_open(){echo '<div class="naturalife-before-shop">'."\n";}}if ( ! function_exists( 'rtframework_before_shop_wrapper_close' ) ) {/*** Loop content wrapper close*/function rtframework_before_shop_wrapper_close(){echo '</div>'."\n";}}if (!function_exists('rtframework_wc_loop_columns')) {function rtframework_wc_loop_columns( $default_layout ) {$layout = rtframework_get_setting("woo_layout");$layout = ! empty( $layout ) ? $layout : $default_layout ;return $layout;}}if ( ! function_exists( 'rtframework_loop_shop_per_page' ) ) {/*** Product Per Page* Number of products displayed per page* @return numberic woo_product_list_pager*/function rtframework_loop_shop_per_page() {$woo_product_list_pager = rtframework_get_setting("woo_list_pager");if($woo_product_list_pager!="" && is_numeric($woo_product_list_pager) ) {return $woo_product_list_pager;}}}if ( ! function_exists( 'rtframework_loop_content_wrapper_open' ) ) {/*** Loop content wrapper open*/function rtframework_loop_content_wrapper_open(){echo '<div class="naturalife-product-content-holder">'."\n";}}if ( ! function_exists( 'rtframework_loop_content_wrapper_close' ) ) {/*** Loop content wrapper close*/function rtframework_loop_content_wrapper_close(){echo '</div>'."\n";}}if ( ! function_exists( 'rtframework_wc_loop_product_thumbnail_holder' ) ) {/*** Thumbnail Holder*/function rtframework_wc_loop_product_thumbnail_holder(){echo '<div class="naturalife-wc-image-holder">'."\n";do_action("rtframework_wc_loop_product_thumbnail");echo '</div>'."\n";}}if ( ! function_exists( 'rtframework_remove_wc_default_css_files' ) ) {/*** Remove default woo css files* @return $enqueue_styles*/function rtframework_remove_wc_default_css_files( $enqueue_styles ){unset( $enqueue_styles['woocommerce-general'] ); // Remove the glossunset( $enqueue_styles['woocommerce-layout'] ); // Remove the layoutunset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisationreturn $enqueue_styles;}}if ( ! function_exists( 'rtframework_get_woocommerce_page_title' ) ) {/*** woocommerce_page_title function.** replace the rtframework_get_woocommerce_page_title function** @access public* @return void*/function rtframework_get_woocommerce_page_title() {return woocommerce_page_title( false );}}if ( ! function_exists( 'rtframework_woocommerce_pagination' ) ) {/*** Pagination* @return output rtframework_get_pagination()*/function rtframework_woocommerce_pagination(){global $wp_query;?><div class="paging_wrapper margin-t30 margin-b30">< ?php woocommerce_pagination();?></div>< ?php}}if ( ! function_exists( 'rtframework_woocommerce_show_page_title' ) ) {/*** Remove WooCommerce show page title* @return false*/function rtframework_woocommerce_show_page_title() {return false;}}if ( ! function_exists( 'rtframework_cart_items' ) ) {/*** Cart items count* @param array $fragments* @return html*/function rtframework_cart_items( $fragments ) {global $woocommerce;ob_start();?><sub class="naturalife-cart-items <?php echo ( 0 == $woocommerce->cart->cart_contents_count ) ? "empty" : "";?>">< ?php echo esc_attr( $woocommerce->cart->cart_contents_count );?></sub>< ?php$fragments['.header-tools .cart .naturalife-cart-items'] = ob_get_clean();return $fragments;}}if ( ! function_exists( 'rtframework_product_meta_wrapper_start' ) ) {/*** Product meta wrapper start* @return html*/function rtframework_product_meta_wrapper_start() {?><div class="product-meta-row d-flex justify-content-between align-items-center"><div class="product-meta-col">< ?phpdo_action( "rtframework_product_meta_before_start");}}add_action( "woocommerce_product_meta_start", "rtframework_product_meta_wrapper_start", 20 );if ( ! function_exists( 'rtframework_product_meta_wrapper_end' ) ) {/*** Product meta wrapper start* @return html*/function rtframework_product_meta_wrapper_end() {do_action( "rtframework_product_meta_before_end");?></div></div>< ?php}}add_action( "woocommerce_product_meta_end", "rtframework_product_meta_wrapper_end", 20 );if ( ! function_exists( 'rtframework_woo_social_share' ) ) {/*** Add social share to woo single page* @return html*/function rtframework_woo_social_share( $fragments ) {?><div class="product-meta-col">< ?php echo rtframework_social_media_share( $atts = array("postid" => get_the_ID()) );?>< ?php}}add_action( "rtframework_product_meta_before_end", "rtframework_woo_social_share", 20 );if ( ! function_exists( 'rtframework_woo_hrs' ) ) {/*** HR* @return html*/function rtframework_woo_hrs( ) {echo '<hr />';}}add_action( "woocommerce_single_product_summary", "rtframework_woo_hrs", 10 );if ( ! function_exists( 'rtframework_woocommerce_pagination_args' ) ) {/*** Custom Pagination Args* @return html*/function rtframework_woocommerce_pagination_args( $args ){$args["prev_text"] = esc_html__("previous", "naturalife");$args["next_text"] = esc_html__("next", "naturalife");return $args;}}add_filter( "woocommerce_pagination_args", "rtframework_woocommerce_pagination_args", 10, 1 );if ( ! function_exists( 'rtframework_enqueue_wc_cart_fragments' ) ) {/*** Enqueue WC Cart Fragments* @return html*/function rtframework_enqueue_wc_cart_fragments(){if( ! is_admin() ){wp_enqueue_script( 'wc-cart-fragments' );}}}</div>October 10, 2022 at 8:21 am #117881In reply to: Migrating and updating RT-theme page
here is the original single products content for version 1.3.4.1
PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321< ?php## rt-theme single product content#global $rt_sidebar_location;?>< ?phpif (have_posts()) : while (have_posts()) : the_post();//get queried object$this_product = get_queried_object();// featured images$rt_gallery_images = get_post_meta( $post->ID, RT_COMMON_THEMESLUG . "rt_gallery_images", true );$rt_gallery_images = ! empty( $rt_gallery_images ) ? ! is_array( $rt_gallery_images ) ? explode(",", $rt_gallery_images) : $rt_gallery_images : array(); //turn into an array$rt_gallery_images = rt_merge_featured_images( $rt_gallery_images ); //add the wp featured image to the array//values$regular_price = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'price_regular', true);$sale_price = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'sale_price', true);$sku = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'sku', true);$rt_attached_documents = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'attached_documents', true);$content = apply_filters('the_content',(get_the_content()));$permalink = get_permalink();$related_products = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'related_products[]', true);$short_desc = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'short_description', true);$password_protected = ( post_password_required($post) ) ? true : false ;// Password Protected//free tabs count$tab_count=4;$tabbed_page = "";for($i=0; $i< $tab_count+1; $i++){if (trim(get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true))) {$tabbed_page="yes";}}?><div class="row clearfix">< ?php if ( !empty($rt_gallery_images) && is_array($rt_gallery_images) && !$password_protected ): ?><div class="box three first"><!-- product images --><section class="product_images"><div class="product_images_holder">< ?php## call the product slider# @hooked in /rt-framework/functions/theme_functions.php#do_action( "rt_product_image_slider", $rt_gallery_images, $this_product->post_name );?></div></section><!-- / end section .product_images --></div>< ?php endif; ?>< ?php echo ! empty( $rt_gallery_images ) ? '<div class="box two-three last">' : '<div class="box one last">'; ?><div class="head_text nomargin">< ?php## get info bar (breadcrumb and page title )# @hooked in /rt-framework/functions/theme_functions.php#echo do_action( "get_info_bar", apply_filters( 'get_info_bar_single_products', array( "called_for" => "inside_content" ) ) );## call product price# @hooked in /rt-framework/functions/theme_functions.php#if ( get_option( RT_THEMESLUG."_show_price_in_pages") ){// call product price - hooked in /rt-framework/functions/theme_functions.phpdo_action( "rt_product_price", array( "regular_price" => $regular_price, "sale_price" => $sale_price) );}?></div>< ?php //short descriptionecho ! empty( $short_desc ) ? sprintf( '<p>%s', $short_desc ) : "" ;?><div class="product_meta">< ?php//SKUecho ! empty( $sku ) ? sprintf( '<span class="sku_wrapper" itemprop="productID"><span class="sku"><b>%s:</b> %s </span> ', __('SKU','rt_theme'), $sku ) : "" ;//categoriesecho '<span class="posted_in">' . get_the_term_list( $post->ID, 'product_categories', '<b>'._n('Category','Categories', count( get_the_terms( $post->ID , 'product_categories') ),'rt_theme') .':</b> ', ', ', '' ) . '</span>' ;?></div></div></div><div class="space margin-t20 margin-b20"></div><!-- space -->< ?php//get project navigation - for full width pageif( $rt_sidebar_location[0] == "full" ){do_action( "get_post_navigation");}?><div class="row clearfix"><div class="box one first">< ?php if($tabbed_page):?><div class="tabs_wrap tab-style-three"><!-- the tabs --><ul class="tabs clearfix">< ?php if($content):?><li class="with_icon"><a href="#" rel="nofollow"><span class="icon-doc-alt"></span>< ?php _e('General Details','rt_theme');?></a></li>< ?php endif;?>< ?php## Free Tabs#for($i=0; $i<$tab_count+1; $i++){$tab_icon = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_icon', true) ? '<span class="'.get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_icon', true).'"></span>': "";$tab_name = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true);if ( ! empty( $tab_name ) && !$password_protected ){echo ! empty( $tab_icon ) ? sprintf('<li class="with_icon"><a href="#" rel="nofollow">%s%s</a></li>', $tab_icon, $tab_name ) : sprintf('<li><a href="#" rel="nofollow">%s%s</a></li>', $tab_icon, $tab_name );}}## Attached Documents#if( $rt_attached_documents && !$password_protected ){echo '<li class="with_icon"><a href="#" rel="nofollow"><span class="icon-docs"></span>'.__('Documents','rt_theme').'</a></li>';}## Comments#if( comments_open() && !$password_protected ){echo '<li class="with_icon"><a href="#" rel="nofollow"><span class="icon-chat-empty"></span>'.__('Comments','rt_theme').'</a></li>';}?></ul>< ?php endif;?>< ?php if($tabbed_page):?><div class="panes">< ?php endif;?>< ?php if($content):?>< ?php## Main content - General Details Tab#if($tabbed_page):?><div class="pane">< ?php else:?><div class="box one box-shadow margin-b30">< ?php endif;?><div>< ?php echo $content;?></div><div class="clear"></div></div>< ?php endif;?>< ?php## Free Tabs' Content#for($i=0; $i<$tab_count+1; $i++){if ( trim( get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true) ) && !$password_protected ){echo '<div class="pane">';echo (apply_filters('the_content',get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_content', true)));echo '<div class="clear"></div></div>';}}?>< ?php## Attached Documents#if($rt_attached_documents && !$password_protected):?>< ?php if(!$tabbed_page):?><div class="line"></div>< ?php endif;?><div class="pane"><!-- document icons --><div class="doc_icons">< ?php$rt_attached_documents_output = "";if(trim($rt_attached_documents)):$rt_attached_documents = trim(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $rt_attached_documents));$rt_attached_documents = explode("\n", $rt_attached_documents);endif;if(is_array($rt_attached_documents)){$rt_attached_documents_output .= '[icon_list font_size="medium_size" icon_style="colored"]';foreach($rt_attached_documents as $a_file){if(strrpos($a_file,"|")) {$fileTarget="";$a_file = explode("|", $a_file);$fileTarget = isset( $a_file[2] ) ? trim($a_file[2]) : "";$fileURL = isset( $a_file[1] ) ? trim($a_file[1]) : "";$fileName = isset( $a_file[0] ) ? trim($a_file[0]) : "";}else{$fileURL = trim( $a_file );$fileName = "";$fileTarget = "_self";}//the download textif(strpos($fileURL, ".doc")){$file_text = __('Download Word File','rt_theme');}elseif(strpos($fileURL, ".xls")){$file_text = __('Download Excel File','rt_theme');}elseif(strpos($fileURL, ".pdf")){$file_text = __('Download PDF File','rt_theme');}elseif(strpos($fileURL, ".ppt")){$file_text = __('Download PowerPoint File','rt_theme');}else{$file_text = __('Download File','rt_theme');}//the download link$download_link = ! empty( $fileName ) ? '<a href="'.$fileURL.'" title="'.$file_text.'" target="'.$fileTarget.'" rel="nofollow">'.$fileName.'' : '<a href="'.$fileURL.'" title="'.$file_text.'" rel="nofollow">'.$file_text.'</a>';//add to output$rt_attached_documents_output .= '[icon_list_line icon="icon-download"]'.$download_link.'[/icon_list_line]';}$rt_attached_documents_output .= "[/icon_list]";echo do_shortcode( $rt_attached_documents_output );}?></div><!-- document icons --></div>< ?php endif;?>< ?php## Comments#if( $tabbed_page && comments_open() && !$password_protected ):?><div class="pane"><div class='entry commententry'>< ?php comments_template(); ?></div></div>< ?php endif;?>< ?php if($tabbed_page):?></div></div><div class="space margin-b20"></div>< ?php endif;?></div></div>< ?php //related productsif ( is_array( $related_products ) ){$related_products_item_width = get_option(RT_THEMESLUG."_related_product_layout");$related_products_crop = get_option(RT_THEMESLUG."_related_products_crop");echo do_shortcode ( '[product_carousel id="'.$this_product->post_name.'-related-products" crop="'.$related_products_crop.'" style="rounded_carousel" heading="'.__("RELATED PRODUCTS",'rt_theme').'" heading_icon="icon-link" item_width="'.$related_products_item_width.'" list_orderby="" list_order="" max_item="" categories="" ids="'.implode(",", $related_products).'"]' );}?>< ?php endwhile;?>< ?php // comments for pages without tabsif( !$tabbed_page && !$password_protected && comments_open() ):?><div class="box one"><div class='entry commententry'>< ?php comments_template(); ?></div></div><div class="space margin-t10 margin-b20"></div>< ?php endif;?>< ?php else: ?><p>< ?php _e( 'Sorry, no page found.', 'rt_theme'); ?></p>< ?php endif; ?></div>October 28, 2021 at 3:23 pm #115459anyone there who can help me?
We live in different timezones which means that it can take up to 24-48 hours before we answer questions. We also have to maintain our work and programming matters and try to help everybody as fast as possible we can to our abilities.
.tax-product_categories .product_info p {
display: none;
}or open wp-content\themes\rttheme18\product-contentstaxonomy-product_categories.php and change the content to
PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102< ?php/** rt-theme product taxomony categories*/global $rt_sidebar_location, $rt_title;$term = get_queried_object();$rt_taxonomy = $term->taxonomy;$term_id = $term->term_id;$rt_title = $term->name;$products_item_width = get_option(RT_THEMESLUG."_product_layout");$products_list_orderby = get_option(RT_THEMESLUG.'_product_list_orderby');$products_list_order = get_option(RT_THEMESLUG.'_product_list_order');$products_item_per_page = get_option(RT_THEMESLUG.'_product_list_pager');$hide_current_category_desc = get_option(RT_THEMESLUG.'_hide_current_category_desc');$tax_meta = get_option( "taxonomy_$term_id" );$cat_image_id = is_array( $tax_meta ) && isset( $tax_meta["product_category_image"] ) && ! empty( $tax_meta["product_category_image"] ) ? $tax_meta["product_category_image"] : "";if( $cat_image_id ){$get_cat_image = wp_get_attachment_image_src( $cat_image_id, "thumbnail" );$cat_image_url = is_array( $get_cat_image ) ? $get_cat_image[0] : "";}get_header();?><section class="content_block_background"></section><section id="category-<?php echo esc_attr($term_id); ?>" class="content_block clearfix"></section><section class="content <?php echo esc_attr($rt_sidebar_location[0]);?>"><div class="row">< ?php do_action( "get_info_bar", apply_filters( 'get_info_bar_product_taxonomies', array( "called_for" => "inside_content" ) ) ); ?>< ?php if( $term->description && ! $hide_current_category_desc ):?><!-- Category Description --><div class="row margin-b30 clearfix product-category-description <?php echo isset( $cat_image_url ) ? 'with-cat-image' : ""; ?> ">< ?php echo isset( $cat_image_url ) ? '<img loading="lazy" src="'. $cat_image_url .'" class="product-category-thumbnail">' : ""; ?>< ?php echo apply_filters('the_content',($term->description));?></div><hr class="style-four"/>< ?php endif;?>< ?php//show subcategories$category_display = get_option(RT_THEMESLUG."_category_display");$term_childrens = get_term_children( $term_id, $rt_taxonomy );if( $category_display == "both" || $category_display == "categories_only" ):?>< ?php$sub_categories_item_width = get_option( RT_THEMESLUG .'_product_category_layout' );$sub_categories_list_orderby = get_option( RT_THEMESLUG .'_product_category_list_orderby' );$sub_categories_list_order = get_option( RT_THEMESLUG .'_product_category_list_order' );$product_category_show_names = get_option( RT_THEMESLUG .'_product_category_show_names' ) ? "true" : "";$product_category_show_desc = "";//get_option( RT_THEMESLUG .'_product_category_show_desc' ) ? "true" : "";$product_category_show_thumbs = get_option( RT_THEMESLUG .'_product_category_show_thumbs' ) ? "true" : "";$product_category_image_crop = get_option( RT_THEMESLUG .'_product_category_crop' ) ? "true" : "";$product_category_image_height = get_option( RT_THEMESLUG .'_product_category_image_height' );if( is_array( $term_childrens ) && ! empty( $term_childrens ) ):?>< ?php$create_category_shortcode = sprintf('[rt_product_categories item_width="%s" parent="%s" orderby="%s" order="%s" display_descriptions="%s" display_titles="%s" display_thumbnails="%s" image_max_height="%s" crop="%s"]',$sub_categories_item_width, $term_id, $sub_categories_list_orderby, $sub_categories_list_order, $product_category_show_desc, $product_category_show_names, $product_category_show_thumbs, $product_category_image_height, $product_category_image_crop);echo do_shortcode( $create_category_shortcode );?>< ?php if ( $category_display != "categories_only" ) : ?><hr class="style-four"/>< ?php endif; ?>< ?php endif; ?>< ?php endif; ?>< ?php if ( empty( $category_display ) || $category_display == "both" || $category_display == "products_only" || ( is_array( $term_childrens ) && empty( $term_childrens ) ) ) : ?>< ?php if ( have_posts() ) ://show products$create_shortcode = sprintf('[product_box id="%s" item_width="%s" pagination="%s" list_orderby="%s" list_order="%s" item_per_page="%s" categories="%s" with_borders="true" display_descriptions="" display_titles="true"]',$term->slug, $products_item_width, "on", $products_list_orderby, $products_list_order, $products_item_per_page, $term_id);echo do_shortcode( $create_shortcode );else : ?>< ?php get_template_part( 'content', 'none' ); ?>< ?php endif; ?>< ?php endif; ?></div></section><!-- / end section .content -->< ?php get_sidebar(); ?><!-- / end section .content_block -->< ?php get_footer(); ?>Redo on theme updates or create a child theme with the same filename in the same sub folder !!!
Note: line 57 and 85 have only changed
http://support-rt.com/forums/topic/tutorial-how-to-create-a-child-theme-2/
February 5, 2021 at 6:05 am #113142Hi,
You can duplicate this part of the code below;
PHP12345678< ?php if( $term->description && ! $hide_current_category_desc ):?><!-- Category Description --><div class="row margin-b30 clearfix product-category-description <?php echo isset( $cat_image_url ) ? 'with-cat-image' : ""; ?> ">< ?php echo isset( $cat_image_url ) ? '<img src="'. $cat_image_url .'" class="product-category-thumbnail">' : ""; ?>< ?php echo apply_filters('the_content',($term->description));?></div><hr class="style-four"/>< ?php endif;?>and place on line 34 like this https://share.getcloudapp.com/Qwu9GPzY
Please feel free to ask if you have any further questions.
Best Regards,
TolgaJuly 7, 2017 at 4:19 am #91896Hi,
You can replace the codes inside the /rttheme18/product-contents/single-product-content.php with the following one;
PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325< ?php## rt-theme single product content#global $rt_sidebar_location;?>< ?phpif (have_posts()) : while (have_posts()) : the_post();//get queried object$this_product = get_queried_object();// featured images$rt_gallery_images = get_post_meta( $post->ID, RT_COMMON_THEMESLUG . "rt_gallery_images", true );$rt_gallery_images = ! empty( $rt_gallery_images ) ? ! is_array( $rt_gallery_images ) ? explode(",", $rt_gallery_images) : $rt_gallery_images : array(); //turn into an array$rt_gallery_images = rt_merge_featured_images( $rt_gallery_images ); //add the wp featured image to the array//values$regular_price = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'price_regular', true);$sale_price = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'sale_price', true);$sku = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'sku', true);$rt_attached_documents = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'attached_documents', true);$content = apply_filters('the_content',(get_the_content()));$permalink = get_permalink();$related_products = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'related_products[]', true);$short_desc = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'short_description', true);$password_protected = ( post_password_required($post) ) ? true : false ;// Password Protected//free tabs count$tab_count=4;$tabbed_page = "";for($i=0; $i< $tab_count+1; $i++){if (trim(get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true))) {$tabbed_page="yes";}}?><div class="row clearfix" itemscope itemtype="http://schema.org/Product">< ?php if ( !empty($rt_gallery_images) && is_array($rt_gallery_images) && !$password_protected ): ?><div class="box two-three first"><!-- product images --><section class="product_images"><div class="product_images_holder">< ?php## call the product slider# @hooked in /rt-framework/functions/theme_functions.php#do_action( "rt_product_image_slider", $rt_gallery_images, $this_product->post_name );?></div></section><!-- / end section .product_images --></div>< ?php endif; ?>< ?php echo ! empty( $rt_gallery_images ) ? '<div class="box three last">' : '<div class="box one last">'; ?><div class="head_text nomargin">< ?php## get info bar (breadcrumb and page title )# @hooked in /rt-framework/functions/theme_functions.php#echo do_action( "get_info_bar", apply_filters( 'get_info_bar_single_products', array( "called_for" => "inside_content" ) ) );## call product price# @hooked in /rt-framework/functions/theme_functions.php#if ( get_option( RT_THEMESLUG."_show_price_in_pages") ){// call product price - hooked in /rt-framework/functions/theme_functions.phpdo_action( "rt_product_price", array( "regular_price" => $regular_price, "sale_price" => $sale_price) );}?><meta itemprop="name" content="<?php echo get_the_title();?/>"><meta itemprop="url" content="<?php echo get_the_permalink();?/>"></div>< ?php //short descriptionecho ! empty( $short_desc ) ? sprintf( '<p itemprop="description">%s', $short_desc ) : "" ;?><div class="product_meta">< ?php//SKUecho ! empty( $sku ) ? sprintf( '<span class="sku_wrapper" itemprop="productID"><span class="sku"><b>%s:</b> %s </span> ', __('SKU','rt_theme'), $sku ) : "" ;//categoriesecho '<span class="posted_in">' . get_the_term_list( $post->ID, 'product_categories', '<b>'._n('Category','Categories', count( get_the_terms( $post->ID , 'product_categories') ),'rt_theme') .':</b> ', ', ', '' ) . '</span>' ;?></div></div></div><div class="space margin-t20 margin-b20"></div><!-- space -->< ?php//get project navigation - for full width pageif( $rt_sidebar_location[0] == "full" ){do_action( "get_post_navigation");}?><div class="row clearfix"><div class="box one first">< ?php if($tabbed_page):?><div class="tabs_wrap tab-style-three"><!-- the tabs --><ul class="tabs clearfix">< ?php if($content):?><li class="with_icon"><a href="#" rel="nofollow"><span class="icon-doc-alt"></span>< ?php _e('General Details','rt_theme');?></a></li>< ?php endif;?>< ?php## Free Tabs#for($i=0; $i<$tab_count+1; $i++){$tab_icon = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_icon', true) ? '<span class="'.get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_icon', true).'"></span>': "";$tab_name = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true);if ( ! empty( $tab_name ) && !$password_protected ){echo ! empty( $tab_icon ) ? sprintf('<li class="with_icon"><a href="#" rel="nofollow">%s%s</a></li>', $tab_icon, $tab_name ) : sprintf('<li><a href="#" rel="nofollow">%s%s</a></li>', $tab_icon, $tab_name );}}## Attached Documents#if( $rt_attached_documents && !$password_protected ){echo '<li class="with_icon"><a href="#" rel="nofollow"><span class="icon-docs"></span>'.__('Documents','rt_theme').'</a></li>';}## Comments#if( comments_open() && !$password_protected ){echo '<li class="with_icon"><a href="#" rel="nofollow"><span class="icon-chat-empty"></span>'.__('Comments','rt_theme').'</a></li>';}?></ul>< ?php endif;?>< ?php if($tabbed_page):?><div class="panes">< ?php endif;?>< ?php if($content):?>< ?php## Main content - General Details Tab#if($tabbed_page):?><div class="pane">< ?php else:?><div class="box one box-shadow margin-b30">< ?php endif;?><div>< ?php echo $content;?></div><div class="clear"></div></div>< ?php endif;?>< ?php## Free Tabs' Content#for($i=0; $i<$tab_count+1; $i++){if ( trim( get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_title', true) ) && !$password_protected ){echo '<div class="pane">';echo (apply_filters('the_content',get_post_meta( $post->ID, RT_COMMON_THEMESLUG.'free_tab_'.$i.'_content', true)));echo '<div class="clear"></div></div>';}}?>< ?php## Attached Documents#if($rt_attached_documents && !$password_protected):?>< ?php if(!$tabbed_page):?><div class="line"></div>< ?php endif;?><div class="pane"><!-- document icons --><div class="doc_icons">< ?php$rt_attached_documents_output = "";if(trim($rt_attached_documents)):$rt_attached_documents = trim(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $rt_attached_documents));$rt_attached_documents = explode("\n", $rt_attached_documents);endif;if(is_array($rt_attached_documents)){$rt_attached_documents_output .= '[icon_list font_size="medium_size" icon_style="colored"]';foreach($rt_attached_documents as $a_file){if(strrpos($a_file,"|")) {$fileTarget="";$a_file = explode("|", $a_file);$fileTarget = isset( $a_file[2] ) ? trim($a_file[2]) : "_self";$fileURL = isset( $a_file[1] ) ? trim($a_file[1]) : "";$fileName = isset( $a_file[0] ) ? trim($a_file[0]) : "";}else{$fileURL = trim( $a_file );$fileName = "";$fileTarget = "_self";}//the download textif(strpos($fileURL, ".doc")){$file_text = __('Download Word File','rt_theme');}elseif(strpos($fileURL, ".xls")){$file_text = __('Download Excel File','rt_theme');}elseif(strpos($fileURL, ".pdf")){$file_text = __('Download PDF File','rt_theme');}elseif(strpos($fileURL, ".ppt")){$file_text = __('Download PowerPoint File','rt_theme');}else{$file_text = __('Download File','rt_theme');}//the download link$download_link = ! empty( $fileName ) ? '<a href="'.$fileURL.'" title="'.$file_text.'" target="'.$fileTarget.'" rel="nofollow">'.$fileName.'' : '<a href="'.$fileURL.'" title="'.$file_text.'" rel="nofollow">'.$file_text.'</a>';//add to output$rt_attached_documents_output .= '[icon_list_line icon="icon-download"]'.$download_link.'[/icon_list_line]';}$rt_attached_documents_output .= "[/icon_list]";echo do_shortcode( $rt_attached_documents_output );}?></div><!-- document icons --></div>< ?php endif;?>< ?php## Comments#if( $tabbed_page && comments_open() && !$password_protected ):?><div class="pane"><div class='entry commententry'>< ?php comments_template(); ?></div></div>< ?php endif;?>< ?php if($tabbed_page):?></div></div><div class="space margin-b20"></div>< ?php endif;?></div></div>< ?php //related productsif ( is_array( $related_products ) ){$related_products_item_width = get_option(RT_THEMESLUG."_related_product_layout");$related_products_crop = get_option(RT_THEMESLUG."_related_products_crop");echo do_shortcode ( '[product_carousel id="'.sanitize_text_field($this_product->post_name).'-related-products" crop="'.$related_products_crop.'" style="rounded_carousel" heading="'.__("RELATED PRODUCTS",'rt_theme').'" heading_icon="icon-link" item_width="'.$related_products_item_width.'" list_orderby="" list_order="" max_item="" categories="" ids="'.implode(",", $related_products).'"]' );}?>< ?php endwhile;?>< ?php // comments for pages without tabsif( !$tabbed_page && !$password_protected && comments_open() ):?><div class="box one"><div class='entry commententry'>< ?php comments_template(); ?></div></div><div class="space margin-t10 margin-b20"></div>< ?php endif;?>< ?php else: ?><p>< ?php _e( 'Sorry, no page found.', 'rt_theme'); ?></p>< ?php endif; ?></div>Please feel free to ask if you have any further questions. Thank you for interesting in our themes.
Best Regards,
TolgaFebruary 1, 2017 at 9:00 am #88679In reply to: RTTheme17 Questions [usage matters]
Hi
To make it easier for you and to use a static homepage. open the sub_page_header.php in the rttheme17 folder and change this line of code on line 80
PHP1< ?php if(!$info_bar):?><div class="space margin-b30"></div>< ?php endif;?>to this
PHP1< ?php if(!$info_bar && !is_home() && !is_front_page()):?><div class="space margin-b30"></div>< ?php endif;?>Now you can set a static home page in the wp reading settings and use different homepage templates for each homepage in each language and thus also set different sliders with different text and images.
Best regards,
Neo
Theme supportFebruary 1, 2017 at 8:59 am #88678In reply to: Slider Revolution Layers in 2 languages
Hi
To make it easier for you and to use a static homepage. open the sub_page_header.php in the rttheme17 folder and change this line of code on line 80
PHP1< ?php if(!$info_bar):?><div class="space margin-b30"></div>< ?php endif;?>to this
PHP1< ?php if(!$info_bar && !is_home() && !is_front_page()):?><div class="space margin-b30"></div>< ?php endif;?>Now you can set a static home page in the wp reading settings and use different homepage templates for each homepage and thus also set different sliders with different text and images.
Best regards,
Neo
Theme supportDecember 20, 2016 at 6:54 am #87647Hi
You will have to recode the post_content.php and remove this code
PHP12345678910< ?php if(get_the_tags()):?><div class="space margin-b30"></div><div class="box one nomargin box-shadow"><div class="tags nomargin"><!-- tags -->< ?php echo the_tags( '<span>', ', <span>', '</span>');?><!-- / tags --></div></div>< ?php endif;?>Then add this code
PHP12345678< ?php if(get_the_tags()):?><div class="space margin-b30"></div><div class="tags nomargin"><!-- tags -->< ?php echo the_tags( '<span>', ', <span>', '</span>');?><!-- / tags --></div>< ?php endif;?>Around line 437 in that page.
If you don’t know how to code please hire a coder from https://www.freelancer.com/hire/Hire-a-Coder/ as we unfortunately don’t provide such service nor can we support issues caused by recoding of theme core files. I sincerly apologize for that but it is not part of the support package.
Best regards,
Neo
Theme supportMay 17, 2016 at 12:27 pm #82449In reply to: title " Related Products
Hi
You need to delete line 312 – 319 from the single products file. See code below to delete.
PHP123456789<!-- title --><div class="box one box-shadow margin-b30"><!-- page title --><div class="head_text nomargin"><div class="arrow"></div><!-- arrow --><h4 class="product">< ?php echo __("Related Products",'rt_theme');?></h4></div><!-- /page title --></div>Repeat on theme updates and or create a child theme.
Best regards,
Neo
Theme support -
AuthorSearch Results