recently viewed product collection is empty in magento 2Images are not loading after upgrade to Magento 2.3.0How can i rewrite TierPrice Block in Magento2Update block arguemnts in xml file (Recommended way not working)keep recently viewed products for guest usersM2 > Recently viewed cookie lifetimeOverride recently viewed widget in magento 2Magento 2: how to Get Customer Recently viewed product collectionGet recently viewed product collection Magento 2.3.1Magento 1.9 Recently viewed products not displayingMagento 2 - Recently viewed product collection from ModelMove recently viewed product or completely remove it

What did the 8086 (and 8088) do upon encountering an illegal instruction?

Was the Lonely Mountain, where Smaug lived, a volcano?

How do I properly use a function under a class?

What's the difference between DHCP and NAT? Are they mutually exclusive?

Parsing text written the millitext font

How can I find out about the game world without meta-influencing it?

Is Jesus the last Prophet?

Purpose of cylindrical attachments on Power Transmission towers

Part of my house is inexplicably gone

How to represent jealousy in a cute way?

Why is it bad to use your whole foot in rock climbing

How to import .txt file with missing data?

Why are backslashes included in this shell script?

A team managed by my peer is close to melting down

Is the first of the 10 Commandments considered a mitzvah?

Keeping track of theme when improvising

Why are ambiguous grammars bad?

Can you open the door or die? v2

Placement of positioning lights on A320 winglets

Are skill challenges an official option or homebrewed?

What publication claimed that Michael Jackson died in a nuclear holocaust?

How can religions without a hell discourage evil-doing?

Can I attach a DC blower to intake manifold of my 150CC Yamaha FZS FI engine?

Is it true that "only photographers care about noise"?



recently viewed product collection is empty in magento 2


Images are not loading after upgrade to Magento 2.3.0How can i rewrite TierPrice Block in Magento2Update block arguemnts in xml file (Recommended way not working)keep recently viewed products for guest usersM2 > Recently viewed cookie lifetimeOverride recently viewed widget in magento 2Magento 2: how to Get Customer Recently viewed product collectionGet recently viewed product collection Magento 2.3.1Magento 1.9 Recently viewed products not displayingMagento 2 - Recently viewed product collection from ModelMove recently viewed product or completely remove it






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have added a code in Magento_Catalog/layout/catalog_product_view.xml



<referenceBlock name="product.info.details">

<block class="MagentoReportsBlockProductWidgetViewed" name="recently_viewed" template="Magento_Reports::widget/viewed/content/viewed_grid.phtml" group="detailed_info">
<arguments>
<argument translate="true" name="title" xsi:type="string">Recently Viewed</argument>
<argument name="sort_order" xsi:type="string">50</argument>
</arguments>
<action method="setPageSize">
<argument name="page_size" xsi:type="number">4</argument>
</action>
</block>
</referenceBlock>


The above code showing only the recently viewed tab, but products are not showing.



Here i am attaching the screenshot,



enter image description here



Please anyone look into it and update me. Thanks










share|improve this question




























    0















    I have added a code in Magento_Catalog/layout/catalog_product_view.xml



    <referenceBlock name="product.info.details">

    <block class="MagentoReportsBlockProductWidgetViewed" name="recently_viewed" template="Magento_Reports::widget/viewed/content/viewed_grid.phtml" group="detailed_info">
    <arguments>
    <argument translate="true" name="title" xsi:type="string">Recently Viewed</argument>
    <argument name="sort_order" xsi:type="string">50</argument>
    </arguments>
    <action method="setPageSize">
    <argument name="page_size" xsi:type="number">4</argument>
    </action>
    </block>
    </referenceBlock>


    The above code showing only the recently viewed tab, but products are not showing.



    Here i am attaching the screenshot,



    enter image description here



    Please anyone look into it and update me. Thanks










    share|improve this question
























      0












      0








      0








      I have added a code in Magento_Catalog/layout/catalog_product_view.xml



      <referenceBlock name="product.info.details">

      <block class="MagentoReportsBlockProductWidgetViewed" name="recently_viewed" template="Magento_Reports::widget/viewed/content/viewed_grid.phtml" group="detailed_info">
      <arguments>
      <argument translate="true" name="title" xsi:type="string">Recently Viewed</argument>
      <argument name="sort_order" xsi:type="string">50</argument>
      </arguments>
      <action method="setPageSize">
      <argument name="page_size" xsi:type="number">4</argument>
      </action>
      </block>
      </referenceBlock>


      The above code showing only the recently viewed tab, but products are not showing.



      Here i am attaching the screenshot,



      enter image description here



      Please anyone look into it and update me. Thanks










      share|improve this question














      I have added a code in Magento_Catalog/layout/catalog_product_view.xml



      <referenceBlock name="product.info.details">

      <block class="MagentoReportsBlockProductWidgetViewed" name="recently_viewed" template="Magento_Reports::widget/viewed/content/viewed_grid.phtml" group="detailed_info">
      <arguments>
      <argument translate="true" name="title" xsi:type="string">Recently Viewed</argument>
      <argument name="sort_order" xsi:type="string">50</argument>
      </arguments>
      <action method="setPageSize">
      <argument name="page_size" xsi:type="number">4</argument>
      </action>
      </block>
      </referenceBlock>


      The above code showing only the recently viewed tab, but products are not showing.



      Here i am attaching the screenshot,



      enter image description here



      Please anyone look into it and update me. Thanks







      magento2 layout collection recently-viewed






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 6 at 7:17









      jafar pinjarjafar pinjar

      1,001419




      1,001419




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Try This :-



          <block class="MagentoCatalogBlockWidgetRecentlyViewed" name="recently_viewed" template="Magento_Catalog::product/widget/viewed/grid.phtml" after="-">
          <arguments>
          <argument name="uiComponent" xsi:type="string">widget_recently_viewed</argument>
          <argument name="page_size" xsi:type="number">4</argument>
          <argument name="show_attributes" xsi:type="string">name,image,price,learn_more</argument>
          <argument name="show_buttons" xsi:type="string">add_to_cart,add_to_compare,add_to_wishlist</argument>
          </arguments>
          </block>





          share|improve this answer

























          • I am trying include this in tabs, can i use this code?

            – jafar pinjar
            Jun 6 at 7:36











          • yes you can try

            – Rk Rathod
            Jun 6 at 7:38











          • yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

            – jafar pinjar
            Jun 6 at 7:41











          • please attach screen-shot

            – Rk Rathod
            Jun 6 at 7:49











          • thanks, i made it working..

            – jafar pinjar
            Jun 6 at 8:01











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277428%2frecently-viewed-product-collection-is-empty-in-magento-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Try This :-



          <block class="MagentoCatalogBlockWidgetRecentlyViewed" name="recently_viewed" template="Magento_Catalog::product/widget/viewed/grid.phtml" after="-">
          <arguments>
          <argument name="uiComponent" xsi:type="string">widget_recently_viewed</argument>
          <argument name="page_size" xsi:type="number">4</argument>
          <argument name="show_attributes" xsi:type="string">name,image,price,learn_more</argument>
          <argument name="show_buttons" xsi:type="string">add_to_cart,add_to_compare,add_to_wishlist</argument>
          </arguments>
          </block>





          share|improve this answer

























          • I am trying include this in tabs, can i use this code?

            – jafar pinjar
            Jun 6 at 7:36











          • yes you can try

            – Rk Rathod
            Jun 6 at 7:38











          • yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

            – jafar pinjar
            Jun 6 at 7:41











          • please attach screen-shot

            – Rk Rathod
            Jun 6 at 7:49











          • thanks, i made it working..

            – jafar pinjar
            Jun 6 at 8:01















          1














          Try This :-



          <block class="MagentoCatalogBlockWidgetRecentlyViewed" name="recently_viewed" template="Magento_Catalog::product/widget/viewed/grid.phtml" after="-">
          <arguments>
          <argument name="uiComponent" xsi:type="string">widget_recently_viewed</argument>
          <argument name="page_size" xsi:type="number">4</argument>
          <argument name="show_attributes" xsi:type="string">name,image,price,learn_more</argument>
          <argument name="show_buttons" xsi:type="string">add_to_cart,add_to_compare,add_to_wishlist</argument>
          </arguments>
          </block>





          share|improve this answer

























          • I am trying include this in tabs, can i use this code?

            – jafar pinjar
            Jun 6 at 7:36











          • yes you can try

            – Rk Rathod
            Jun 6 at 7:38











          • yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

            – jafar pinjar
            Jun 6 at 7:41











          • please attach screen-shot

            – Rk Rathod
            Jun 6 at 7:49











          • thanks, i made it working..

            – jafar pinjar
            Jun 6 at 8:01













          1












          1








          1







          Try This :-



          <block class="MagentoCatalogBlockWidgetRecentlyViewed" name="recently_viewed" template="Magento_Catalog::product/widget/viewed/grid.phtml" after="-">
          <arguments>
          <argument name="uiComponent" xsi:type="string">widget_recently_viewed</argument>
          <argument name="page_size" xsi:type="number">4</argument>
          <argument name="show_attributes" xsi:type="string">name,image,price,learn_more</argument>
          <argument name="show_buttons" xsi:type="string">add_to_cart,add_to_compare,add_to_wishlist</argument>
          </arguments>
          </block>





          share|improve this answer















          Try This :-



          <block class="MagentoCatalogBlockWidgetRecentlyViewed" name="recently_viewed" template="Magento_Catalog::product/widget/viewed/grid.phtml" after="-">
          <arguments>
          <argument name="uiComponent" xsi:type="string">widget_recently_viewed</argument>
          <argument name="page_size" xsi:type="number">4</argument>
          <argument name="show_attributes" xsi:type="string">name,image,price,learn_more</argument>
          <argument name="show_buttons" xsi:type="string">add_to_cart,add_to_compare,add_to_wishlist</argument>
          </arguments>
          </block>






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 6 at 8:06

























          answered Jun 6 at 7:24









          Rk RathodRk Rathod

          2,261315




          2,261315












          • I am trying include this in tabs, can i use this code?

            – jafar pinjar
            Jun 6 at 7:36











          • yes you can try

            – Rk Rathod
            Jun 6 at 7:38











          • yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

            – jafar pinjar
            Jun 6 at 7:41











          • please attach screen-shot

            – Rk Rathod
            Jun 6 at 7:49











          • thanks, i made it working..

            – jafar pinjar
            Jun 6 at 8:01

















          • I am trying include this in tabs, can i use this code?

            – jafar pinjar
            Jun 6 at 7:36











          • yes you can try

            – Rk Rathod
            Jun 6 at 7:38











          • yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

            – jafar pinjar
            Jun 6 at 7:41











          • please attach screen-shot

            – Rk Rathod
            Jun 6 at 7:49











          • thanks, i made it working..

            – jafar pinjar
            Jun 6 at 8:01
















          I am trying include this in tabs, can i use this code?

          – jafar pinjar
          Jun 6 at 7:36





          I am trying include this in tabs, can i use this code?

          – jafar pinjar
          Jun 6 at 7:36













          yes you can try

          – Rk Rathod
          Jun 6 at 7:38





          yes you can try

          – Rk Rathod
          Jun 6 at 7:38













          yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

          – jafar pinjar
          Jun 6 at 7:41





          yes, this working for me, thanks, can we resize the product image there, like upsell prdoucts image size.

          – jafar pinjar
          Jun 6 at 7:41













          please attach screen-shot

          – Rk Rathod
          Jun 6 at 7:49





          please attach screen-shot

          – Rk Rathod
          Jun 6 at 7:49













          thanks, i made it working..

          – jafar pinjar
          Jun 6 at 8:01





          thanks, i made it working..

          – jafar pinjar
          Jun 6 at 8:01

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277428%2frecently-viewed-product-collection-is-empty-in-magento-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

          Log in Navigation menu

          Invalid response line returned from server: HTTP/2 401 | ErrorPlease Please Help With Error 500 Internal Server Error after upgrading from 1.7 to 1.9Unable to place new customer orders in admin backendMagento - For “Manage Categories” Forbidden You do not have permission to access this documentHTTP ERROR 500 when using require(_once) app/Mage.phpMemcached causing Web Setup Wizard ErrorCould not create an acl object: Invalid XMLAn error occurred on the server. Please try to place the order againInvalid response line returned from server: HTTP/2 200 - message after update to 2.1.7Magento-CE 2.3.0 installation error on XamppMagento 2.2.6- After Migration all default Payment Methods are not working fine