Hi all,
I want to change my home template to actually be one of my category pages.
Now before I go creating a new controller and output all the values into the home.tpl file is there a better more efficient way of doing this?
Thanks,
Ed
I want to change my home template to actually be one of my category pages.
Now before I go creating a new controller and output all the values into the home.tpl file is there a better more efficient way of doing this?
Thanks,
Ed
Open up
and just after
on a new line put
changing the 20_27 to the correct category path
Code: Select all
/catalog/controller/common/home.php
Code: Select all
public function index() {
Code: Select all
$this->redirect(HTTP_SERVER . 'index.php?route=product/category&path=20_27');
ahh
slight snag with this neat little solution
it's messed up the currency switcher.
i assume something in home.php which normally sets the currency session value is no longer getting called as a result of the redirect kicking in.
this would make sense if I was on the home page but doesn't make sense on a category page.
what happens is that the refresh occurs but the session value does not change.
I'm looking into it right now...
slight snag with this neat little solution
it's messed up the currency switcher.
i assume something in home.php which normally sets the currency session value is no longer getting called as a result of the redirect kicking in.
this would make sense if I was on the home page but doesn't make sense on a category page.
what happens is that the refresh occurs but the session value does not change.
I'm looking into it right now...
so what seems to be happening is that say I'm on the cart page and switch from sterling to euro.... instead of the page refreshing and the currency switching - I get redirected back to my category page that I've set in home.php
I wonder why the cart page (or any other page for that matter) is intercepting a redirect that is set in home.php - surely this line I added would only intercept any requests to home...
strange...
I wonder why the cart page (or any other page for that matter) is intercepting a redirect that is set in home.php - surely this line I added would only intercept any requests to home...
strange...
what's also even stranger is that the form redirect is being set correctly on each page
e.g.
<input type="hidden" name="redirect" value="http://localhost.dev/opencart/index.php ... ckout/cart
is where the form redirect is set to go when on the cart page - not the product category page
e.g.
<input type="hidden" name="redirect" value="http://localhost.dev/opencart/index.php ... ckout/cart
is where the form redirect is set to go when on the cart page - not the product category page
Who is online
Users browsing this forum: No registered users and 207 guests