template overide

  • Posts: 223
  • Thank you received: 1
13 years 1 month ago #27875

i would like to create an overide for the price display of this view....



which php file would i edit?

thank you

Attachments:
Last edit: 13 years 1 month ago by plumbingdeals.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 1 month ago #27878

The prices are displayed by the file "listing_price" of the view "product" that you can edit via Display->Views.

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

  • Posts: 223
  • Thank you received: 1
13 years 1 month ago #27887

thanks for the usual quick reply!

i find what you are referring to, but don't see where i could change the word "each", which is what i am after.

thanks...

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 1 month ago #27889

It's that line:
echo JText::_('PER_UNIT');

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

  • Posts: 223
  • Thank you received: 1
13 years 1 month ago #27918

i should have been more specific, my bad...sorry

found that and was able to change it from "each"

what i would like is for one of the prices to say "list price", and the other to say "our price"

also, just so you will know...we are sampling the free version in preparation to purchase the business edition, and just want to be sure we can adapt it to our needs.

thanks...

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 1 month ago #27921

Well, for that you can change:
echo JText::_('PER_UNIT');

to:
static $first = true;
if($first){
$first=false;
echo ' list price';
}else{
$first = true;
echo ' our price';
}

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

  • Posts: 223
  • Thank you received: 1
13 years 1 month ago #27929

thank you! works great!
last question...anyway to to have reverse prices? i.e. our price above list price

thanks....

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 1 month ago #27943

You can add the line below after the first <?php tag of that view file:
$this->row->prices = array_reverse($this->row->prices);

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

  • Posts: 223
  • Thank you received: 1
13 years 1 month ago #27967

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

Time to create page: 0.062 seconds
Powered by Kunena Forum