Skip to main content

Fields in table

More
12 years 7 months ago #146035 by tirone
Fields in table was created by tirone
-- 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 } ?>

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

More
12 years 7 months ago #146056 by Mohamed Thelji
Replied by Mohamed Thelji on topic Fields in table
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.

More
12 years 7 months ago #146174 by tirone
Replied by tirone on topic Fields in table
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.

More
12 years 7 months ago - 12 years 7 months ago #146236 by Xavier
Replied by Xavier on topic Fields in table
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:
Code:
echo $this->row->prices[0]->price_value;
Last edit: 12 years 7 months ago by Xavier.

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

More
12 years 7 months ago #146311 by tirone
Replied by tirone on topic Fields in table
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?

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

More
12 years 7 months ago - 12 years 7 months ago #146326 by Mohamed Thelji
Replied by Mohamed Thelji on topic Fields in table
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: 12 years 7 months ago by Mohamed Thelji.

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

More
12 years 7 months ago #146473 by tirone
Replied by tirone on topic Fields in table
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.

More
12 years 7 months ago #146478 by nicolas
Replied by nicolas on topic Fields in table
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.199 seconds
Powered by Kunena Forum