Fields in table

  • Posts: 4
  • Thank you received: 0
10 years 9 months ago #146035

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : HikaShop Business: 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Crome

Hello!
Dear Sirs,
I did't get to deduce the price field and minimum number in the table.

<?php if($this->params->get('show_price')){ ?>???????
<td class="hikashop_product_price_row">
<?php $this->row->product_price; ?> ???????????
</td>
<?php } ?>

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #146056

Hi,
I didn't really understood your issue so can you please give me more information, through some screenshots for example ?

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

  • Posts: 4
  • Thank you received: 0
10 years 9 months ago #146174

I need display to the table " price_value" field. I unfortunately did not is obtained.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #146236

Hi,

Do you mean in the product listing in table ?
The price can be displayed by enabling an option in the menu/module configuration.

In you code, to display the price, you need an echo before the variable, else it will not be displayed.
And generally the required code is:

echo $this->row->prices[0]->price_value;

Last edit: 10 years 9 months ago by Xavier.

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

  • Posts: 4
  • Thank you received: 0
10 years 9 months ago #146311

Many thanks all work!
I have another question. I want to add a date field in the table hikashop_price and display the form. In what file it can be done?

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #146326

Hi,
To do that you'll have to edit the code of the "price" file of the "product" view of your back-end template through the page "Hikashop->Display->Views".

Last edit: 10 years 9 months ago by Mohamed Thelji.

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

  • Posts: 4
  • Thank you received: 0
10 years 8 months ago #146473

Thank you! One more question.
What file should be add code to record field Product->Prices->New field to database.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 8 months ago #146478

You would have to edit the function updatePrices of the file administrator/components/com_hikashop/classes/product.php

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

Time to create page: 0.090 seconds
Powered by Kunena Forum