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

#   Assign different listing\_img\_title view

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 months 4 weeks ago [\#371907](#371907) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371907 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 4.6.2
-- Joomla version -- : 3.10.12

Hi,

Is it possible to create and assign overrides for the listing_img_title.php view file like we do for show_default.php for example?
I need to have a different one for a specific category.

I have added a custom span text *&lt;span class="uk-text-meta"&gt;(με ΦΠΑ)&lt;/span&gt;* in the price area and i need to change that span for a specific category.
Code:

&lt;!-- PRODUCT PRICE --&gt; &lt;?php if($this-&gt;params-&gt;get('show_price','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price')); } if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;span class="uk-text-meta"&gt;(με ΦΠΑ)&lt;/span&gt; &lt;!-- EO PRODUCT PRICE --&gt;

Thank you

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 months 4 weeks ago [\#371909](#371909) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371909 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi,

Yes and no.

For show_default, you have a "layout on product page" in the HikaShop configuration as default for all the products, and a "layout" setting in each product to override this default so that you can have per product layouts.

In that sense, there is no "per category" layout setting for the product card of listings. This would be strange in some cases.
For example, if you display a HikaShop content module configured to display a listing of best sellers, it's likely the products will come from different categories. And having different products on the same listing displayed with different item layout could lead to strange results. Also, a product can be linked to different categories, which could potentially be linked to different item layouts.

However, there is an indirect way to do it per category: Suppose that you have a "Shop" menu item to access the listing of your categories and then you click on a category to get to its products listing, and then you click on a product to access the product's details page. You could configure a sub menu item named "A" as child of that "Shop" menu item and with its type as a categories listing or products listing, and with its main category set to category "A". Then on the Shop menu item, when clicking on "A", HikaShop would automatically switch you to the sub menu item "A". And in that sub menu item, you can configure an item layout for the products of that category under the "Products options" tab. And you can do the same for category B with a sub menu item B, with a different item layout selected for the products of that category.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 months 4 weeks ago [\#371919](#371919) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371919 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi,

It's kinda complicated :silly:
If in that specific menu item i change the Show taxed prices to no tax, can i add a custom text there for no taxed prices only?

Thank you

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 months 4 weeks ago [\#371923](#371923) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371923 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi,

Yes. Since you have already set up a menu item dedicated to that category, with its own listing_img_title view file, and only that menu item is configured to show prices without tax, you can simply put your custom text directly in that view file. It will only appear when products are displayed through that menu item, which is the no-tax one, so the custom text will only show on the no-tax listings, exactly as you want.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 months 4 weeks ago [\#371926](#371926) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371926 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Great!

Can you help me about where i add the text?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 months 4 weeks ago [\#371927](#371927) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371927 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi,

Didn't you already added it in an override of listing_img_title as per your initial message ?

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 months 3 weeks ago [\#371947](#371947) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371947 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi!

The text **(με ΦΠΑ)** that i added next to the price is for prices with tax.
That's why i am asking if i can add a different text there for the prices without tax!

Thank you

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 months 3 weeks ago [\#371948](#371948) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371948 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi,

Got it, you want the text to change automatically depending on whether that listing is showing prices with tax or without tax. You can do that in your listing_img_title override with this small check: Code:

&lt;?php $config = hikashop_config(); $priceWithTax = $this-&gt;params-&gt;get('price_with_tax', 3); if($priceWithTax == 3) $priceWithTax = (int)$config-&gt;get('price_with_tax'); if($priceWithTax == 1) { echo ' (με ΦΠΑ)'; } elseif($priceWithTax == 0) { echo ' (χωρίς ΦΠΑ)'; } // note: a value of 2 means both prices (with and without tax) are displayed, // add a line here if you also want a text in that case ?&gt;

Put that where you currently have the hardcoded "(με ΦΠΑ)" text. The value comes from the "Show taxed prices" setting of the menu item (and falls back to the same setting in the HikaShop configuration when the menu item leaves it on the default), so the correct text is shown automatically for each listing without you having to maintain two separate files.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 months 3 weeks ago -  5 months 3 weeks ago [\#371949](#371949) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371949 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Great thank you!

Can i add a class to the text to be able to customise it?
Also, even though in the product listing it is correct now and the prices of this category are without tax, when you enter a product page the price is displayed with the tax. Why is that?

For example:
[ www.art-metal.gr/epipla2/krevatia](https://www.art-metal.gr/epipla2/krevatia)
[ www.art-metal.gr/epipla2/krevatia/product/krevati-art-5011-001](https://www.art-metal.gr/epipla2/krevatia/product/krevati-art-5011-001)

Last edit: 5 months 3 weeks ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 months 3 weeks ago -  5 months 3 weeks ago [\#371950](#371950) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Assign different listing\_img\_title view](/forum/26-product-category-display/910520-assign-different-listing-img-title-view#371950 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 3.10.12  Hi,  Is it possible to create and assign overrides for the listing&#95;img&#95;title.php view file like we do for show&#95;default.php for example? I need to have a different one for a specific category.  I have added a custom span text (με ΦΠΑ) in the price area and i need to change that span for a specific category.  Thank you")*

Hi,

Sure. Just add a span like this: Code:

echo ' &lt;span class="my_class"&gt;(με ΦΠΑ)&lt;/span&gt;';

Whether the price is displayed with or without taxes depends.
On the listings, it depends on the corresponding setting under the Products options tab of the menu item, or the HikaShop options tab of the module.
On the product page, it depends on the main setting in the HikaShop configuration page:
[ www.hikashop.com/support/documentation/5...nfig.html#main\_taxes](https://www.hikashop.com/support/documentation/54-hikashop-config.html#main_taxes)

Last edit: 5 months 3 weeks ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MTA1MjAtYXNzaWduLWRpZmZlcmVudC1saXN0aW5nLWltZy10aXRsZS12aWV3P3RtcGw9bWFya2Rvd24=) 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.066 seconds

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