Display a message depending on the price
14 years 5 months ago #48905
by rwstout
Groet,
René
Display a message depending on the price was created by rwstout
Hallo,
I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment).
My php-knowlegde is very limited.
Any idea?
Thanks,
René
I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment).
My php-knowlegde is very limited.
Any idea?
Thanks,
René
Groet,
René
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48941
by nicolas
Replied by nicolas on topic Re: Display a message depending on the price
You can add it in the file "show_default" of the view "product" via the menu Display->Views, after the block of code related to the display of the price.
Please Log in or Create an account to join the conversation.
14 years 5 months ago - 14 years 5 months ago #48945
by rwstout
Thanks, I had come that far, too. But now my challenge: what is the code for checking if the price with tax = 150?
Groet,
René
Replied by rwstout on topic Re: Display a message depending on the price
nicolas wrote: You can add it in the file "show_default" of the view "product" via the menu Display->Views, after the block of code related to the display of the price.
Thanks, I had come that far, too. But now my challenge: what is the code for checking if the price with tax = 150?
Groet,
René
Last edit: 14 years 5 months ago by rwstout. Reason: typo
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48997
by nicolas
Replied by nicolas on topic Re: Display a message depending on the price
<?php
if($this->element->prices[0]->price_value==150){
echo "my text";
}
?>
if($this->element->prices[0]->price_value==150){
echo "my text";
}
?>
Please Log in or Create an account to join the conversation.
14 years 5 months ago #49002
by rwstout
Groet,
René
Replied by rwstout on topic Re: Display a message depending on the price
Thanks! It's perfect now
Groet,
René
Please Log in or Create an account to join the conversation.
Time to create page: 0.182 seconds