Support » Plugin: WooCommerce » [Plugin: WooCommerce – excelling eCommerce] Shortcode not "read" in Product short descript

  • Resolved cbdallaire


    I want to add a “Add to my favorites” link in the product page. I want it to be displayed in the product description area beside the image.

    I add the shortcode [wpfp-link], but once I upload the page, the shortcode is shown as text instead of a link.

    If I add the same shortcode in the page area (shown in “product description” beside “reviews” down the page), it is read correctly and the “Add to my favorites” link appears.

    How can I make the link work in the upper section of the page?

    This is the wp_favorites plugin ( I haven’t found a “favorite” option in WooCommerce. Am I right?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi cbdaillaire,

    She short product description is like the excerpt of the post, in fact it is stored in exactly that field. Add this to your functions.php and see if it helps :
    ‘add_filter( ‘the_excerpt’, ‘shortcode_unautop’);
    add_filter( ‘the_excerpt’, ‘do_shortcode’);’
    I’m not sure what wp-favorites does, but for every product you can check a box [ ] Featured in the General Product Tab, and Woocommerce has a Featured Products Widget, so maybe this can accomplish what you want.

    I hope it helps

    That should read :

    add_filter( 'the_excerpt', 'shortcode_unautop');
    add_filter( 'the_excerpt', 'do_shortcode');

    I’ve added the code to the functions.php, but nothing changed.

    About the favorite thing, it’s that I want my users to be able to have their “my favorites” page. Almost the same as a cart, but without the price, unit and other stuff.

    The plugin works in the product description, but not the excerpt. Some other shortcodes work in the excerpt though, as icons (theme shortcodes) … (?)

    Plugin Author Mike Jolley


    The ‘woocommerce_short_description’ already allows shortcodes. I would say its a problem with the wpfp-link shortcode rather that the description section.

    cbdallaire, did you get this to work? I am looking for the same functionality. Also, when it works in the product description area, does it save it so that when the customer returns and logs in it shows as a favorite? Is there a separate page or panel that shows all favorited items?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] Shortcode not "read" in Product short descript’ is closed to new replies.