Questions tagged [recently-viewed]

The tag has no usage guidance.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
169 views

Magento 1.9 Recently viewed products not displaying

<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->toHtml(); ?> This code suppose to output the recently viewed ...
2
votes
0answers
71 views

I am creating a custom widget “SPONSORED BEST SELLER PRODUCTS” block to show on home page. Bestseller.phtml file not rendering in the front end

This is my registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); This ...
2
votes
0answers
125 views

Magento 2: how to Get Customer Recently viewed product collection

How to get customer recently viewed product collection, I am using below code but not working anyone has an idea for same... Bellow code always return Null or blank array protected $recently_viewed; ...
1
vote
0answers
30 views

how to show recently viewed product after main content

i am want to show recently viewed product on all pages after main content. i have added new widget from Widgets option its working fine but its showing before main content on all pages: But i am ...
1
vote
0answers
20 views

magento2 recently viewed products collection is not working

I need magento2 recently viewed product collection I tried below code but not working $_recentlyViewedProductCollection = $this->reportProductViewed->getItemsCollection(); $...
1
vote
0answers
31 views

Magento2 Recent product view collection only cart page return any other page not return?

<?php namespace Logicrays\ProductSlider\Block; use Magento\Catalog\Block\Product\Context; use Magento\Catalog\Model\Product\Visibility; use Magento\Catalog\Model\ResourceModel\Product\...
1
vote
1answer
40 views

How to get Recently Viewed Product Widget without using widget or static block. Magento 2.3.1

I want to get the Recently Viewed Products without using Widget or static Block I tried this namespace PME\Hideprice\Block; class getTestingData extends \Magento\Framework\View\Element\Template { ...
1
vote
0answers
67 views

Magento 2 - Recently viewed product not working with FPC

Magento default functionality of recently viewed product uses the following event to save viewed history catalog_controller_product_view And it stores in following tables ...
1
vote
0answers
96 views

How to add Swatches options to Recently viewed UI component

How to add swatches options for product item to a Recently viewed UI component? I use the following code to show recently viewed block on the page <block class="Magento\Catalog\Block\Widget\...
1
vote
0answers
116 views

visitor_id null in report_viewed_product_index magento2

when visitor_id is null then recently viewed product not showing on frontend. why visitor_id saving 'null' in table?
1
vote
1answer
257 views

(Solved) How to reach “add to cart” button and price inside Recently Viewed Products Widget in magento 2

I need to make some custom changes on add to cart button and item prices, in Recently Viewed Products widget. For add to cart button, i need some custom php statement, And for prices i need old ...
0
votes
0answers
16 views

Recently Viewed Products Items not updating for logged user

I have issues for logged in user only, if not logged in then updating properly. My code on: Magento_Theme\layout\default.xml <referenceContainer name="page.bottom.container"> <...
0
votes
1answer
19 views

Magento 1 - Are recently viewed products unique to the current user only?

I've been using the recently viewed block on the majority of Magento 1 websites I've created and I always thought the recently block was unique to the current user (guest or registered). A client has ...
0
votes
0answers
19 views

Recently Viewed Products - Add to wishlist button not working

In Recently Viewed Product block, there are links for adding product to wishlist. These links are not working because data-post attribute is empty. File path:- /vendor/magento/module-reports/view/...
0
votes
1answer
37 views

Magento 2: display recently viewed product on product detail page

I want to display recently viewed products on the product detail page with slider.
0
votes
1answer
37 views

Magento 2 how to add a widget Recently viewed products

If you have add product review and rating and approved admin side. After you have seen on recently view product.
0
votes
0answers
29 views

Extending Recently Viewed & Recently Compared Grids

I am struggling to extend the following two files in Magento 2.3.1 \vendor\magento\module-reports\view\frontend\templates\widget\viewed\content\viewed_grid.phtml and \vendor\magento\module-...
0
votes
0answers
28 views

Recent viewed product conflcit with infiniteScroll

I have installed the Infinite scroll extension On my category Listing page. I have also added the feature of recent viewed product, but it not compatible with infinite scoll. I have done the changes ...
0
votes
1answer
59 views

Magento 1.9 Save recently viewed products in cookie

I need to save the recently viewed products in a cookie. The way that if there's no recently viewed products in session it reads it from the cookie. But I can't find where to find this exactly. I'm ...
0
votes
0answers
21 views

Display the brand and products first when user revisits the site which is browse by user in last time

For my Magento 1.9.1, I want to save the products and brands which is visited by the user and show those Products first when he revisits the site. I have tried with recently view block but it's not ...
0
votes
0answers
203 views

keep recently viewed products for guest users

I have a recently viewed block, it works fine with registered users and with guest users, but when guest users close the browser and enter the web again, the recently viewed products are empty. I ...
0
votes
0answers
507 views

Magento 2 How To Get Recently View Product Collection All Users

How can i configure the recently viewed products widget to show the products that all visitors recently viewed Ref:Recently viewed products from all users Let me know how can i do it
0
votes
1answer
329 views

How to check if there are recently viewed products

I need to do a check if there is any recently viewed product and if so, then need to display some text. Does anyone know, how to check if there are recently viewed products?