- Posts: 223
- Thank you received: 1
template overide
- plumbingdeals
-
Topic Author
- Offline
Less
More
14 years 11 months ago - 14 years 11 months ago #27875
by plumbingdeals
template overide was created by plumbingdeals
Last edit: 14 years 11 months ago by plumbingdeals.
Please Log in or Create an account to join the conversation.
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.
- plumbingdeals
-
Topic Author
- Offline
Less
More
- Posts: 223
- Thank you received: 1
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...
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.
14 years 11 months ago #27889
by nicolas
Replied by nicolas on topic Re: template overide
It's that line:
echo JText::_('PER_UNIT');
echo JText::_('PER_UNIT');
Please Log in or Create an account to join the conversation.
- plumbingdeals
-
Topic Author
- Offline
Less
More
- Posts: 223
- Thank you received: 1
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...
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.
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';
}
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.
- plumbingdeals
-
Topic Author
- Offline
Less
More
- Posts: 223
- Thank you received: 1
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....
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.
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);
$this->row->prices = array_reverse($this->row->prices);
Please Log in or Create an account to join the conversation.
- plumbingdeals
-
Topic Author
- Offline
Less
More
- Posts: 223
- Thank you received: 1
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
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