SP WPEC Variation Image Swap
Shortcodes don´t work on the variation (5 posts)

  1. Alatus
    Posted 2 years ago #

    Hi, thank you for your plugin, the image swap works perfectly.
    But I have another problem. Your plugin seems to not only change the images but also the text. This is what I want, but my shortcodes don´t work for the variation.
    For example: I have a product with the shortcode [tabs slidertype="top tabs"]... On a normal product without variations this gets transformed into html, but on a product with variations it just outputs the word "[tabs slidertype="top tabs"] into my frontend, which is obviously not what I wanted...

    Thanks if you have a solution for that


  2. Roy Ho
    Plugin Author

    Posted 2 years ago #

    I am not entirely sure I know what you mean. But my plugin was only designed to work for single products page.

  3. Alatus
    Posted 2 years ago #

    Hi, thanks for your answer. I am using the plugin for single products page.

    Please have a look at this working example:

    On this product the image and the text switches perfectly when I select a different variation (we added some javascript to execute the first variation on load of the page)

    But if I add a shortcode on each of the variation, it is not getting rendered. Look at this example:
    Here I added the shortcode [learn_more]Content goes here[/learn_more]. Instead of rendering nice box which should be styled by css, it just puts the shortcode as plain text into my product description.

    Somehow the included shortcodes for all of the variation text should be rendered before the page is loaded. But I don´t know how to do that.

    Thanks for your help!

  4. Roy Ho
    Plugin Author

    Posted 2 years ago #

    I am sorry but I am not sure how this is related to my plugin?

  5. Alatus
    Posted 2 years ago #

    Well, its done with your plugin and its not working correctly...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic