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

#   place price in custom template

##

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

Less More

- Posts: 151
- Thank you received: 9
-
-

13 years 8 months ago [\#92667](#92667) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  *[place price in custom template](/forum/4-how-to/78877-place-price-in-custom-template#92667 "Hi,  I created a new product template file and selected that template in the product properties. Everything looks fine so far when I watch the product of the frontpage. Now I need to display two fields and I don't know how.  - How can I display the price field? - And how can display a custom field text string drom the product table?  Thank you, Maurice")* was created by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")*

Hi,

I created a new product template file and selected that template in the product properties. Everything looks fine so far when I watch the product of the frontpage. Now I need to display two fields and I don't know how.

- How can I display the price field?
- And how can display a custom field text string drom the product table?

Thank you,
Maurice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4ODc3LXBsYWNlLXByaWNlLWluLWN1c3RvbS10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) 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 8 months ago [\#92814](#92814) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[place price in custom template](/forum/4-how-to/78877-place-price-in-custom-template#92814 "Hi,  I created a new product template file and selected that template in the product properties. Everything looks fine so far when I watch the product of the frontpage. Now I need to display two fields and I don't know how.  - How can I display the price field? - And how can display a custom field text string drom the product table?  Thank you, Maurice")*

Hi,

The code for the price is: Code:

&lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt; &lt;?php //LAYOUT quantity $this-&gt;row = &amp; $this-&gt;element; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt;

And for the custom fields in the product table: Code:

&lt;?php if(!empty($this-&gt;fields)){ //LAYOUT show_block_custom_main $this-&gt;setLayout('show_block_custom_main'); echo $this-&gt;loadTemplate(); } ?&gt;

The following user(s) said Thank You: [Maurice](/forum/user/7972-maurice "View Maurice's Profile")

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

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

Less More

- Posts: 151
- Thank you received: 9
-
-

13 years 8 months ago [\#92816](#92816) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  Replied by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")* on topic *[place price in custom template](/forum/4-how-to/78877-place-price-in-custom-template#92816 "Hi,  I created a new product template file and selected that template in the product properties. Everything looks fine so far when I watch the product of the frontpage. Now I need to display two fields and I don't know how.  - How can I display the price field? - And how can display a custom field text string drom the product table?  Thank you, Maurice")*

Hi Xavier,

Aha. Thank you very much! That's exactly what I need.

Kind regards,
Maurice

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

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