Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #415660

    When adding an item not using the Avia Layout Editor you put the item description in the post body text. Easy.

    However, if you use the Avia Layout Editor to make your own page design you have no ability to add/edit the product description. Am I missing something? I feel like I’m missing it somehow. The box in the Product Info Text box is not clickable.

    #416267

    Hey!

    You should see the product boxes below ALB – http://a.pomf.se/vkizxg.png

    Regards,
    Josue

    #496462

    I came across the same problem and can’t solve it.
    Here are examples of standard products from ‘Enfold shop demo’ build in the ‘Default editor’:

    1. http://kriesi.at/themes/enfold-shop/product/lekis-jeans/
    2. http://kriesi.at/themes/enfold-shop/product/hamilton-skirt/

    Both products have ‘Product description’ present as usual – aka- both products displays the product content set in the main content editor.

    And here are two examples of products from ‘Enfold shop demo’, which were build with ‘Advanced Layout Editor’.

    1. http://kriesi.at/themes/enfold-shop/product/grouped-custom-product/
    2. http://kriesi.at/themes/enfold-shop/product/red-velvet/

    No ‘Product description’ here. Only ‘Additional Information’ and ‘Reviews’ tabs are visible.
    No matter where I place ‘Text Block’ element in ‘Advanced Layout Editor’ field I can’t make ‘Product description’ tab visible. It simply doesn’t appear in ‘Product info tab’. Any help, please?

    #496873

    Hi,

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.

    Thanks,
    Rikard

    #533961

    Hello, has this problem been solved?

    Thanks
    Anh

    #534002

    Hey!

    No, thing is, WC uses the post content to populate the Description tab, in ALB-enabled Products, the post content is the full tree of shortcodes generated by Enfold which can’t be rendered in the Tab.

    However, there’s a solution that requires rewriting a pair of WC functions, copy the following to your child theme functions.php:

    if ( ! function_exists( 'woocommerce_default_product_tabs' ) ) {
    
    	function woocommerce_default_product_tabs( $tabs = array() ) {
    		global $product, $post;
    
    		// Description tab - shows product content
    		if ( $post ) {
    			$tabs['description'] = array(
    				'title'    => __( 'Description', 'woocommerce' ),
    				'priority' => 10,
    				'callback' => 'woocommerce_product_description_tab'
    			);
    		}
    
    		// Additional information tab - shows attributes
    		if ( $product && ( $product->has_attributes() || ( $product->enable_dimensions_display() && ( $product->has_dimensions() || $product->has_weight() ) ) ) ) {
    			$tabs['additional_information'] = array(
    				'title'    => __( 'Additional Information', 'woocommerce' ),
    				'priority' => 20,
    				'callback' => 'woocommerce_product_additional_information_tab'
    			);
    		}
    
    		// Reviews tab - shows comments
    		if ( comments_open() ) {
    			$tabs['reviews'] = array(
    				'title'    => sprintf( __( 'Reviews (%d)', 'woocommerce' ), $product->get_review_count() ),
    				'priority' => 30,
    				'callback' => 'comments_template'
    			);
    		}
    
    		return $tabs;
    	}
    }
    
    if ( ! function_exists( 'woocommerce_product_description_tab' ) ) {
    	function woocommerce_product_description_tab() {
    		wc_get_template( 'description-tab-mod.php' );
    	}
    }

    And create description-tab-mod.php file there too, with the following contents:

    <?php
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    global $post;
    
    $heading = esc_html( apply_filters( 'woocommerce_product_description_heading', __( 'Product Description', 'woocommerce' ) ) );
    
    ?>
    
    <?php if ( $heading ): ?>
      <h2><?php echo $heading; ?></h2>
    <?php endif; ?>
    
    <?php the_excerpt(); ?>

    Make sure you set a Short Description in each Product because that will be the content of the Description tab.

    Cheers!
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.