- Posts: 63
- Thank you received: 1
want to displey price divided to 12
12 years 10 months ago #133785
by ido.san
want to displey price divided to 12 was created by ido.san
hello every one 
i know little bit php but not knowing well the joomla behaving in components codes...
so my goal is to displey the price on product page and the price on categry displey -> the price divide to 12 for etc if i will put 60$ on backend will show fronted 5$... but that will not heart the checkout price the checout price will be 60$ ...
how i can do that !? i tried to go inside and edit some things in components/com_hikashop/views/product/tmpl
option.php
option_price.php
but nothing ... i will very tankfull for helpres...
tank u ido.
i know little bit php but not knowing well the joomla behaving in components codes...
so my goal is to displey the price on product page and the price on categry displey -> the price divide to 12 for etc if i will put 60$ on backend will show fronted 5$... but that will not heart the checkout price the checout price will be 60$ ...
how i can do that !? i tried to go inside and edit some things in components/com_hikashop/views/product/tmpl
option.php
option_price.php
but nothing ... i will very tankfull for helpres...
tank u ido.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #133795
by ido.san
Replied by ido.san on topic want to displey price divided to 12
got it...
line 251
components/com_hikashop/views/product/tmp/listing_price.php
if($this->params->get('price_with_tax')){
echo $this->currencyHelper->format(((@$price->price_value_with_tax)/12),$price->price_currency_id);
}
ido.
line 251
components/com_hikashop/views/product/tmp/listing_price.php
if($this->params->get('price_with_tax')){
echo $this->currencyHelper->format(((@$price->price_value_with_tax)/12),$price->price_currency_id);
}
ido.
Please Log in or Create an account to join the conversation.
12 years 10 months ago #133878
by nicolas
Replied by nicolas on topic want to displey price divided to 12
Hi,
Instead of editing the file directly, you should edit the file "listing_price" of the view "product" via the menu Display>Views as a template override. That way, you won't loose your change when you update HikaShop.
Instead of editing the file directly, you should edit the file "listing_price" of the view "product" via the menu Display>Views as a template override. That way, you won't loose your change when you update HikaShop.
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds