{"id":29165,"date":"2014-05-12T10:04:18","date_gmt":"2014-05-12T10:04:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gravity-forms-recently-viewed-products\/"},"modified":"2014-05-21T21:07:36","modified_gmt":"2014-05-21T21:07:36","slug":"gravity-forms-recently-viewed-products","status":"publish","type":"plugin","link":"https:\/\/scn.wordpress.org\/plugins\/gravity-forms-recently-viewed-products\/","author":8926287,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"3.9.40","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Gravity Forms \/ WooCommerce Recently Viewed Products","header_author":"Mike Martel","header_description":"","assets_banners_color":"","last_updated":"2014-05-21 21:07:36","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/trenvo.com\/","header_plugin_uri":"http:\/\/trenvo.com","header_author_uri":"http:\/\/trenvo.com","rating":1,"author_block_rating":0,"active_installs":10,"downloads":1878,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"912587","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"912587","resolution":"2","location":"assets"}},"screenshots":{"1":"Recently viewed products in Gravity Forms entry","2":"Gravity Forms email with Recently Viewed Products using merge tag"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[33629,601,1655,33630,286],"plugin_category":[42,45],"plugin_contributors":[79425],"plugin_business_model":[],"class_list":["post-29165","plugin","type-plugin","status-publish","hentry","plugin_tags-click-stream","plugin_tags-forms","plugin_tags-gravity-forms","plugin_tags-recent-products","plugin_tags-woocommerce","plugin_category-contact-forms","plugin_category-ecommerce","plugin_contributors-mike_cowobo","plugin_committers-mike_cowobo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gravity-forms-recently-viewed-products.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gravity-forms-recently-viewed-products\/assets\/screenshot-1.png?rev=912587","caption":"Recently viewed products in Gravity Forms entry"},{"src":"https:\/\/ps.w.org\/gravity-forms-recently-viewed-products\/assets\/screenshot-2.png?rev=912587","caption":"Gravity Forms email with Recently Viewed Products using merge tag"}],"raw_content":"<!--section=description-->\n<p>This plugin automatically adds Recently Viewed Products from WooCommerce to your form submissions, giving you insight into what products your visitors were interested in before sending their enquiry.<\/p>\n\n<p>Simply install the plugin and activate it. If both WooCommerce and Gravity Forms are set up on your website, you will start seeing the recently viewed products of your visitors in your form entry screen. To also add the data to your emails, use the <code>{recently_viewed_products}<\/code> merge tag.<\/p>\n\n<p><strong>Please note:<\/strong> This plugin does <em>not<\/em> add any extra tracking to your website. If you have WooCommerce installed, it will automatically track recently viewed products for each visitor in a cookie which this plugin uses to add to each form submission. When you use this plugin, make sure your privacy policy is clear on how you are using your visitors' click stream information.<\/p>\n\n<h3>For developers<\/h3>\n\n<p>This plugin is very extensible and makes it easy to implement different ecommerce backends or alternative tracking mechanisms altogether. To modify the tracking, either make a child class of <code>GF_Recently_Viewed_Products<\/code> and override the <code>_get_current_recently_viewed_products<\/code> method, or use the following filters:<\/p>\n\n<p><strong>For use with WooCommerce:<\/strong><\/p>\n\n<ul>\n<li><code>wc_gf_recently_viewed_product_ids<\/code>    (array) List of post ids<\/li>\n<li><code>wc_gf_recently_viewed_products_query<\/code> (array) Query for get_posts (use to change the post type)<\/li>\n<li><code>wc_gf_recently_viewed_products<\/code>       (array) List of posts<\/li>\n<\/ul>\n\n<p><strong>Without WooCommerce: (make sure to init the <code>GF_Recently_Viewed_Products<\/code> class yourself)<\/strong><\/p>\n\n<ul>\n<li><code>gform_recently_viewed_product_ids<\/code>    (array) List of post ids<\/li>\n<li><code>gform_recently_viewed_products_query<\/code> (array) Query for get_posts (use to change the post type)<\/li>\n<li><code>gform_recently_viewed_products<\/code>       (array) List of posts<\/li>\n<\/ul>\n\n<p>If you extend this plugin to<\/p>\n\n<!--section=installation-->\n<p>Install the plugin the normal way and activate it. If both WooCommerce and Gravity Forms are set up on your website, you will start seeing the recently viewed products of your visitors in your form entry screen. To also add the data to your emails, use the <code>{recently_viewed_products}<\/code> merge tag.<\/p>\n\n<!--section=faq-->\n<p>None yet.<\/p>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fix bug in merge tag when no data is available<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Release to WP.org<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>Pre-release on GitHub<\/li>\n<\/ul>","raw_excerpt":"Adds recently viewed products from WooCommerce to all Gravity Form submissions","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29165"}],"author":[{"embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mike_cowobo"}],"wp:attachment":[{"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29165"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29165"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29165"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29165"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29165"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/scn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}