How To Show The Categories Below Main Images In Product Detail Page

How can i show the categories just below the main images in product detail page. for more clarification, please see the example below. currently,

https://breazy.com/products/charlie-s-custard-charlie-noble

- enable the My changes module

- create the design/themes/THEME/templates/addons/my_changes/hooks/products/product_images.post.tpl file

- add the following content

{if $product.category_ids}
    {foreach from=$product.category_ids item=cid}
        {$cid|fn_get_category_name}  
    {/foreach}
{/if}

- clear cache and check

(!) Not tested

From where and how to enable the my change module

how to get the category image also means is there any in built function.


- enable the My changes module

- create the design/themes/THEME/templates/addons/my_changes/hooks/products/product_images.post.tpl file

- add the following content

{if $product.category_ids}
    {foreach from=$product.category_ids item=cid}
        {$cid|fn_get_category_name}  
    {/foreach}
{/if}

- clear cache and check

(!) Not tested

how to get the category image also means is there any in built function.

how to get the category image also means is there any in built function.


how to get the category image also means is there any in built function.

Can you please tell me how find the template name of any page like category and product.

From where and how to enable the my change module

Add-ons -> Manage add-ons page

how to get the category image also means is there any in built function.

I am afraid, not only changes in template are required since category images are not retrieved from database in this case. You should call additional php functions to do it

Can you please tell me how find the template name of any page like category and product.

Actually it is not obvious from first point of view

Category template:

design/themes/THEME/templates/views/categories/view.tpl

Category product templates:

design/themes/THEME/templates/blocks/product_list_templates

Product templates:

design/themes/THEME/templates/blocks/product_templates

Add-ons -> Manage add-ons page

I am afraid, not only changes in template are required since category images are not retrieved from database in this case. You should call additional php functions to do it

Actually it is not obvious from first point of view

Category template:

design/themes/THEME/templates/views/categories/view.tpl

Category product templates:

design/themes/THEME/templates/blocks/product_list_templates

Product templates:

design/themes/THEME/templates/blocks/product_templates

Thank you for your valuable time. i am newbie in cs cart and i wanna to study the cs-cart. So, is there proper doc. through which i can perform some task.

Thanks,

Tarun Soni

You can start education form the following articles

http://docs.cs-cart.com/4.5.x/developer_guide/index.html