Skip to main content

template overide

More
14 years 11 months ago - 14 years 11 months ago #27875 by plumbingdeals
i would like to create an overide for the price display of this view....


which php file would i edit?

thank you
Last edit: 14 years 11 months ago by plumbingdeals.

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

More
14 years 11 months ago #27878 by nicolas
Replied by nicolas on topic Re: template overide
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.

More
14 years 11 months ago #27887 by plumbingdeals
Replied by plumbingdeals on topic Re: template overide
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.

More
14 years 11 months ago #27889 by nicolas
Replied by nicolas on topic Re: template overide
It's that line:
echo JText::_('PER_UNIT');

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

More
14 years 11 months ago #27918 by plumbingdeals
Replied by plumbingdeals on topic Re: template overide
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.

More
14 years 11 months ago #27921 by nicolas
Replied by nicolas on topic Re: template overide
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.

More
14 years 11 months ago #27929 by plumbingdeals
Replied by plumbingdeals on topic Re: template overide
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.

More
14 years 11 months ago #27943 by nicolas
Replied by nicolas on topic Re: template overide
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.

More
14 years 11 months ago #27967 by plumbingdeals
Replied by plumbingdeals on topic Re: template overide
thank you, thank you, thank you!

completed mod can be viewed here

virtuemart.bestmfgco.com/hansgrohe/produ...ed-04218920-rubbed-b

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

Time to create page: 0.213 seconds
Powered by Kunena Forum