Read more option on the category page

6 months ago
rbrons wrote:

I don't know what you mean with: Are you currently utilizing the default nopCommerce theme?

Are you currently using defaut nopCommerce theme ?
rbrons wrote:

this is the page I am testing on: https://www.kassaplan.nl.vloeipapier-comingsoon

The page is not coming when i am browsing. Is there any country restrictions at your site?

//Rashed
6 months ago
hi,

i am not using the default theme, but emporium.

sorry, made a typo in the url.
https://kassaplan.nl/vloeipapier-comingsoon

thank you for looking into this.
6 months ago
hi Rashed,

I got a message that you had replied on my last comment, but I can't see any new replies.
Did you perhaps had the time to look my issue why the ream more and read less doesn't work on mobile?

Thank you.
6 months ago
You have previously written the CSS for the .text class in a parent file. That is the cause of the problem. Replace previous <style></style> block with this
<style>
  .text {
    overflow: hidden;
    max-height: 400px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .read-more {
    color: #4ab2f1;
    border: 0;
    background: none;
    padding-top: 10px;
  }

  .text-container .text {
    white-space: normal;
  }
</style>


//Rashed
6 months ago
hi Rashed,

Thank you very much, it works perfectly.

regards,
Rutger
4 months ago
hi Rashed,

i have got an issue with the code for the read more. at first i thought it was working perfectly but when i have more articles in the category I got an  error to load more articles. I don't use page number but the page will growth automatically with more articles as you scroll down.
can you have a look why new products won't load?
url: https://kassaplan.nl/vloeipapier-comingsoon

thank you in advance.
4 months ago
@rbrons ,

I think this error is not related to the read more option.
Check the error log from admin -> system -> log

//Rashed
4 months ago
hi, Rashed,

Thank you for your quick responds.

this is the error I got.
The model item passed into the ViewDataDictionary is of type 'SevenSpikes.Nop.Plugins.AjaxFilters.Models.ProductsModel', but this ViewDataDictionary instance requires a model item of type 'Nop.Web.Models.Catalog.CategoryModel'.

does this make any sense to you?

Thank you.
4 months ago
RE: "...SevenSpikes.Nop.Plugins.AjaxFilters..."
It would be best to contact nopTemplates support.
2 months ago
nopStation wrote:
You have previously written the CSS for the .text class in a parent file. That is the cause of the problem. Replace previous <style></style> block with this
<style>
  .text {
    overflow: hidden;
    max-height: 400px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .read-more {
    color: #4ab2f1;
    border: 0;
    background: none;
    padding-top: 10px;
  }

  .text-container .text {
    white-space: normal;
  }
</style>


//Rashed


Hi Rashed - Just jumping on this myself too.. I am running 4.40.4 and have added the stle and the script etc However the read more isnt expanding the text - I'm not crash hot at this kind of thing, so can I ask if anything changed that would effect this script from working between 4.40.4 and 4.5?

Thanks

Steve