Close

Profile: SDobrev

Avatar

User posts

Hi,

Here is an example:

private IMyService _myService;

public IMyService MyService
{
    get
    {
        if (_myService == null)
        {
            _myService = EngineContext.Current.Resolve<IMyService>();
        }

        return _myService;
    }
}

6 years ago

Hi,

I checked the code and in version 3.8 the condition is checking only the MarkAsNew property of the product.
In version 3.9 (after version 24346) and 4.0 the MarkedAsNew condition is taking into consideration Mark as New Start Date and Mark as New End Date.

Hi,

Have you made any changes to the constructors of the nopCommerce controllers? If you have please use property injection instead of constructor injection.

Hello,

This problem is fixed. You have to update your theme to the latest version following the steps from this article: https://www.nop-templates.com/how-to-update-a-nopcommerce-theme

6 years ago

Hi,

Opening the category with viewMode=list or grid in the URL is setting the view mode.
http://demos.nop-templates.com/computers#/viewMode=list
Your approach to redirect to the page with viewMode parameter should work. The other variant is to change the view mode with JS/jQuery on page load.

Hi,

When the error page is shown there is always logged an error in the nopCommerce system log.

Monitor the log and if you find any error please send it to us. Now we do not have enough information to help you resolve the problem.

Hi,

Check the System Log in the admin panel. There should be an error logged.

6 years ago

Hi,

Yes, the plugin is taking into account the marked as new start date and end date.

6 years ago

Hi,

Could you please submit a ticket with URLs to your stores so we can further investigate this issue?

Thank you!

6 years ago

Hi Tommy,

In version 4.0 the code for adding widget zone is changed. Use this:

    @await Component.InvokeAsync("Widget", new { widgetZone = "custom_widget_zone" })