Skip to main content

Display a message depending on the price

More
14 years 5 months ago #48905 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é

Groet,

René

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

More
14 years 5 months ago #48941 by nicolas
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.

More
14 years 5 months ago - 14 years 5 months ago #48945 by rwstout

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.

More
14 years 5 months ago #48997 by nicolas
<?php
if($this->element->prices[0]->price_value==150){
echo "my text";
}
?>

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

More
14 years 5 months ago #49002 by rwstout
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
Powered by Kunena Forum