Close

Profile: toanhnt

Avatar
PM

User posts

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

15 days ago

Hi Valentin Kirov,

That works great. Thank you so much for your help

18 days 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"

one month 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?

one month 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

one month 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

Bugs
one year ago

I've fixed the problem. Thanks

Bugs
one year ago

Just Installed the Pavillion theme 3.8, there's always a gap between "all categories" and categories on the left side. I've have submitted the ticket back and forth and still has not resolved. Nop-templates support said I've made changed to the style.css file but I never did. It takes 24 hrs for them to reply. Please help me solve this issue asap. site: http://uspedicurespa.com

3 years ago

Hi support team,

I don't want the filter to be shown on one category. 
In settings: Category Ids (split by comma):
There's no Id for category in Nopcommerce.
Please advise!

Thanks