Post by damodaranudas » Tue Feb 07, 2017 1:15 pm

tpalella wrote:Anyone knows what needs to be changed for 2.2+?

thank you!
I follow your question :), is it 2.2+ tested?

User avatar
Newbie

Posts

Joined
Tue Nov 20, 2012 1:20 am
Location - Colombia

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by karlopencart » Sun May 07, 2017 10:55 pm

armand1610 = solved the problem for me

in /catalog/controller/information/static.php

Find this (around line 34)

Code: Select all

$this->response->setOutput($this->load->view('default/template/information/static.tpl', $data));
Replace with

Code: Select all

$this->response->setOutput($this->load->view('information/static.tpl', $data));
Basically it does not need the call to default/template/
Works in 2.3.0.2

Gosh: I'm still a newbie and I joined back in 2010, must post more often.

User avatar
New member

Posts

Joined
Tue Oct 05, 2010 11:19 pm

Post by rikmg67 » Tue Jul 25, 2017 1:23 am

Hi,

I have tried this method line by line and it didn't work :(
I'm using opencart Version 2.1.0.2.

Anyone know what I could try to get this working?
Thanks in advance!

Newbie

Posts

Joined
Thu Nov 29, 2012 12:44 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by photoscreenprint » Wed Sep 06, 2017 6:27 am

Thank you, great tutorial. This was a big help.
I want to add, in the controller file change:
$this->language->load('information/static');

to

$this->load->language('information/static');

Best regards


Posts

Joined
Fri Aug 04, 2017 7:12 am

Post by cedcommerceteam » Thu Sep 07, 2017 9:13 pm

For 2.2+

in order to load template you can use $this->response->setOutput($this->load->view('your template path after template folder', $data));

and all template variables are store in $data.

Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: support@cedcommerce.com
CedCommerece : Officail Opencart Partners
CedCommerce Official : www.cedcommerce.com
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Magenative Mobile App/IOS Development : magenative.com


User avatar
Active Member

Posts

Joined
Wed Aug 09, 2017 9:02 pm

Post by alancheong » Sun Aug 26, 2018 1:03 am

Anyone have solutions for opencart 2.3.0.2 ?

Newbie

Posts

Joined
Tue Dec 01, 2015 11:18 pm

Post by khnaz35 » Thu Jan 10, 2019 10:24 am

Hi Mark,
need your help on
Hi i am using OC 2.3.0.2 with J2.9, i am trying to make this url "https://www.xyz.com/index.php?route=information/xyz " to "https://www.maraley.com/xyz"
i have make a entry in db url_alias table
rl_alias_id int(11) 2053
query varchar(255) information/xyz
keyword varchar(255) xyz
but it doesn't help as i want.
Still the index.php?route=
how to go about it. Thanks in advance


the page is without opencart header and footer and it was not made directly from admin side

Always help others it's always come back, give and receive :)


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by khnaz35 » Thu Jan 17, 2019 11:59 am

MarketInSG wrote:
Wed Jan 16, 2019 6:57 pm
Why not create a .htaccess rewrite for just that URL?
Thanks That did already, was just trying to learn an other way of doing it

Always help others it's always come back, give and receive :)


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm

Post by nathan@vgcphils.com » Tue Apr 02, 2019 11:32 am

HI MarketInSG,

can you also post a tutorial on how to create a custom static html product page for opencart 2.3.0.2?

idea is i need to create a custom designed product page, different from the current product page template of our shop.

just an html product page with a form and able to add to cart.

thanks.


Posts

Joined
Tue Apr 02, 2019 11:12 am
Who is online

Users browsing this forum: No registered users and 11 guests