Post by screwtape_mk » Sat Aug 19, 2017 5:39 pm

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

Newbie

Posts

Joined
Sun May 14, 2017 2:39 am

Post by sachin6609 » Mon Aug 21, 2017 7:03 pm

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

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by screwtape_mk » Fri Dec 01, 2017 4:01 am

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

Newbie

Posts

Joined
Sun May 14, 2017 2:39 am

Post by sachin6609 » Mon Dec 04, 2017 1:28 pm

screwtape_mk wrote:
Fri Dec 01, 2017 4:01 am
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
Hii

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

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by opencartboost » Mon Dec 04, 2017 6:46 pm

That is easy.
Open file category.php in folder catalog/controller/product/category.php
Find :

Code: Select all

$category_info = $this->model_catalog_category->getCategory($category_id);
Before, add:

Code: Select all

if ($category_id == '73') {
	$this->response->redirect($this->url->link('account/voucher'));
}
73 is your category_id, may be need change that.

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am

Post by uksitebuilder » Wed Dec 06, 2017 4:09 pm

This is OpenCart Cloud support forum.

There is no access to the files to do those modifications in the Cloud OC Version

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 3 guests