Shortcode

Frequently Bought Together shortcode is used to display Frequently Bought Together products of a product and insert every you want.

[wbs_frequently_product product_id="" source="any" style="horizontal" title_line="1" show_attribute="click" hide_if_added=1 select_type="button" ajax_load="" after_atc="redirect_checkout" message="Frequently bought together:" show_rating=""]

  • product_id: By adding the product ID in shortcode, Frequently Bought Together of this product will display it on any page you put this shortcode. For example: product_id="85"
  • source: Products appear on Frequently Bought Together shortcode will get from one of these sources: Up sells – Same as Up-sells products; Cross sells – Same as Cross-sells products; Woo Up sells – Products set in Edit product/Link products/Upsells; Woo Cross sells – Products set in Edit product/Link products/Cross-sells or any of above. Possible values: woo_up_sells; woo_cross_sells ; cross_sells ; up_sells ; any
    For example: source="woo_up_sells"
  • style: The way Frequently Bought Together appears. The possible values:  horizontal or vertical. For example: style="horizontal"
  • title_line: If product title is too long and take many lines to display, it will be cut off. Set 0 to not cut off long product title. For example: title_line="1"
  • show_attribute: Show attributes selection when: hover or click. For example: show_attribute="click"
  • hide_if_added: Hide Frequently Bought Together on current page if main product is already in the cart. For example: hide_if_added=1
  • select_type: Display in select or button type. This option is used for variable products. Possible values: select or button. For example: select_type="button"
  • ajax_load: Only load Frequently Bought Together products with Ajax after page is loaded. For example: ajax_load=""
  • after_atc: What to do after successfully adding product(s) to cart. Possible values: none, redirect_cart, redirect_checkout, hide. For example: after_atc="redirect_checkout"  
  • message: Title of Frequently Bought Together, you can add the name of main product with shortcode {product_title} in the title. For example: message="Frequently bought together:"
  • show_rating: Allow to show rating in Frequently Bought Together products. For example show_rating="1"