So here it is:
the URL that gets generated for going "home" is usually set to
http://sitename.com/index.php?route=common/home
using
$this->url->https('common/home')
in the appropriate php file for the template... but I want it just to be
http://sitename.com
Is there an easy way to change this?
Thanks again. The more I learn, the more I can help others learn.
So you'll end up with something like
$this->data['home'] = 'http://sitename.com';
or
'url' => 'http://sitename.com',
Depending on where you are changing it. Remember to change the variables to whatever it's called in your files..
Request Reviews v1.0 released.
Code: Select all
if($route == 'common/home') return HTTP_SERVER;
hi superann.superann wrote:Was just looking for this and found the function in system/engine/url.php. You can just do something like:
You can also hack in some nicer urls for the other pages.Code: Select all
if($route == 'common/home') return HTTP_SERVER;
can you please post an example of how you did this (some more code)?

thanks a lot!
---
Environment
php: 7.4.33
Browser: Chrome latest
---
OpenCart
2.3.0.2 singlestore (bugfree edition by xxvirusxx: https://github.com/condor2/Opencart_2302)
DE language by OSWorX (https://www.opencart.com/index.php?rout ... n_id=31048)
Template: Sellmore by 321cart
quite a few Extensions :-)
hi there.littleredcar wrote:hi superann.superann wrote:Was just looking for this and found the function in system/engine/url.php. You can just do something like:
You can also hack in some nicer urls for the other pages.Code: Select all
if($route == 'common/home') return HTTP_SERVER;
can you please post an example of how you did this (some more code)?![]()
thanks a lot!
any news on this?
thanks!
---
Environment
php: 7.4.33
Browser: Chrome latest
---
OpenCart
2.3.0.2 singlestore (bugfree edition by xxvirusxx: https://github.com/condor2/Opencart_2302)
DE language by OSWorX (https://www.opencart.com/index.php?rout ... n_id=31048)
Template: Sellmore by 321cart
quite a few Extensions :-)
C A R
---
Environment
php: 7.4.33
Browser: Chrome latest
---
OpenCart
2.3.0.2 singlestore (bugfree edition by xxvirusxx: https://github.com/condor2/Opencart_2302)
DE language by OSWorX (https://www.opencart.com/index.php?rout ... n_id=31048)
Template: Sellmore by 321cart
quite a few Extensions :-)
Users browsing this forum: No registered users and 41 guests