Post by ClauManyaC » Sat Dec 05, 2020 1:41 am

Hi all,

Open cart : 3.0.3.6
Theme : so-emarket

I'm trying to create a new home layout for one of my menu tabs and i can't make it to display the content . I can see the header and footer but no content.
If i place it in the ' Top Content ' is working . Any help will be really apreciated . Thank you

Here is the code i added :

catalog/controller/common/womans.php

Code: Select all

<?php
class ControllerCommonWomans extends Controller {
	public function index() {
		$this->document->setTitle($this->config->get('config_meta_title'));
		$this->document->setDescription($this->config->get('config_meta_description'));
		$this->document->setKeywords($this->config->get('config_meta_keyword'));

		if (isset($this->request->get['route'])) {
			$this->document->addLink($this->config->get('config_url'), 'canonical');
		}

		$data['column_left'] = $this->load->controller('common/column_left');
		$data['column_right'] = $this->load->controller('common/column_right');
		$data['content_top'] = $this->load->controller('common/content_top');
		$data['content_bottom'] = $this->load->controller('common/content_bottom');

		$data['footer'] = $this->load->controller('common/footer');
		$data['header'] = $this->load->controller('common/header');

		$this->response->setOutput($this->load->view('common/womans', $data));
	}
}
catalog/view/theme/so-emarket/template/common/womans.twig

Code: Select all

{{ header }}

  <div id="content" class="{{ class }}">  	

    {{ content_home }}

    {{ content_top }}

    {{ content_bottom }}

     </div>

{{ footer }}
layout.png

layout.png (147.83 KiB) Viewed 689 times

layout.png

layout.png (147.83 KiB) Viewed 689 times

Attachments

site.png

site.png (240.18 KiB) Viewed 689 times


Newbie

Posts

Joined
Wed May 15, 2019 5:27 am

Post by straightlight » Sat Dec 05, 2020 3:11 am

Build an extension module controller instead of a common controller. Then, you could automatically adjust the page layouts in the OC admin you'd like to show the content from your home page. If you're unable to create an extension module, send me a direct PM to get this done as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by TrishL » Sat Dec 05, 2020 11:52 am

Hello,

We should be able to help with this, would you be able to drop us an email to get an estimate?
Email – trish@cisinlabs.com or you can connect with me on Skype - live:.cid.baff7c7dd9471b54

Kind regards,
Trish

Professional Open cart Developer
Email - trish.c@talentsfromindia.com
Skype - live:.cid.baff7c7dd9471b54 | Phone: +13056004562


New member

Posts

Joined
Mon Nov 09, 2020 5:39 pm

Post by shivankagrawal » Sat Dec 05, 2020 3:33 pm

Hello,
Greetings! I have relevant experience in an Opencart and ready to help you.
Or you can email me at: info@elderberrytech.com to discuss further.

Thanks,
Shivank Agrawal
http://elderberrytech.com/

Extensions Developed for Opencart | Portfolio Opencart | info@elderberrytech.com


Active Member

Posts

Joined
Mon Jul 18, 2016 7:05 pm

Post by Linneajones » Sat Dec 05, 2020 4:31 pm

Hello There,

I would like to assist you with this work.
Please get connected to discuss further.

Regards
Linnea
E- linneajones.mil@gmail.com

Active Member

Posts

Joined
Mon Sep 09, 2019 4:16 pm

Post by ClauManyaC » Sat Dec 05, 2020 7:06 pm

straightlight wrote:
Sat Dec 05, 2020 3:11 am
Build an extension module controller instead of a common controller. Then, you could automatically adjust the page layouts in the OC admin you'd like to show the content from your home page. If you're unable to create an extension module, send me a direct PM to get this done as a custom job.
Hi ,

Is now showing me the content.
I can now change the home layouts in Content Home from admin panel. But still not right and i don't know if this is related to this or not but the same layout with the same modules looks quite different .

Thank for helping me out

Attachments

4.jpg

4.jpg (467.24 KiB) Viewed 564 times

3.jpg

3.jpg (516 KiB) Viewed 564 times


Newbie

Posts

Joined
Wed May 15, 2019 5:27 am

Post by straightlight » Sat Dec 05, 2020 11:56 pm

Your module TWIG file from the catalog needs to output the right proportion of the design. Otherwise, your layout will most likely break. With CSS bootstrap, this can be easily accomplished. You could also rely on other examples from the core extension modules.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: JAY6390, paulfeakins and 37 guests