gdpc_compare_box_embed

gdpc_compare_box_embed($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.

Function returns: string with rendered content.

Comments

Leave a Reply