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

#   Idea / Feature Request: Template Text for products

##

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

Less More

- Posts: 110
- Thank you received: 4
-
-

12 years 11 months ago -  12 years 11 months ago [\#134730](#134730) by [mike](/forum/user/8167-mike "View mike's Profile")  *[Idea / Feature Request: Template Text for products](/forum/2-general-talk-about-hikashop/864021-idea-feature-request-template-text-for-products#134730 "-- url of the page with the problem -- :   www.waffenmarti.ch/shop  -- HikaShop version -- : HikaShop &#91;1308241414&#93; / -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : 31.0.1650.57 (Official Build 235101) -- Error-message(debug-mod must be tuned on) -- : None  I would like to place an idea / feature request, that would be nice for future versions of HIKA-Shop.  We have some different kinds of products in our Shop and for the most of them, we have to place a &quot;Statement&quot; like (&quot;You need a permit to buy&quot; or &quot;This product is only sold when... x or y&quot;), statements like that.  These are standard texts and always the same.  It would be nice, if these Texts could be stored as &quot;Template-Texts&quot;. If I put a new product to the store, it would be nice to enter the product specific parts like product name, description, size, weight, price, ... etc. and then choose such a Template-Text to be displayed below the product as a standard text.  I know how to solve issue with the custom fields but I would like to do as less as possible custom-changes to the PHP-Scripts of the Shop.  And why a text-template? It's simple. I can put a text to every product by hand and this text ever changes, then I have a problem (since I have to change all products by hand with this text). Otherwise I can change the text-template and it's done for all products.  May I ask you to add such a possibility to one of the next versions of Hika-Shop maybe?  You can see a sample of what i mean here:   www.waffenmarti.ch/shop/pistolen/desert-...rtant&#95;product&#95;notice  This &quot;Wichtige Produktehinweise&quot; (&quot;Important product notice&quot;) is coded by myself, but this means a change in the displaying scripts which I want to avoid to make updates easier. I know, that the updates do not overwrite my changes, but if I change a script, then I will not get the latest version of this script unless I'm porting my changes manually to the new version of the script.  Thank you and best regards Mike  PS.: For further information please message me or post here a note. Thank you very much!")* was created by *[mike](/forum/user/8167-mike "View mike's Profile")*

-- url of the page with the problem -- : [ www.waffenmarti.ch/shop](https://www.waffenmarti.ch/shop)
-- HikaShop version -- : HikaShop [1308241414] /
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : 31.0.1650.57 (Official Build 235101)
-- Error-message(debug-mod must be tuned on) -- : None

I would like to place an idea / feature request, that would be nice for future versions of HIKA-Shop.

We have some different kinds of products in our Shop and for the most of them, we have to place a "Statement" like ("You need a permit to buy" or "This product is only sold when... x or y"), statements like that.

These are standard texts and always the same.

It would be nice, if these Texts could be stored as "Template-Texts". If I put a new product to the store, it would be nice to enter the product specific parts like product name, description, size, weight, price, ... etc. and then choose such a Template-Text to be displayed below the product as a standard text.

I know how to solve issue with the custom fields but I would like to do as less as possible custom-changes to the PHP-Scripts of the Shop.

And why a text-template? It's simple. I can put a text to every product by hand and this text ever changes, then I have a problem (since I have to change all products by hand with this text). Otherwise I can change the text-template and it's done for all products.

May I ask you to add such a possibility to one of the next versions of Hika-Shop maybe?

You can see a sample of what i mean here:
[ www.waffenmarti.ch/shop/pistolen/desert-...rtant\_product\_notice](https://www.waffenmarti.ch/shop/pistolen/desert-eagle/produkt/1-desert-eagle-pistole-mark-xix-2-usa-fertigung.html#anch_important_product_notice)

This "Wichtige Produktehinweise" ("Important product notice") is coded by myself, but this means a change in the displaying scripts which I want to avoid to make updates easier. I know, that the updates do not overwrite my changes, but if I change a script, then I will not get the latest version of this script unless I'm porting my changes manually to the new version of the script.

Thank you and best regards
Mike

PS.: For further information please message me or post here a note. Thank you very much!

Last edit: 12 years 11 months ago by [mike](/forum/user/8167-mike "View mike's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NDAyMS1pZGVhLWZlYXR1cmUtcmVxdWVzdC10ZW1wbGF0ZS10ZXh0LWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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)
-

12 years 11 months ago [\#134807](#134807) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Idea / Feature Request: Template Text for products](/forum/2-general-talk-about-hikashop/864021-idea-feature-request-template-text-for-products#134807 "-- url of the page with the problem -- :   www.waffenmarti.ch/shop  -- HikaShop version -- : HikaShop &#91;1308241414&#93; / -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : 31.0.1650.57 (Official Build 235101) -- Error-message(debug-mod must be tuned on) -- : None  I would like to place an idea / feature request, that would be nice for future versions of HIKA-Shop.  We have some different kinds of products in our Shop and for the most of them, we have to place a &quot;Statement&quot; like (&quot;You need a permit to buy&quot; or &quot;This product is only sold when... x or y&quot;), statements like that.  These are standard texts and always the same.  It would be nice, if these Texts could be stored as &quot;Template-Texts&quot;. If I put a new product to the store, it would be nice to enter the product specific parts like product name, description, size, weight, price, ... etc. and then choose such a Template-Text to be displayed below the product as a standard text.  I know how to solve issue with the custom fields but I would like to do as less as possible custom-changes to the PHP-Scripts of the Shop.  And why a text-template? It's simple. I can put a text to every product by hand and this text ever changes, then I have a problem (since I have to change all products by hand with this text). Otherwise I can change the text-template and it's done for all products.  May I ask you to add such a possibility to one of the next versions of Hika-Shop maybe?  You can see a sample of what i mean here:   www.waffenmarti.ch/shop/pistolen/desert-...rtant&#95;product&#95;notice  This &quot;Wichtige Produktehinweise&quot; (&quot;Important product notice&quot;) is coded by myself, but this means a change in the displaying scripts which I want to avoid to make updates easier. I know, that the updates do not overwrite my changes, but if I change a script, then I will not get the latest version of this script unless I'm porting my changes manually to the new version of the script.  Thank you and best regards Mike  PS.: For further information please message me or post here a note. Thank you very much!")*

Hi,

What can be done is write something like: Code:

{SAMPLE_TEXT}

And edit the view "product / show_default" and add a replace like: Code:

$this-&gt;element-&gt;product_description = str_replace('{SAMPLE_TEXT}','Your sample text here.',$this-&gt;element-&gt;product_description);

Before: Code:

echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NDAyMS1pZGVhLWZlYXR1cmUtcmVxdWVzdC10ZW1wbGF0ZS10ZXh0LWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 110
- Thank you received: 4
-
-

12 years 11 months ago [\#134809](#134809) by [mike](/forum/user/8167-mike "View mike's Profile")  Replied by *[mike](/forum/user/8167-mike "View mike's Profile")* on topic *[Idea / Feature Request: Template Text for products](/forum/2-general-talk-about-hikashop/864021-idea-feature-request-template-text-for-products#134809 "-- url of the page with the problem -- :   www.waffenmarti.ch/shop  -- HikaShop version -- : HikaShop &#91;1308241414&#93; / -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : 31.0.1650.57 (Official Build 235101) -- Error-message(debug-mod must be tuned on) -- : None  I would like to place an idea / feature request, that would be nice for future versions of HIKA-Shop.  We have some different kinds of products in our Shop and for the most of them, we have to place a &quot;Statement&quot; like (&quot;You need a permit to buy&quot; or &quot;This product is only sold when... x or y&quot;), statements like that.  These are standard texts and always the same.  It would be nice, if these Texts could be stored as &quot;Template-Texts&quot;. If I put a new product to the store, it would be nice to enter the product specific parts like product name, description, size, weight, price, ... etc. and then choose such a Template-Text to be displayed below the product as a standard text.  I know how to solve issue with the custom fields but I would like to do as less as possible custom-changes to the PHP-Scripts of the Shop.  And why a text-template? It's simple. I can put a text to every product by hand and this text ever changes, then I have a problem (since I have to change all products by hand with this text). Otherwise I can change the text-template and it's done for all products.  May I ask you to add such a possibility to one of the next versions of Hika-Shop maybe?  You can see a sample of what i mean here:   www.waffenmarti.ch/shop/pistolen/desert-...rtant&#95;product&#95;notice  This &quot;Wichtige Produktehinweise&quot; (&quot;Important product notice&quot;) is coded by myself, but this means a change in the displaying scripts which I want to avoid to make updates easier. I know, that the updates do not overwrite my changes, but if I change a script, then I will not get the latest version of this script unless I'm porting my changes manually to the new version of the script.  Thank you and best regards Mike  PS.: For further information please message me or post here a note. Thank you very much!")*

Hello Xavier

I know, that this would be possible when changing the view product / show_default but I would like to avoid that because I started with HIKA-Shop V. 1.6

Some of my changed view scripts have still this version, because I'm not that good in programming PHP and it is extreemly time-consuming if i have to write my changes in every new Hika-Shop Version.

So I thought that it would be a nice feature for further versions of Hika-Shop to build that into the core files.

Best regards
Michael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NDAyMS1pZGVhLWZlYXR1cmUtcmVxdWVzdC10ZW1wbGF0ZS10ZXh0LWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.059 seconds

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