Display a message depending on the price

  • Posts: 14
  • Thank you received: 2
12 years 8 months ago #48905

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é
Attachments:

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48941

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.

  • Posts: 14
  • Thank you received: 2
12 years 8 months ago #48945

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: 12 years 8 months ago by rwstout. Reason: typo

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48997

<?php
if($this->element->prices[0]->price_value==150){
echo "my text";
}
?>

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

  • Posts: 14
  • Thank you received: 2
12 years 8 months ago #49002

Thanks! It's perfect now :-)


Groet,

René

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

Time to create page: 0.065 seconds
Powered by Kunena Forum