simplcommerce / SimplCommerce

A simple, cross platform, modulith ecommerce system built on .NET
http://www.simplcommerce.com
Apache License 2.0
4.2k stars 1.59k forks source link

Integration with Piranha CMS #426

Open tidyui opened 6 years ago

tidyui commented 6 years ago

Hi there @thiennn! I'm the lead developer for @PiranhaCMS, an open source CMS for .NET that's been around since 2011. In december last year I released the completely rewritten version for .NET core (4.0) and I'm currently working on version 4.3.

I would be really interested in providing a good integration with you E-commerce solution as this would be a perfect fit for both sides :) I haven't had time yet to look at the architecture of SimplCommerce, but if you think it sounds interesting I'd be more than happy to have a discussion regarding how we could integrate the systems in the best possible way!

Regards!

psijkof commented 6 years ago

Yes, we had the same thoughts, and this is great that @tidyui is proposing this!

tidyui commented 6 years ago

Yes, I'm waiting for @thiennn to respond before taking any action though as it's probably better to discuss briefly how to do it in the best way before getting started.

thiennn commented 6 years ago

Sorry I haven't had time to look at PiranhaCMS and have no idea how it should be integrated.

tidyui commented 6 years ago

I understand that, I have only had the time to glance at the code for SimpleCommerce, but for starters.

Permalinks

By looking at your demo site I can see that you intercept requests for (as an example):

and probably dozens of other pages I'm not including here. The main pages for browsing the shop itself is obviously /category-slug & /product-slug.

Routing

A key factor to make a nice integration with any CMS would probably be to be able to configure a root prefix for the routing of SimplCommerce, for example positioning all routes below /products/ or /shop/. This might be possible already, but if this exists then it would be easy to put the rest of the website content on other routes.

Web structure

Also, is the web application part of SimplCommerce placed in an Area, or do we run the risk of having name collisions on shared views when running it in the same application as the CMS?

Just some starting questions that came to mind :)

tidyui commented 6 years ago

And to clarify how Piranha works. The entire routing is basically just a couple of middleware components that checks the incoming requests, and if they exist in the CMS it just rewrites the request to the appropriate route. After that it's just plain MVC

praveensewak commented 6 years ago

Hello gents! Any movement with this? I come from NopCommerce background, where I have developed a custom CMS (private unfortunately) on top of it. I have another big project coming up, and been looking around and this 'marriage' would be awesome solution for it. Happy to contribute once the ball gets rolling.

tidyui commented 6 years ago

I haven’t received any feedback so I guess I’ll just have to try it out. Problem is I’m knee deep in finishing up the 4.4 release, but after that I could absolutely put some effort into this!

thiennn commented 6 years ago

In SimplCommere, routing can be categorized into 2 groups:

The dynamic route is executed first, if there are no item matched then it will continue to go to static routes, if static routes not matched then fallback to default.

tidyui commented 6 years ago

Thanks! Like I said I'd be more than happy to try it out. However I'd like to know some more from @praveensewak & @psijkof how an ideal integration would look like. Is it sufficient to have Piranha & SimplCommerce running in the same application, with SimplCommerce on a certain route prefix, and have two different admin interfaces?

Or are you hoping to achieve a tighter integration, like presenting products from SimplCommerce in a Piranha page (or the other way around, loading up CMS-data from Piranha into the SimplCommerce pages).

Regards

bendandoSolo commented 5 years ago

Just started using Piranha and really like it, would be great to have an integrated Ecommerce platform, please let me know if this progresses

hishamco commented 5 years ago

@tidyui @thiennn the integration will be cool, but:

1- How the integration will be 2- What could be integrated

but I think Piranha CMS may use SimplCommerce as e-Commerce module

dinukasal commented 3 years ago

@praveensewak @tidyui I am also going to integrate nopcommerce and piranha. Did any update on this discussion happen?

tnlthanzeel commented 3 years ago

@tidyui , hi. we are about to use piranha cms in our company. is it possible to add something like shopify to piranha cms?