Recently Viewed Products Shortcode

Recently Viewed Products are shown using shortcode [sa_recently_viewed_products]

This shortcode is functional in the plugin. But there are plans to develop it more & add more features, options, setting & flexibility to the shortcode.

With this shortcode, you can:

  • Set number of products to show in the list
  • Set order of display
  • Set layout of display
  • Enable/disable slider
  • Set Direction of slider, if slider enabled
  • Set Pre-defined Templates
  • Set how to show¬†Add to cart button
  • Set which all products to show

Shortcode Attributes

AttributesDefaultPossible ValuesDescription
product_count5Any non-decimal numberNumber of products to display in the list
order_byseqseq / randOrder for displaying recently viewed products, in sequential order or randomnly
layouthorizontalhorizontal / verticalLayout of recently viewed product’s list
slideryesyes / noWhether to make list of recently viewed product slide or show as static list
directionrtlrtl / ltr / ttb / bttIf slider is enabled what should be the direction of slider: Right-to-left (rtl), left-to-right (ltr), top-to-bottom (ttb), bottom-to-top (btt)
templatetemplate1template1 / template2Currently the plugins comes with only 2 templates. This list of templates will grow as the time progresses.
add_to_cart (upcoming)hoverhover / inlineWhether to show Add to cart button on hover or inline
« Back to Recently Viewed Products For WooCommerce