Support » Plugin: TablePress » table does not show in woocommerce quick view (oceanWP theme)

  • Resolved GB Design Studio

    (@gb-design-studio)


    Hi there.

    I’ve created a lot of tables and added the shortcodes to each product, the tables display great in single product view, however, they do not display in woocommerce quick view.

    I’m using Ocean WP theme anybody else having issues with this?

    Thanks in advance.

    See screenshot links below:

    single product view (table displays) – https://prnt.sc/rqse8f

    quickview (issue no table only shortcode?) – https://prnt.sc/rqsf3z

    Please help fix this issue….thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This likely means that either this “Quick View” is not evaluating Shortcodes, or do Shortcodes of other plugins work in that location?
    If other Shortcodes don’t work either, you’d have to ask WooCommerce about this, as they would then need to add support for this in their plugin. If other Shortcodes to however work, please let me know so that I can check what’s going on here with TablePress then.

    Regards,
    Tobias

    nibirunah

    (@nibirunah)

    Hello. Same problem with the plugin. And other shortcodes work. All except Table Press

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi nibirunah,

    are you also referring to that “Quick View” here?
    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    https://granit-rost.online/product-category/pamiatniki-granit/
    https://prnt.sc/rszggk

    And it does not depend on the design theme.
    And here you can see that the shortcode of another plugin works

    http://woo.wddev.ru/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for that, this really helped! From what I can see, these Quick Views are loaded via AJAX, and indeed, TablePress is not registering its Shortcodes there.

    To make this work, please try adding this to the end of your theme’s “functions.php” file:

    add_action( 'init', 'tablepress_ajax_shortcodes', 11 );
    function tablepress_ajax_shortcodes() {
      TablePress::$model_options = TablePress::load_model( 'options' );
      TablePress::$model_table = TablePress::load_model( 'table' );
      $controller = TablePress::load_controller( 'frontend' );
      $controller->init_shortcodes();
    }
    

    Regards,
    Tobias

    Thanks! You really helped! Now displayed!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hi tobias.

    This is awesome thanks for the fix. Will you be updating the plugin so we don’t have to add the above code.

    Thanks
    Gary

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gary,

    good to hear that this helped! At this time, I don’t plan to add this particular piece of code to TablePress, but probably in a future rewrite.
    I therefore recommend to proceed with adding it to your theme’s “functions.php” for now.

    Regards,
    Tobias

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