[Skip to main content](#vessel-content)

#   How to add a banner in the product page?

##

- **[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")**
- [![tinachou's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11887-tinachou "View tinachou's Profile") Topic Author
- [ Offline](/forum/user/11887-tinachou)

Less More

- Posts: 107
- Thank you received: 1
-
-

13 years 11 months ago -  13 years 11 months ago [\#79170](#79170) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  *[How to add a banner in the product page?](/forum/2-general-talk-about-hikashop/76235-how-to-add-a-banner-in-the-product-page#79170 "Dear all ,  I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.  Thank you so much. :)")* was created by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")*

Dear all ,

I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.

[ ![Q5&#95;2012-11-28.jpg](/forum/attachment/7224) ](/forum/attachment/7224 "Q5&#95;2012-11-28.jpg")

Thank you so much. ![:)](/media/kunena/emoticons/3.png ":)")

- [ ![Q5&#95;2012-11-28.jpg](/forum/attachment/7224) ](/forum/attachment/7224 "Q5&#95;2012-11-28.jpg") [ ](/forum/attachment/7224?download=1 "Q5&#95;2012-11-28.jpg")

Last edit: 13 years 11 months ago by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjM1LWhvdy10by1hZGQtYS1iYW5uZXItaW4tdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 11 months ago [\#79180](#79180) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[How to add a banner in the product page?](/forum/2-general-talk-about-hikashop/76235-how-to-add-a-banner-in-the-product-page#79180 "Dear all ,  I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.  Thank you so much. :)")*

Hi,
I think that you'll have to do it through your "show_default" file of the "product" view of your front-end template ("Hikashop-&gt;Display-&gt;Views"). And insert the HTML code in the right placeto display your banner.

Hope this will help you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjM1LWhvdy10by1hZGQtYS1iYW5uZXItaW4tdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")**
- [![tinachou's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11887-tinachou "View tinachou's Profile") Topic Author
- [ Offline](/forum/user/11887-tinachou)

Less More

- Posts: 107
- Thank you received: 1
-
-

13 years 11 months ago [\#80426](#80426) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  Replied by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")* on topic *[How to add a banner in the product page?](/forum/2-general-talk-about-hikashop/76235-how-to-add-a-banner-in-the-product-page#80426 "Dear all ,  I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.  Thank you so much. :)")*

Hi,

thanks for the hint.

My problem is that how to match each product page with a corresponding banner. Each product has its own banner.

Which file should I edit?

And how can I point the banner picture to a certain product page...?

Thank you so much. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjM1LWhvdy10by1hZGQtYS1iYW5uZXItaW4tdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago -  13 years 11 months ago [\#80473](#80473) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to add a banner in the product page?](/forum/2-general-talk-about-hikashop/76235-how-to-add-a-banner-in-the-product-page#80473 "Dear all ,  I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.  Thank you so much. :)")*

Hi,

Mohamed is right when he say that the file to edit is "show_default".
To match each product page with a banner, you just have to set a dynamic link in this view.

For example, &lt;img src="yourFolderPath/image_&lt;?php echo hikashop_getCID('product_id');?&gt;" alt="banner_&lt;?php echo hikashop_getCID('product_id');?&gt;"/&gt;
and name you banner image_+product id.

Last edit: 13 years 11 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjM1LWhvdy10by1hZGQtYS1iYW5uZXItaW4tdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")**
- [![tinachou's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11887-tinachou "View tinachou's Profile") Topic Author
- [ Offline](/forum/user/11887-tinachou)

Less More

- Posts: 107
- Thank you received: 1
-
-

13 years 11 months ago -  13 years 11 months ago [\#80618](#80618) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  Replied by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")* on topic *[How to add a banner in the product page?](/forum/2-general-talk-about-hikashop/76235-how-to-add-a-banner-in-the-product-page#80618 "Dear all ,  I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.  Thank you so much. :)")*

HI there,

I inserted the line into show_default.php. Code:

&lt;img src="images/product/banner/PRODUCT_&lt;?php echo hikashop_getCID('product_id');?&gt;.jpg" alt="banner_&lt;?php echo hikashop_getCID('product_id');?&gt;"/&gt;

However, I wonder the product_id is the same as which I defined? Such as A1, A2, A3..in the following picture.

[ ![Untitled&#95;2&#95;2012-12-06.jpg](/forum/attachment/7399) ](/forum/attachment/7399 "...2012-12-06.jpg")

But after I tested, I found the product_id is something generated by system? Because when I name the banner as "PRODUCT_A1.jpg", the picture will not appear.

How can I define the product_id?

Thank you very much. ![:)](/media/kunena/emoticons/3.png ":)")

- [ ![Untitled&#95;2&#95;2012-12-06.jpg](/forum/attachment/7399) ](/forum/attachment/7399 "...2012-12-06.jpg") [ ](/forum/attachment/7399?download=1 "...2012-12-06.jpg")

Last edit: 13 years 11 months ago by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjM1LWhvdy10by1hZGQtYS1iYW5uZXItaW4tdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#80656](#80656) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to add a banner in the product page?](/forum/2-general-talk-about-hikashop/76235-how-to-add-a-banner-in-the-product-page#80656 "Dear all ,  I wonder how can I add a banner in the product page besides the introduction text ? Please refer to the picture.  Thank you so much. :)")*

Hi,

Yes the product_id is defined by system, but if you prefer you can use the product code.
instead of "&lt;?php echo hikashop_getCID('product_id');?&gt;" you can use "&lt;?php echo $this-&gt;element-&gt;product_code; ?&gt;"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjM1LWhvdy10by1hZGQtYS1iYW5uZXItaW4tdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.061 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
