Close

Profile: IvanSlater

Avatar

User posts

Custom Rules
9 years ago

@iliyan.tanev

can you help?

Thanks!

Custom Rules
9 years ago

Hi!

This is my DependencyRegistrar.cs


namespace Nop.Plugin.Misc.NewReminderRules
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        {
            builder.RegisterType<MakeCommentRulesService>().As<IReminderRule>().InstancePerHttpRequest();
            builder.RegisterType<BuyMoreRulesService>().As<IReminderRule>().InstancePerHttpRequest();
        }




        public int Order
        {
            get { return 0; }
        }
    }
}


Is anything wrong?

Custom Rules
9 years ago

Btw, Im getting this error when click Run Now from customer reminder task, in task manager:

Exception type: ObjectDisposedException 
    Exception message: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.
   at Autofac.Core.Lifetime.LifetimeScope.CheckNotDisposed()

Im using InstancePerHttpRequest in DependencyRegistrar class (nop 3.3)

I have uninstalled and reinstalled my plugin, but same error.

help!

Custom Rules
9 years ago

Is there a way to clear or truncate all messages sent? From Nop Admin (3.3).

To the top
9 years ago

Hi!

How to make page go to the top, after filtering and change page. I have 24 products page size and the scroll is big.

Thanks!

9 years ago

Forget it.

Delete topic is not working!

thanks!

Custom Rules
9 years ago

Hi. Thanks!!

Can you show me a sample, please?

Ivan.

Custom Rules
9 years ago

I have created a plugin, but my new reminders are not displayed in Reminder Rule list.

My plugin has 2 classes inside Services folder. Each for a new reminder I want.

Is the DependencyRegistrar file needed? How to create it, like this?


        public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        {
            builder.RegisterType<Reminder1Service>().As<IReminderRule>().InstancePerHttpRequest();
            builder.RegisterType<Reminder2Service>().As<IReminderRule>().InstancePerHttpRequest();
        }


My plugin class is public class NewReminderRulesPlugin : BasePlugin, IMiscPlugin.
Does it need some extra code?

Thanks!!!

Sprites
10 years ago

Hi Boyko.

Thanks for the answer. In our case, we use CDN to load images, so, each ribbon comes from a differente cdn server, what is creating multiple requests.

You can enable CDN and see it happens by webpagetest.org.

Thanks!!

Sprites
10 years ago

Hi there.

As you know, product ribbons do a lot of extra requests to get the ribbon images.
It makes one request for each ribbon from each product, that is a lot of requests.

So, should be nice use sprites or less request.

It makes site slowers and increase server usage.

Can you take a look?