- Posts: 29
- Thank you received: 0
Display information from tables
12 years 7 months ago #143612
by Stroppen
Display information from tables was created by Stroppen
-- HikaShop version -- :2.2.3
-- Joomla version --
.2.1
-- PHP version -- : 5.4.6
Hi,
Can you guys please help us how to display information from tables such as show category and variants on product page, and how to display a certain text if the price is lower respective higher than a x value as in the attached image.
Thanks in advance
/Henrik
-- Joomla version --
.2.1-- PHP version -- : 5.4.6
Hi,
Can you guys please help us how to display information from tables such as show category and variants on product page, and how to display a certain text if the price is lower respective higher than a x value as in the attached image.
Thanks in advance
/Henrik
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 7 months ago #143643
by Mohamed Thelji
Replied by Mohamed Thelji on topic Display information from tables
Hi,
1. The solution will be to directly edit the code of the "show_default" file of the "product" view of your front-end template through the page "Hikashop->DIsplay->Views"
2. Adding your tab through your product description can be a solution
.
1. The solution will be to directly edit the code of the "show_default" file of the "product" view of your front-end template through the page "Hikashop->DIsplay->Views"
2. Adding your tab through your product description can be a solution
The following user(s) said Thank You: Marius
Please Log in or Create an account to join the conversation.
12 years 7 months ago #143660
by Stroppen
Replied by Stroppen on topic Display information from tables
Hi Mohamed,
Yes, i know which view but not what to write to get/show the information, such as
but i need to show information about category name etc.
/Henrik
Yes, i know which view but not what to write to get/show the information, such as
Code:
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo "Artikelnr: ".$this->element->product_code;
?>
</span>
/Henrik
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 7 months ago - 12 years 7 months ago #143689
by Mohamed Thelji
Replied by Mohamed Thelji on topic Display information from tables
Using this kind of code will probably do the job if your product don't have any variant :
Note that if your products have variants, it will be more complicated to do that.
Code:
if($this->element->prices[0]->price_value_with_tax > X){
echo 'Price greater than X';
}else{
echo 'Price lower than X';
}
Last edit: 12 years 7 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
Time to create page: 0.188 seconds