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

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?