Open Cart configuration

I am unable to configure open cart properly.  refer to this url  -

I can see proper when i view on server with http://localhost

Please help

Attached Image.
Who is Participating?
F IgorConnect With a Mentor DeveloperCommented:
In your opencart configuration you need to set the default hostname for your store, If you used http://localhost/ for testing, then you need to change to the right url.

See also your configuration in Admin / Sotres and view your current Store URL
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Problem looks to be how you've crafted your links.

Take for example this link...

<script type="text/javascript" src="catalog/view/theme/globethm/js/jquery-2.1.1.min.js"></script>

Open in new window

This means catalog is relative to where ever you or your server happen's to have it's current working directory set.

Highly unlikely this will work anywhere, except your local runtime environment.

Change all your links to start with /catalog rather than catalog, to bind all file accesses to your DocumentRoot directory.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
WebPageTest Report provides a visual representation of the problem.

Each red bar refers to a file which can't be located + served, due to how you've crafted your links.

Fix the above + likely your site will start working.
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
Your files are there, the issue is your base tag is pointing to localhost. This is why it works locally and not remotely.

<base href="http://localhost/" />

Open in new window

Try removing that or changing to
<base href="" />

Open in new window
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Best to just remove base href, as setting this will always cause problems when changing location of your site.

Use DocumentRoot pinned paths + your site will work where ever you install it (whatever directory structure).

After you change/delete the base href, you can run another WPT report (as I did above) to verify your links are fixed.
rnsrAuthor Commented:
Thanks all . Solved the issue with the help.
rnsrAuthor Commented:
Thank you all
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.