Hi
I have created Gift Voucher as a category and have made it appear here:
http://liomi.co.za/index.php?route=common/home
Now i want to specify the redirect route of that Gift Voucher Tab to:
http://liomi.co.za/index.php?route=account/voucher
Instead of where it currently is:
http://liomi.co.za/index.php?route=prod ... ry&path=73
Hii
You can do it by little custome
But Why you add that opencart page in the category..??
i can do that by costume code easily
Thanks
Sachin
You can do it by little custome
But Why you add that opencart page in the category..??
i can do that by costume code easily
Thanks
Sachin
Hi
Sorry for the late response- but i still need your help with this; what would would you need from me in order to produce
Sorry for the late response- but i still need your help with this; what would would you need from me in order to produce
Hiiscrewtape_mk wrote: ↑Fri Dec 01, 2017 4:01 amHi
Sorry for the late response- but i still need your help with this; what would would you need from me in order to produce
sure I will Help You
Let Me know Which Opencart version you are using..?
So i can help you to edit the files
Thanks
Sachin
That is easy.
Open file category.php in folder catalog/controller/product/category.php
Find :
Before, add:
73 is your category_id, may be need change that.
Open file category.php in folder catalog/controller/product/category.php
Find :
Code: Select all
$category_info = $this->model_catalog_category->getCategory($category_id);
Code: Select all
if ($category_id == '73') {
$this->response->redirect($this->url->link('account/voucher'));
}
Thanks so much opencartboost
I will try out your solution - do you mind explaning what Category Id is so i can put the correct Id; since you said i may have to change that
I will try out your solution - do you mind explaning what Category Id is so i can put the correct Id; since you said i may have to change that
Just to note, if you want to do this without having to edit files manually yourself, my Redirect Manager extension can do this. You enter the URL your want to redirect, and then can redirect it wherever you want. It should work for your purpose, if you can't (or don't want to) get the manual edit working.
Hi
I have added this line of code:
if ($category_id =='73')
{
$this->response->redirect($this->url->link('account/voucher'));
}
Before this line:
$category_info = $this->model_catalog_category->getCategory($category_id);
Nothing changed. Im using version 2.0.1.1
I have added this line of code:
if ($category_id =='73')
{
$this->response->redirect($this->url->link('account/voucher'));
}
Before this line:
$category_info = $this->model_catalog_category->getCategory($category_id);
Nothing changed. Im using version 2.0.1.1
It worked - except every Category or Category item redirects to :
http://liomi.co.za/index.php?route=account/voucher
http://liomi.co.za/index.php?route=account/voucher
Hi
Thanks once again for your help my problem has been solved.
I just now need to redirect all the products in the that are listed in the Category tabs to their actual product pages.
For instance 'Female Fragrances >212 VIP Carolina Herrera' redirects to
http://liomi.co.za/index.php?route=prod ... h=25_32_65
I would like it to redirect to :
http://liomi.co.za/index.php?route=prod ... duct_id=43
Thanks once again for your help my problem has been solved.
I just now need to redirect all the products in the that are listed in the Category tabs to their actual product pages.
For instance 'Female Fragrances >212 VIP Carolina Herrera' redirects to
http://liomi.co.za/index.php?route=prod ... h=25_32_65
I would like it to redirect to :
http://liomi.co.za/index.php?route=prod ... duct_id=43
Who is online
Users browsing this forum: No registered users and 406 guests