place price in custom template

  • Posts: 151
  • Thank you received: 9
11 years 8 months ago #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

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92814

Hi,

The code for the price is:

  <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:
  <?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.

  • Posts: 151
  • Thank you received: 9
11 years 8 months ago #92816

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.058 seconds
Powered by Kunena Forum