New Type of Product - Plugin?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hey everyone!

I'm looking at adding a new type of product, quite similar to a Gift Card but is handled differently during checkout.

In an old version of NOP that is heavily customized, I altered the core source to implement this.  We are now upgrading to 3.7 so i'd like to use plugins, if possible.

Question is:
Is it possible to create a plugin to add a new product type (such as adding a checkbox to the Admin product details page) and showing it in the front-end store without changing the Core source?  If so, can anyone point me to an example plugin?  I'm trying learn how to develop plugins but haven't seen anything like this yet.

Thanks!

Ryan
8 years ago
Yes you can do that. For that you have override admin product route and implement your own design.
8 years ago
anik1991 wrote:
Yes you can do that. For that you have override admin product route and implement your own design.


Thanks very much.  Would I also override the checkout process in the plugin as well?
8 years ago
rymos wrote:
Hey everyone!

I'm looking at adding a new type of product, quite similar to a Gift Card but is handled differently during checkout.

In an old version of NOP that is heavily customized, I altered the core source to implement this.  We are now upgrading to 3.7 so i'd like to use plugins, if possible.

Question is:
Is it possible to create a plugin to add a new product type (such as adding a checkbox to the Admin product details page) and showing it in the front-end store without changing the Core source?  If so, can anyone point me to an example plugin?  I'm trying learn how to develop plugins but haven't seen anything like this yet.

Thanks!

Ryan


You can do it. But I think if you use it for your own or one project changing core code is better. And already   you know where need to change. Any new feature can easily added by customizing core code. On the other hand Plugin is better for generalizing.                                                                                               Note: I expect Nop Team explanation about it. Am I right or wrong?
8 years ago
Thanks so much for the Reply.  I see what you're saying and I agree.  In our case, only some of the stores will have this product and, as a result, i'd prefer not to change the Core if i don't have to.
8 years ago
rymos wrote:
Yes you can do that. For that you have override admin product route and implement your own design.

Thanks very much.  Would I also override the checkout process in the plugin as well?

yes you can override checkout process from plugin.
8 years ago
anik1991 wrote:
Yes you can do that. For that you have override admin product route and implement your own design.

Thanks very much.  Would I also override the checkout process in the plugin as well?
yes you can override checkout process from plugin.


Great!  I'm not sure where to start.  Can you point me to an example plugin or something to get me started?
8 years ago
sohelcse10_duet wrote:

You can do it. But I think if you use it for your own or one project changing core code is better. And already   you know where need to change. Any new feature can easily added by customizing core code. On the other hand Plugin is better for generalizing.                                                                                               Note: I expect Nop Team explanation about it. Am I right or wrong?


Keep in mind that nopCommerce 4.0 will change a lot (3.8 will be the last one using MVC 5), so, make it easier and more flexible as you can, will help you upgrading later.
8 years ago
ivanslater wrote:

You can do it. But I think if you use it for your own or one project changing core code is better. And already   you know where need to change. Any new feature can easily added by customizing core code. On the other hand Plugin is better for generalizing.                                                                                               Note: I expect Nop Team explanation about it. Am I right or wrong?

Keep in mind that nopCommerce 4.0 will change a lot (3.8 will be the last one using MVC 5), so, make it easier and more flexible as you can, will help you upgrading later.

Yes but it will release at least 1.5 year and needs to do lots of changes. By doing it in core code or plugin. we have to change a lot then.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.