I just created a custom page called store in opencart. For that, I created three files in opencart directory. ..\template\common\store.tpl, ..language\english\common\store.php and ..\catalog\controller\common\store.php. After adding these files, http://localhost/store/index.php?route=common/store shows me the home page with headers and footers.
The question is I am not able to add modules into the page as it is not displayed in "Layout" drop down under modules. For example, If I go to extensions and "Account", I am not able to find this page under layout dropdown so that I can add account module.
Can someone please help?
Thanks,
Praveen
for adding page to layout in open cart Go to administration -> System -> Design -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).
Well, it seems like someone had already answered the same question in :
OpenCart adding page to the layout
Thanks for the answer in that post. This is my first post and I cannot upvote the person yet.
Related
I'm just getting started with Drupal and have added my preffered modules. I have also added my front-end framework module - which is Foundation Zurb. Now I'd like to change the default blog-like structure of the site and would like to add a custom developed homepage. Been trying to put my head around this for over 3 days with no success. I followed the direction on the Drupal docs - which is a bit confusing and rigid but something I dont grasp is does the page--front.tpl.php actually end up being the home page? Also where would I put my css and other js scripts?
If this is the case then what would I need to do to add a navigation to this homepage which would then provide links to my site? Some mind opening guidance is welcome
You can set any node in any content type to be the home page. So first create your content type, then node in that type.
Then go to Confugration -> System -> Site information in admin menu and there you have Front page section. Add your page path to "Default front page" field and that's it - your page will become new home page.
You can also enable the default view "Frontpage" that has a path /frontpage. In this you can customize the sorting and filtering of what is being shown. Then visit the "Site information" page and set "/frontpage" as your default frontpage.
I use Elementor page builder on my WordPress site. There is a problem with it - by default it doesn't allow editing WooCoomerce Shop/Products pages. The solution they say is to add to page templates code. I, being a beginner with no idea of coding, cannot figure out which file to add this code to and where in that file. I have been researching and trying to fix this myself for two weeks now, in vain. Please help me achieve this.
Here's what Elementor say: "Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page."
Go to Elementor setting and then check products in post types
Go to Products, click Edit on the product you want to edit, input something (ie. a full stop-sign '.') in the WP Editor, click Update. (See attached screenshot.)
Screenshot
There seems to be a misconception that Elementor can be used to "edit" any content.
For Elementor to work on a "Page" i.e. the post type that uses either the page.php or any theme declared page templates it requires the_content(); function to present in the code.
Issue #1: WooCommerce uses the woocommerce_content(); function to return the content of the shop.
Issue #2: The Shop output does not use the "Page" or Custom Page template - the output is equivalent to the index.php or home.php, neither of which are editable via Elementor.
Unless you are willing to write a pretty sophisticated function to collect all those elements' data and filter them into the_content(); function, there is currently no way of editing such content directly.
I know it's not the solution you are looking for but that is the current state of affairs. Having said that, some of us are working on all sorts of solutions and maybe, just maybe - we'll come up with a way to have this option available soon ;)
For shop page you should go to Elementor setting and then check products in post types.
Because shop page products are not the content but posts it's the solution.
So inlcude products in post types and edit with elmentor, if for some reason you can't see 'edit with elementor' under shop page, then just open shop page and add
/?elementor and it would enable elementor
NO need to add this code in any page follow these instruction.
You just need to clear cache and cookies your browser, Some time website take previous data to show the web page and give this error.
or
if you open your website private mode then login and go to the page by Elementor you will never face this problem.
I have no idea why, but if you view this page:
http://www.awesomegti.com/review/product/list/id/50592/#customer-reviews
I feel like the page is trying to utilise either an old template, or multiple templates which is causing the design to get messed up. If you click 'Back to product' the correct template loads fine.
Can anyone guide me to the right place to check this configuration?
The link you have shared utilizes review modules list action, while when we click on "Back to Main Product Info" link, it takes us to catalog module >> product controller >> view action
Both are managed by different layout xml file so both have different layout.
You can do either of two strategies:
Make layout of product review page identical by doing some css work
Call review form and reviews list on product view page under product reviews tab (which is not working correctly right now)
In every module and section of opencart we see a drop down called layout. Which usually contains pages such as category, news, product, default, home, etc...
How can I add a page to this section?
Now, I can add a CONTENT_PAGE via information->insert.
Else, I usually do it by creating a controller and a template, but the page I create is not formally recognized by opencard.
My question is that I should I make open card recognize my page which I create by making a controller and a template manually within the project folder. How?
thanks in advance
Though these questions suit more for OpenCart forum instead of SO, I'll try to answer the first one shortly:
How can I add a page to this section?
Go to administration -> System -> Desgin -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).
The second problem is completely unclear to me. Can You be more specific and describe in more details?
I've made a few modules within my socialengine application however I was wondering how do I add these to the layout editor (root/admin/content) so that I can add widgets to these pages?
You can add the widget in layout editor by adding setting in content.php file.
We recommend adding your widget via the Package Manager which should help take care of the rest. For more information, please see in the Developer SDK section: http://support.socialengine.com/questions/180/Admin-Panel-Manage-Packages-Plugins
You should create a page first from layout editor.DO NOT GIVE any page URL in edit page info section.Leave the page without URL.Most important, add the content widget to your page and save it.
Now, you have a fresh page which does n't have url set.Create a module and either install it or paste it in your application/modules directory. Now, open your database and find the table
"engine4_core_pages" and click on insert and set the name field with your modulename_controller_action.
Comeback to your module and open index controller and put whatever code you want to in index action and just add a simple code to view this in your page,"
$this->_helper->content
// ->setNoRender()
->setEnabled()
You are done.You can set the route from your modules manifest.php inside settings
folder.
Hope this will help.
http://bloffin.blogspot.in/ for more...