Webshop Plus - subdomains?
Webshop Plus - subdomains?
I have subdomains on my website - can I have a webshop on each of those domains? I haven't looked at each of the PHP files, but is it possibly relatively easy to change where Webshop thinks is the root?
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus - subdomains?
You can have separate FULL installations of Webshop Plus in any of your subdomains, as long as you follow the correct folder structure.
It would be rather hard (changing all links) to have a central installation of the Webshop backend, then have the public pages installed in multiple subdomains.
It would be rather hard (changing all links) to have a central installation of the Webshop backend, then have the public pages installed in multiple subdomains.
www.dbtechnosystems.com
Re: Webshop Plus - subdomains?
Thanks for the prompt reply.
I am not trying to have a single back-end, my clients would not like that. I tried putting the cart in the root of a subdomain, but it keeps going to the cart in the root of the parent domain.
For example, my main site is www.red.com (Site names are fake, of course)
My subdomain is hosted at www.red.com\blue
www.blue.com takes the browser to the site in the subdomain, but the user never sees the path from red.com. I think that's a good description of subdomains.
I have a test cart in www.red.com\cart
and another test cart in www.red.com\blue\cart.
When I put www.blue.com/cart into the browser, I get the cart in www.red.com
Any tips or did I do something wrong?
I am not trying to have a single back-end, my clients would not like that. I tried putting the cart in the root of a subdomain, but it keeps going to the cart in the root of the parent domain.
For example, my main site is www.red.com (Site names are fake, of course)
My subdomain is hosted at www.red.com\blue
www.blue.com takes the browser to the site in the subdomain, but the user never sees the path from red.com. I think that's a good description of subdomains.
I have a test cart in www.red.com\cart
and another test cart in www.red.com\blue\cart.
When I put www.blue.com/cart into the browser, I get the cart in www.red.com
Any tips or did I do something wrong?
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus - subdomains?
I confirm that you CAN have full installations in subdomains (in this case, since these subdomains are independent domains, simply hosted in the same aacount, they are called addon domains)
In my own site, I have installed, for demo purposes, more than 10 carts, all of them like you described.
Please use my contact form to send me the actual (real) URLs so I can test it.
In my own site, I have installed, for demo purposes, more than 10 carts, all of them like you described.
Please use my contact form to send me the actual (real) URLs so I can test it.
www.dbtechnosystems.com
Re: Webshop Plus - subdomains?
Thanks again. Before that I want to check my installation again and make doubly sure that I did the install as described.
Re: Webshop Plus - subdomains?
Naval, I wonder if I installed the cart incorrectly?
I tried using your help form on the cart, but the 500-word limit got in the way of my explanation.
I am just working with the demo wbs file, so the admin passwords are still default.
I FTP'd the contents of cart in the zip file to the cart folder on my server (www.mmdv.com/cart).
I changed the index page text slightly in webshop_plus3.wbs so that I would know that I was looking at the correct page.
I published the entire website to www.mmdv.com/cart
When I browse to www.mmdv.com/cart, I get the original index.php file.
But, then I realized that WWB published the index.php file in www.mmdv.com/cart/WB8/webshop_plus_v3_2
For some reason, when I enter the full path into the browser (www.mmdv.com/cart/WB8/webshop_plus_v3_2/index.php) I get nothing.
Where did I goof?
Thanks,
Steve
I tried using your help form on the cart, but the 500-word limit got in the way of my explanation.
I am just working with the demo wbs file, so the admin passwords are still default.
I FTP'd the contents of cart in the zip file to the cart folder on my server (www.mmdv.com/cart).
I changed the index page text slightly in webshop_plus3.wbs so that I would know that I was looking at the correct page.
I published the entire website to www.mmdv.com/cart
When I browse to www.mmdv.com/cart, I get the original index.php file.
But, then I realized that WWB published the index.php file in www.mmdv.com/cart/WB8/webshop_plus_v3_2
For some reason, when I enter the full path into the browser (www.mmdv.com/cart/WB8/webshop_plus_v3_2/index.php) I get nothing.
Where did I goof?
Thanks,
Steve
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus - subdomains?
The cart in mmdv.com/cart works fine.
I also can't find anything in mmdv.com/cart/WB8/webshop_plus_v3_2 but, as you understand, I can't know why.
I suggest you connect with FTP and check if this folder exists and if the files have been uploaded.
I also can't find anything in mmdv.com/cart/WB8/webshop_plus_v3_2 but, as you understand, I can't know why.
I suggest you connect with FTP and check if this folder exists and if the files have been uploaded.
www.dbtechnosystems.com
Re: Webshop Plus - subdomains?
Thanks for taking the time to look at this for me.
I can see the files there from Filezilla. I also put a test .html file there to make sure there wasn't some screwy permissions problem and it loads into the browser just fine.
http://www.mmdv.com/cart/WB8/webshop_pl ... index.html
Yet, replace testindex.html with index.php and you get, nothing. Strange...
http://www.mmdv.com/cart/WB8/webshop_pl ... /index.php
Here's a screenshot of the folder structure (Filezilla):
https://dl.dropboxusercontent.com/u/142 ... estion.jpg
Why are there two 'index.php' files? One in \cart and the other in \cart\WB8\webshop_plus_v3_2\
This is what leads me to believe that I did not install the extension correctly.
I can see the files there from Filezilla. I also put a test .html file there to make sure there wasn't some screwy permissions problem and it loads into the browser just fine.
http://www.mmdv.com/cart/WB8/webshop_pl ... index.html
Yet, replace testindex.html with index.php and you get, nothing. Strange...
http://www.mmdv.com/cart/WB8/webshop_pl ... /index.php
Here's a screenshot of the folder structure (Filezilla):
https://dl.dropboxusercontent.com/u/142 ... estion.jpg
Why are there two 'index.php' files? One in \cart and the other in \cart\WB8\webshop_plus_v3_2\
This is what leads me to believe that I did not install the extension correctly.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus - subdomains?
Most probably, there is an issue with the backend configuration, that disallows the index page from displaying.
Did you upload the backend files ? As I don't see a "admin" subfolder in the webshop_plus_v3_2 folder
You can do this:
Open the index page in WWB
You can see, in Page HTML, Start of Page, the following code:
<?php
error_reporting(0);
require_once "admin/config.php";
?>
Replace
error_reporting(0);
with
error_reporting(E_ALL);
And publish the page, then visit the URL again to see the error messages it displays.
Did you upload the backend files ? As I don't see a "admin" subfolder in the webshop_plus_v3_2 folder
You can do this:
Open the index page in WWB
You can see, in Page HTML, Start of Page, the following code:
<?php
error_reporting(0);
require_once "admin/config.php";
?>
Replace
error_reporting(0);
with
error_reporting(E_ALL);
And publish the page, then visit the URL again to see the error messages it displays.
www.dbtechnosystems.com
Re: Webshop Plus - subdomains?
Again, I really appreciate your help here.
Changed error reporting to all, and now I see my modified index page, and no errors:
You are correct, there is no admin folder in the webshop_plus_3_2 folder - it's in the cart folder.
Here is the whole structure:
https://dl.dropboxusercontent.com/u/142 ... stion2.jpg
Perhaps I didn't read the installation instructions well enough. I created a root folder, cart, then FTP'd the contents of the cart folder in the zip file into the cart folder on the server. That included the admin folder, uploads, includes and images folders plus a bunch of php files.
Here's where I suspect my problem is - I did not change the directory structure on the demo wbs file, and when I published to the cart folder on the server, the directory structure in the wbs file made the WB8\webshop_plus_v3_2 folders in the cart folder.
So, back to step 8, I removed the WB8/webshop_plus_v3_2 folders in the wbs file and published everything to the cart folder. It seems to be working now.
It also works in the subdomain. I'll be testing other features of the Webshop now.
By the way - is this JSON code?
'.'Your IP Address: '.$_SERVER['REMOTE_ADDR'].'
Also, there is no admin_login_demo.php which is a link from the index.php file.
--------------------------------------------
Update - Things are mostly working, so now I need to plunge deeper into adding products.
One minor problem remains - the "Continue Shopping" button in the cart.php form doesn't go anywhere.
Thanks again.
Changed error reporting to all, and now I see my modified index page, and no errors:
You are correct, there is no admin folder in the webshop_plus_3_2 folder - it's in the cart folder.
Here is the whole structure:
https://dl.dropboxusercontent.com/u/142 ... stion2.jpg
Perhaps I didn't read the installation instructions well enough. I created a root folder, cart, then FTP'd the contents of the cart folder in the zip file into the cart folder on the server. That included the admin folder, uploads, includes and images folders plus a bunch of php files.
Here's where I suspect my problem is - I did not change the directory structure on the demo wbs file, and when I published to the cart folder on the server, the directory structure in the wbs file made the WB8\webshop_plus_v3_2 folders in the cart folder.
So, back to step 8, I removed the WB8/webshop_plus_v3_2 folders in the wbs file and published everything to the cart folder. It seems to be working now.
It also works in the subdomain. I'll be testing other features of the Webshop now.
By the way - is this JSON code?
'.'Your IP Address: '.$_SERVER['REMOTE_ADDR'].'
Also, there is no admin_login_demo.php which is a link from the index.php file.
--------------------------------------------
Update - Things are mostly working, so now I need to plunge deeper into adding products.
One minor problem remains - the "Continue Shopping" button in the cart.php form doesn't go anywhere.
Thanks again.
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus - subdomains?
No, this is simply a PHP variable, plus the dots and quotes that are used to separate it from the rest of the text. It also has PHP code in the text Before Tag and After Tag.SteveMann wrote:
By the way - is this JSON code?
'.'Your IP Address: '.$_SERVER['REMOTE_ADDR'].'
.
This file is only required for the demo, you are not installing a demo but a functioning cart.Also, there is no admin_login_demo.php which is a link from the index.php file.
--------------------------------------------
Are you sure the text on the button is correctly declared in the Admin / Script settings ?One minor problem remains - the "Continue Shopping" button in the cart.php form doesn't go anywhere.
.
www.dbtechnosystems.com
Re: Webshop Plus - subdomains?
"This file is only required for the demo, you are not installing a demo but a functioning cart."
It's not in the demo. At least not in the zip file.
"Continue Shopping"
Of course, my testing gets ahead of my reading the instructions. As usual.
Thanks again,
Steve
It's not in the demo. At least not in the zip file.
"Continue Shopping"
Of course, my testing gets ahead of my reading the instructions. As usual.
Thanks again,
Steve
- Navaldesign
-
- Posts: 862
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Webshop Plus - subdomains?
Sorry, I misread your post.
The link to admin_login_demo.php only serves the demo on my site purposes, in your case you don't need either the file or the link.
The link to admin_login_demo.php only serves the demo on my site purposes, in your case you don't need either the file or the link.
www.dbtechnosystems.com