Skip to main content

place price in custom template

13 years 8 months ago #92667 by Maurice
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 or Create an account to join the conversation.

13 years 8 months ago #92814 by Xavier
Hi,

The code for the price is:
Code:
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"> <?php //LAYOUT quantity $this->row = & $this->element; $this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this->row->product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this->setLayout('quantity'); echo $this->loadTemplate(); ?> </div>
And for the custom fields in the product table:
Code:
<?php if(!empty($this->fields)){ //LAYOUT show_block_custom_main $this->setLayout('show_block_custom_main'); echo $this->loadTemplate(); } ?>
The following user(s) said Thank You: Maurice

Please Log in or Create an account to join the conversation.

13 years 8 months ago #92816 by Maurice
Hi Xavier,

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

Kind regards,
Maurice

Please Log in or Create an account to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum