• Salve,
    sto usando la versione Free del Plugin nel tema “Farmvilla”.
    Vorrei inserire il “cuore” della WishList, o un bottone nella pagina di presentazione di tutti i prodotti oltre alla pagina interna andando in dettaglio.
    Lo Shortcode non funziona ed inserendo manualmente il codice ne risulta una pagina bianca vuota e senza alcun prodotto.
    Come risolvere?
    Attendo vostre news.

Viewing 1 replies (of 1 total)
  • Chiao Kiarma. I was facing the same issue as you with Yith Wishlist plugin while still running WooCommerce 2.6.14 (I haven’t updated to WooCommerce version 3.0) yet.

    It seems that the way the plugin gets the product ID is causing a lot of issues, and completely breaks my theme’s current integration when using the Yith’s shortcode as such <?php echo do_shortcode('[yith_wcwl_add_to_wishlist]'); ?>

    I’ve came up with a “Hard Fix” by modifying the plugin’s class.yith-wcwl-shortcode.php file directly, so this is not update proof.

    You might want to give it a try and see if that works for you, but don’t forget to make a backup of the original file first before overriding it. I’ve commented the lines where I’ve performed the changed with the word “fix”, do a search in the file contents and you’ll be able to see what changes were applied.

    You can grab the modified file here: https://gist.github.com/monecchi/3dbb0d2265d4714b159eca6ae3e8a8dd

    Apresto and Good Luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode non funziona’ is closed to new replies.