Close

Profile: toanhnt

Avatar

User posts

Could you notify us here after implementation? thank you

Valentin wrote:
Hi, I need to add different url to second language for the info boxes. There is no point of having multi-language then point the url to English page. Please help

Hello toanhnt,

thank you for your consideration. That is a good suggestion and we will schedule it for implementation.


Hi,
When you say you will schedule for implementation, will that going to be for the next version or version 4.0 and 4.1? Thank you

Hi, I need to add different url to second language for the info boxes. There is no point of having multi-language then point the url to English page. Please help

Hi,

How to yo set 2 products per row on mobile? I was able to set it in version 3.9 by change
@media all and (min-width: 481px) to @media all and (min-width: 480px), but it does not seem to work on current version 4.1

Thank you

Hi,

How to yo set 2 products per row on mobile? I was able to set it in version 3.9 by change
@media all and (min-width: 481px) to @media all and (min-width: 480px), but it does not seem to work on current version 4.1

5 years ago

Hi Valentin Kirov,

That works great. Thank you so much for your help

5 years ago

Hello Valentin Kirov,

Thank you for your reply. What I mean is
how to add another widget zone under that but using different category ID for the new widget zone.
For example:

var categoryIds = new List<int> { 2, 3, 4 }
widgetZone = "categorydetails_top"
var categoryIds = new List<int> { 5, 6, 7 }
widgetZone = "example"

6 years ago

Valentin wrote:
Hello guys,
Is there a way that I can show my Jcarousel products in category of my choice ?

Hello,

Unfortunately, there is no such functionality in the JCarousel plug-in.

Still, there is something that can be done, but it is not highly recommended:

Lets say you use this widget zone: "categorydetails_top"

Inside the file(check if it is overridden in the theme folder): Views/Catalog/CategoryTemplate.ProductsInGridOrLines.cshtml

find this line:

@Html.Widget("categorydetails_top", Model.Id)


and replace it with these:

@{
  var categoryIds = new List<int> { 2, 3, 4 }; // Inside the curly brackets you can list all category IDs, comma separated

  if (categoryIds.Contains(Model.Id))
  {
    @Html.Widget("categorydetails_top", Model.Id)
  }
}



Hi, how to achieve this with new version nop4.0? Thanks


Hello toanhnt,

in order for the code, you already have to work in version 4.0 you need to replace this line of code:

@Html.Widget("categorydetails_top", Model.Id)


with this line of code:

@await Component.InvokeAsync("Widget", new { widgetZone = "categorydetails_top", additionalData = Model.Id })

Leave the rest the same and everything should work normally.


Thanks, it works great. One last question. How to add 2 widget zones or more with the same method ablove?

6 years ago

Deni wrote:
Hello guys,
Is there a way that I can show my Jcarousel products in category of my choice ?

Hello,

Unfortunately, there is no such functionality in the JCarousel plug-in.

Still, there is something that can be done, but it is not highly recommended:

Lets say you use this widget zone: "categorydetails_top"

Inside the file(check if it is overridden in the theme folder): Views/Catalog/CategoryTemplate.ProductsInGridOrLines.cshtml

find this line:

@Html.Widget("categorydetails_top", Model.Id)


and replace it with these:

@{
  var categoryIds = new List<int> { 2, 3, 4 }; // Inside the curly brackets you can list all category IDs, comma separated

  if (categoryIds.Contains(Model.Id))
  {
    @Html.Widget("categorydetails_top", Model.Id)
  }
}



Hi, how to achieve this with new version nop4.0? Thanks

6 years ago

Be able to add link to info boxes. There's no good just to see image and text, most of the time users would want to click on the image