gdpc_compare_box_embed_no_cache

gdpc_compare_box_embed_no_cache($product_type = '', $echo = true, $class = '')

  • $product_type: name of the product type for compare box.
  • $echo: echo content or return it as a string.
  • $class: extra CSS class to apply to the box.

Display compare box on the page. If you leave product type empty, plugin will attempt to detect product type for current page. If that fails, compare box will not be displayed. To use this function you need to disable auto embedding of compare box from plugin Settings -> Compare -> Compare Box -> Auto Embed. This function will always render full, not cached compare box version.

Function returns: string with rendered content.

Comments

Leave a Reply