Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

newShop

38 views
Skip to first unread message

ajay...@gmail.com

unread,
Aug 22, 2017, 12:33:24 AM8/22/17
to YesCart - pure eCommerce, platform with open source
Hi friends,




i have two shop in my yes-cart project .



1.yes-shop (default shop) . -  http://localhost:8080/yes-shop/
2.inn-shop (new shop) http://localhost:8083/inn-shop/







both are working proper but i don't like that i want 


1.yes-shop (default shop) . -  http://localhost:8080/yes-shop/
2.inn-shop (new shop)           http://localhost:8080/inn-shop/

no need to change the port 


if i will update  the catalog information depends on the shop will changed the catalog info 



please help me 





Thanks 
Ajay








Yes Cart

unread,
Aug 22, 2017, 3:10:57 AM8/22/17
to YesCart - pure eCommerce, platform with open source
Hi,

Use URL mapping for shop instances and then specify those domains in hosts file on your machine so that the domains point to local host.

1. Update your hosts file:

127.0.0.1 shop-yes.com
127.0.0.1 shop-inn.com

2. Put these urls in JAM for specific shop instance (shop's URL tab). Remove localhost from the URLs if was specified in there.

Then you will access each shop via:


For more details study the documentation on how YC works in general.

Regards,
YC team

Message has been deleted

ajay...@gmail.com

unread,
Sep 1, 2017, 2:11:41 AM9/1/17
to YesCart - pure eCommerce, platform with open source

hi i am not expecting like this which you given me 


Hi,

Use URL mapping for shop instances and then specify those domains in hosts file on your machine so that the domains point to local host.

1. Update your hosts file:

127.0.0.1 shop-yes.com
127.0.0.1 shop-inn.com

2. Put these urls in JAM for specific shop instance (shop's URL tab). Remove localhost from the URLs if was specified in there.

Then you will access each shop via:


For more details study the documentation on how YC works in general.




but i like this



1.yes-shop (default shop) . -  http://localhost:8080/yes-shop/
2.inn-shop (new shop)           http://localhost:8080/inn-shop/


please solve the my problem



Thanks
Ajay

ajay...@gmail.com

unread,
Sep 1, 2017, 4:18:59 AM9/1/17
to YesCart - pure eCommerce, platform with open source


t want like 



is this possible without updating my local system code if yes please tell me the step how i can do

like your sites



Thanks
Ajay 





On Tuesday, August 22, 2017 at 12:40:57 PM UTC+5:30, Yes Cart wrote:

Yes Cart

unread,
Sep 1, 2017, 2:40:11 PM9/1/17
to YesCart - pure eCommerce, platform with open source
Hi,

YC resolves shop by domain name, because paths are unreliable given the complexity of rewrite rules that are possible. Domain defines the shop and this is the only way it can work.

You referred to our demo urls:

but these are NOT different shops, these are 2 web applications, the regular YC and enterprise edition, but the shop is the same demo shop. For example try adding some items in your basket and then change URL, you will see that in the other application the basket will have same products. This is because both applications serve SINGLE shop. So it is not 2 shops but only 1. However the applications are different so you get different features on each one.

To have completely different shops: i.e. separate catalog branch, separate design, separate products, separate customer account etc, you MUST have different domains.

This is how YC works.

Now if you really want to have it your way. The only thing you can do is have 2 different war files. And each file has to connect to separate database. So you will need to databases as well. And then deploy both of your war files under same tomcat. The you could have what you want BUT it will be 2 completely separate databases. So you will not be able to share data between shops. In terms of YC those would be 2 completely separate instances.

Regards,
YC team

ajay...@gmail.com

unread,
Sep 4, 2017, 1:47:31 AM9/4/17
to YesCart - pure eCommerce, platform with open source
Hi yes-cart Team,


but whatever i have seen in you side there are 2 shop or 2 web application  but same domain name(http://demo.yes-cart.org)  only URI (/yes-shop or /yes-enterprise) are different 

is this possible to run 2 web application in same domain name.




Thanks
Ajay

Yes Cart

unread,
Sep 4, 2017, 5:29:53 AM9/4/17
to YesCart - pure eCommerce, platform with open source
Hi

A bit strange to hear "whatever" as a technical requirement. Not sure why you are trying to copy demo shop, non the less the answer to your "whatever" was in previous reply:

Now if you really want to have it your way. The only thing you can do is have 2 different war files. And each [war] file has to connect to separate database [through context.xml configured from env/ properties]. So you will need two databases as well. And then deploy both of your war files under same tomcat. The you could have what you want BUT it will be 2 completely separate databases. So you will not be able to share data between shops. In terms of YC those would be 2 completely separate instances.

Exact demo shop config is also in sources (env/demo), you can study it and make alike.

Regards,
YC team
Reply all
Reply to author
Forward
0 new messages