New Landing How can we help? Themeforest Theme Support Dante Use both Short Description and Description on Product Page?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #80489
    adamf
    Member
    Post count: 39

    I’m trying to figure out how to display the short description on the product page, below the existing description, for products not using the page builder… is there something similar to:

    if ($enable_pb_product_pages) {
    echo do_shortcode(sf_add_formatting($product_description));
    } else {
    the_content();
    }

    that I can drop in to display the short description?

    #80832
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Sure, you’d need:

    <?php
    $product_short_description = get_post_meta($post->ID, 'sf_product_short_description', true);
    echo do_shortcode(sf_add_formatting($product_short_description));
    ?>

    Hope that helps.

    – Ed

    #80958
    adamf
    Member
    Post count: 39

    Hmm, doesn’t seem to be working – I replaced <?php $product->list_attributes(); ?> with the above code on line 310 of sf_woocommerce.php and nothing shows up…

    #81018
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    If you provide wordpress admin login detail so i can debug to fix the issue very soon .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #81284
    adamf
    Member
    Post count: 39
    This reply has been marked as private.
    #81564
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue. I used different code to print short description.
    <?php echo $post->post_excerpt; ?>

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #81760
    adamf
    Member
    Post count: 39

    You guys are AWESOME! Thank you!

    #81811
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome . I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register