How do I set a template for CubeCart? - php

I'm a php developer and currently working on a project in which I'm required to change the layout of a web page created using CubeCart. I've never worked before with CubeCart. I've created a template but don't konw where to place my stylesheet and other things on server as there are a lot of folders and files. This is very confusing. Can anyone please help me?
Thanks.

Just looking through their site, I found this page on editing the look/feel. It seems you're looking for this folder: /public_html/store/skins .
It would be best to make a new folder in there to store your working template. Copy all the default skin files into it and edit those.
To turn it on, go into the store admin and then [Store Config] -> [General Settings] then the [Styles and Misc] section. There should be a drop down for Store Skin - change it to yours.

Related

k2 module subtemplate doesn't pick up changes after editing - joomla 3.8.0

I hope some of you joomla enthusiast can help a beginner with a problem.
So I created a subtemplate for a k2 module in the folder templates/my_template/html/mod_k2_content. This folder contains the two subfolders Default (contains the default.php) and Team (contains the team.php).
The team.php file is the default.php file with minor changes. Everything worked fine and i could select the "Team" subtemplates in the joomla backend and it also showed the changes. Now I tried to edit the team.php in templates/my_template/html/mod_k2_content/Team again and it just doesn't pick up the changes anymore. When I edit the default.php in templates/my_template/html/mod_k2_content/Default it works just fine on the modules that work with the default subtemplate.
But the modules that have the Team subtemplate selected just stay the same, the way they were when i first selected this subtemplate for the modules.
Anybody that already enountered that problem and knows what I'm doing wrong?
I already reselected the team subtemplate several times and made sure I'm connected to the server. I also encluded a bunch of characters in the code to make the changes more visible, to make sure I'd truly notice them if the would be picked up. But nothing.
I'm really grateful if someone can help.
Thank you a lot!
Just to be sure: did you disable the caching on the website as well as the caching on your browser?
Okay i figured it out myself - The problem is that i can have different folders with different names in my templates/my_template/html/mod_k2_content folder, but each folder needs to contain a default.php. I renamed the team.php in my templates/my_template/html/mod_k2_content/Team folder to default.php and now the changes are being picked up !

OpenCart - Need to Create New Section Same as "Manifacturers"

I need to create a new section as same as manifacturers. only its name should be "authors".
I tried to make it. I changed databases, I changed files and created new files as like as "manifacturers". But It couldn't work than I got it: I can't make it without any help.
What should I do? Which document should I read to do this?
you need to do little bit of research bro..
you can go this link
http://www.packtpub.com/sites/default/files/9781783280377_Chapter-01.pdf
or
How to make a simple module in OpenCart? Example getting latest posts from Wordpress and showing it in OpenCart?

How to create a submenu in Joomla! frontend

What I'm trying to do is create a submenu (in Joomla! backend) with below code but it does not work.
JSubMenuHelper::addEntry(JText::_('test'), 'index.php?option=com_test&controller=test', $controller == 'testcon');
I have attacted a sample pictures here. It explains what type of menu I want.
sample menu is here. check this picture
Thanks!
JSubMenuHelper is designed to be used in the Joomla! Administrator section, it's not made for the frontend.
If you really want to get to it, you need to include the file:
/administrator/includes/toolbar.php
Also you will have a bunch of missing CSS (js maybe also) files that you also need to include (form the admin template folder)
But I see no reasons what you want to use JSubMenuHelper in front-end. I would strongly advise against using it.
You should create menu and (submenu) in Admin Panel, but I think you already know that :)
Later you add look and feel with CSS.
I think you should do ti with CSS not PHP.

Magento 1.7: Where is the top.phtml file located?

When i searched about it, I found this file on this path:
app/design/frontend/BASE/default/template/catalog/navigation/top.phtml
But when i do any sought of change in it, it didn't work or not show any change. I think I am working in wrong file. What I actually want to do is to add thumbnails to menu at frontend.
I am new to magento. Please help me in this regard.
Best way of knowing path of any template file is : Using Template path hint
Goto Admin->System->configuration->Developer
Then select main website option from Current Configuration Scope dropdown on left hand side.
Then enable template path hint.
Navigate to the front end refresh and u can see the path for various blocks.
For better understanding of the template path hint try this video tutorial.
Actually the top.phtml file is in app/design/frontend/base/default/template/catalog/navigation/top.phtml as you have mentioned
Go to admin->system->configuration, now on the left panel click on design and in the Package area see the Current Package Name.
This is the current package you are using. Say this is... "default"
Now in the Themes area, check the Templates field.
This is the template of the above package that you are using. Say this is "modern"
If the field is blank it means you are using the default template.
Now the top.phtml file you need to edit is in or should be copied to app/design/frontend/default/modern/........
Paste it there and edit it.....
The reason for copying and editing is to keep a backup of original base package.
Try to flush magento cache at backend: "Configuration => Cache Management"
You maybe want to check if you have 'base' configured in the theme settings in Magento. Maybe it's overwritten in another package.
You may want to look weather you have a different theme active app/design/frontend/<themename>/<themevariation>/template/catalog/navigation/top.phtml
see http://www.newsjournal3.com/12-magento/13-how-to-override-magento-top-navigation
you have to put the topmenu.phtml in the html directory

Zen Cart Custom Template Problem

I have been asked to upload a Zen Cart site to my servers and have done so fine.
I am getting a problem now with the fact that the client has uploaded his custom template into the includes/templates folder and selected it in the admin - but it still wont load it. instead it just loads the template_default style.
I am been through every document I can find and have performed the 'reset' of the Layout Boxes Controller, but nothing seems to resolve it.
Can anyone tell me if there's a file I need to tweak or something to make sure it loads my custom style?
Cheers,
C.
One solution would be to overwrite the default theme with yours. I know this is not what you are asking, however, it would solve your issue.
Zen Cart templates can be really simple or really complex. So installing them can be easy or complicated. The files are probably in the wrong place, or not completely installed. It's easy to make a mistake. Just in case, here's the outline:
1a. Simple - Copy the cart template files to includes/templates/your_template_name/.
or
1b. complex - Copy the cart template folders to includes/.
2 Go to Admin > Tools > Template Selection and click Edit.
Select your_template_name. (If you don't see your_template_name something has gone wrong.)
3 Many templates install with the sideboxes turned off. Go to Admin > Tools > Layout Boxes Controller and edit the sideboxes to turn them on.
One idea for trouble-shooting ...
Look at the database template_select table. What template_dir is set?
If this is happening, double check the file includes/templates/YOUR_TEMPLATE/template_info.php. This file is used by the system to determine if a folder under includes/templates is actually a template, and things won't work without this file. Once you've set this file up, go back to admin->tools->template selection and try re-selecting your custom template.

Categories