Add a new template option to category block in CS-Cart - cs-cart

I have created a new template file for the category block in CS-Cart. How do I add this as one of the options in the block config?

To be able to select the new template on backend/layouts/blocks please add file to:
design/themes/[THEME_NAME]/templates/addons/[ADDON_NAME]/blocks/categories/[FILENAME].tpl
If you don't have a custom add-on already you can use My Changes add-on
design/themes/[THEME_NAME]/templates/addons/my_changes/blocks/categories/[FILENAME].tpl
PS: if category structure is missing you will need to create also you need to have My Changes add-on activated

Related

Different .phtml to diffrent type of product

I am trying to make module that switches diffrent .phtml of productview depend on attributeset name. I dont know witch file is responsible for rendering productview.
It is usually Magento Block that render template. In your case productivew is rendered by
Mage_Catalog_Block_Product_View.
You can easily figure this out by enabling template_hints and template_hints_blocks. To enable these to option follow steps below:
Go go Admin
System > Configuration
In left column, Select Developer under Advance.
Change Current Configuration Scope to website level (template_hints and template_hints_blocks is applicable at website level only)
Make yes to Template Path Hints and Add Block Names to Hints under Debug group.
you can rewrite this class:
Mage_Catalog_Block_Product_View
and then you can add your own logic to it to switch to another template, not the standard
catalog/product/view.phtml

Understanding the Joomla Component File Structure / from URL

I'm new to joomla and have got a problem with a website.
I need to modify a view and I've been told it is in
http://www.example.com/index.php?option=com_user&view=register&Itemid=68
It has a registration form and i need to modify its field. I've access to FTP only. I need to know where are these files to modify the registration form. If one can describe the meaning of this url structure then it would be very helpful.
You will find the template files in /components/com_user/views/register/tmpl.
However, you should create an html/com_user folder in your template directory with a copy of those files and use a template override ("never" edit core files).
Here are a couple resources that will point you in the right direction:
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Introduction
http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core
com_user means use the user component register view.
Itemid 68 refers to the id of the menu item it is linked from.
You don't want to directly modify any joomla files.
If you want to add a field to registration activate the user plugin or create your own user plugin along the same design but with the fields you want.
It is advisable not to modify the core files directly, they will get overridden whenever the Joomla is updated.
However what you are looking for is available at components\com_users\models\forms\registration.xml file. you can change the default fields of the registration form in this file.
If you would like to add additional fields to registration form, there is a better way:
http://docs.joomla.org/Creating_a_profile_plugin

How to add custom field in magento admin side for add category?

I'm new to magento and i'm using magento 1.7.0.2 . In this admin side category add file, i want to add one check box extra, but i don't know the add category file name and folder structure path. So can any one guide me and where the files are located , how to add check box on that.
Thanks in advance...
If you want to add another checkbox in the form of an attribute. You have to build a small module with an installation script. See this tutorial

How to create custom page template in folder

If I want a page that pulls product information (like an iPhone) from the server, how do I create a new page template for it and link it back to the main page? I don't need to create a new template directory. I just want to create a page that lists a product in a very specific way.
You can do it easily in Wordpress(http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates), but it's near impossible in Joomla without jumping through hoops!
Edit:
What I am talking about is how to add different page layouts for something I call a product page and then having a main page(index.php). Essentially, is there a way to have two template layouts in one template file? It seems so wasteful to have to create a new template directory if I want to tweak the layout of simple pages.
I'm not sure what you mean by "pull product information", but this is how you create new "pages"
To create new "pages", all you need to do is create a new article. To do this go to:
Joomla Backend >> Content >> Article Manager >> New
then you need to create a new menu item. To do this go to:
Joomla Backend >> Menus >> Main Menu (optional) >> New
and link the menu item to the article you created.
If there is something more specific you need to suit your needs, try on the Joomla Extensions Directory

Sitefinity 4 Products module Example doesn't create custom widget template

We are trying to use the Sitefinity 4 Products module that comes as an example in their SDK as a foundation for a couple custom content types we are creating.
When we use Products module example, we can see it created 2 new entries under the widget template to create custom widget templates. However, when we try to create the template, it will not show up in the list of available widget templates.
What is missing that is preventing the widget template we are creating from showing up on the list for editing. The widget template we create doesn't show up under All Templates nor my Templates.
I encountered this issue before, it turned out that my templates were set with a Build Action of "Content" instead of "Embedded Resource".
hope this is helpful!
I received a response from Telerik, it is a bug in their system that the widget module does not pick up the area name from custom modules. This should be fixed in a future release of Sitefinity. In the mean time, you can update the record in the sf_presentation_data table to contain an area_name so it will show up as an option in the admin.

Resources