Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [recently-viewed]

The tag has no usage guidance.

1
vote
1answer
33 views

How to get recently viewed product collection in observer Magento 2

I want to fetch a recently viewed products collection in the observer and by using that collection I want to add my custom product in that collection. Following Things That I Want To Achieve. On ...
4
votes
1answer
42 views

Creating custom widget, how to use existing block like “RECENTLY VIEWED PRODUCTS” for a custom block, so that It should support all magento themes

registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); module.xml <...
2
votes
0answers
31 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 ...
3
votes
3answers
52 views

Get recently viewed products excluding particular product ID in Magento 2

I need to get recently viewed products for a customer in a product view but excluding the current product the customer is viewing. I have, class Index extends Action { protected $recentlyViewed; ...
0
votes
1answer
23 views

Own recently viewed widget (magento 2)

I want to make own recently viewed widget, cause this standard loads items with javascirpt (I want to have items directly). So I made this code, based on other posts: namespace AA\WidgetRecently\...
0
votes
0answers
25 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\...
0
votes
0answers
38 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?
0
votes
1answer
137 views

Recently viewed products not showing for NOT LOGGED CUSTOMERS in magento 2

Why recently view products not showing on product view page if any customer not logged. When customer logged in their account then recently view product showing on product view page. if customers log ...
5
votes
1answer
194 views

How to get recently viewed products by Customer Id in Model file Magento 2?

Create Recently Viewed Products for Model file in Magento 2 ?
2
votes
2answers
700 views

How to get recently viewed products collection of Customer Magento 2?

Magento 2 get recently viewed products collection of Customer (Using customer ID) programmatically I tried this solution But I want recently viewed products collection. I tried below solution too ...
0
votes
1answer
42 views

Magento 2.2: How to remove add_to_wishlist button from, and add SKU view in, recently viewed products widget in module

I want a extra tab on product page with 4 previously viewed products. Besides that I want to remove "add_to_cart,add_to_compare,add_to_wishlist" buttons and add SKU attribute to recently viewed ...
2
votes
2answers
90 views

Magento 2 Get Product ViewCount Value By Factory

Trying to get most viewed product view count value, I need to use it in another method calculations. E.g.(if most viewed product view count value is 100 then I need this value to be returned) What am ...
2
votes
0answers
100 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
1answer
435 views

Override recently viewed widget in magento 2

I have added a recently viewed widget in home page I want to remove add to cart button in the recently viewed widget.
0
votes
1answer
138 views

M2 > Recently viewed cookie lifetime

In magento 2.2.5 I added a recently viewed widget block that way: <block class="Magento\Catalog\Block\Widget\RecentlyViewed" name="category.recently_viewed" template="Magento_Catalog::product/...
1
vote
1answer
227 views

M2.2 Recently view products remove Learn More Link

I have created a Recently Viewed Products widget and in the widget option I can select what is shown for every product, attributes and buttons. In the attributes there is an option of a Learn More ...
0
votes
0answers
47 views

How can I check custom attribute of a product in file vendor/magento/module-catalog/view/base/web/template/product/list/listing.html?

I have added the recently viewed product's widget in CMS block in admin and I have added a code in .phtml files (wherever I need to show recently viewed products) to display this block using the ...
3
votes
1answer
266 views

Core configuration of Recently Viewed/Compared Products | Synchronize widget products with backend storage | Magento 2

Can someone explain what enabling this option do: Store -> Settings -> Configuration -> Catalog -> Catalog -> Recently Viewed/Compared Products: Synchronize widget products with backend storage: ...
1
vote
1answer
101 views

How can i get viewed product also viewed other product list and also bought product list?

I am using magento ver 1.9.2.3 , how can i get viewed product also viewed product list and also bought product based on my customer list using available options?
2
votes
3answers
1k views

Get recently viewed products programmatically in Magento 2.2.2

I am trying to fetch recently viewed products. I tried to implement the provided code from here but did not get any success.
0
votes
2answers
329 views

Remove current product from Recently Viewed Products on the product view page

Basically the same question was asked here: Magento 2 shows current product as recently viewed product but the answer there doesn't apply for Magento 2.2+ (or which ever version introduced the ...
0
votes
0answers
63 views

Magento 1.9.2.4 : How to clear recently viewed products list?

I need to implement a button that clears all the items from the recently viewed products list, so a user can click on that button and clear that list and start over again. I know that the recently ...
0
votes
0answers
20 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
126 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 ...
1
vote
1answer
133 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
440 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
276 views

How to check if there are recently viewed products

In Magento 2, 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? Thanks in ...
3
votes
1answer
152 views

turpentine for varnish recently viewed products not working

I am running turpentine 0.7.10 on Magento CE 1.9.3.7. The recently viewed products block at the bottom of my list pages displays products from other customers sessions when varnish is on. I saw a lot ...
1
vote
2answers
236 views

How to override widget_recently_viewed.xml in Magento 2

I'm facing an issue with overriding module-catalog/view/frontend/ui_component/widget_recently_viewed.xml If I copy it to {theme_dir}/Magento_Catalog/ui_component/widget_recently_viewed.xml My ...