- Posts: 25
- Thank you received: 0
Display price blackend
12 years 2 months ago #164542
by lovind
Display price blackend was created by lovind
-- HikaShop version business
-- Joomla version -- : 3.2
I need to customize the display of the blackend displaying the price with tax. how can I?
Thanks!
-- Joomla version -- : 3.2
I need to customize the display of the blackend displaying the price with tax. how can I?
Thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #164563
by nicolas
Replied by nicolas on topic Display price blackend
Hi,
On which product price of which page of the backend do you want to do that ?
Could you give a screenshot maybe ?
On which product price of which page of the backend do you want to do that ?
Could you give a screenshot maybe ?
Please Log in or Create an account to join the conversation.
12 years 2 months ago #164623
by lovind
Replied by lovind on topic Display price blackend
I would like to see two columns: price without VAT and price with VAT
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
12 years 2 months ago #164697
by nicolas
Replied by nicolas on topic Display price blackend
Hi,
To display the prices with tax on that listing, edit the file "listing" of the view "product" for your backend template via the menu Display>views and change the line:
<?php echo $this->currencyHelper->displayPrices(@$row->prices); ?>
to:
<?php echo $this->currencyHelper->displayPrices(@$row->prices,'price_value_with_tax'); ?>
and if you want both prices, simply use both lines of code and rearrange the HTML of the table to suits your needs.
To display the prices with tax on that listing, edit the file "listing" of the view "product" for your backend template via the menu Display>views and change the line:
<?php echo $this->currencyHelper->displayPrices(@$row->prices); ?>
to:
<?php echo $this->currencyHelper->displayPrices(@$row->prices,'price_value_with_tax'); ?>
and if you want both prices, simply use both lines of code and rearrange the HTML of the table to suits your needs.
Please Log in or Create an account to join the conversation.
12 years 2 months ago #164740
by lovind
Replied by lovind on topic Display price blackend
Thanks for the reply, but it does not work there is something wrong ... I am attaching the screenshot
Please Log in or Create an account to join the conversation.
12 years 2 months ago #164816
by Xavier
Replied by Xavier on topic Display price blackend
Hi,
The values of the price with tax are indeed not loaded.
Thanks to edit the file "administrator/components/com_hikashop/views/product/view.html.php" and replace the function "_loadPrices()" by:
The values of the price with tax are indeed not loaded.
Thanks to edit the file "administrator/components/com_hikashop/views/product/view.html.php" and replace the function "_loadPrices()" by:
Code:
function _loadPrices(&$rows){
$currencyClass = hikashop_get('class.currency');
$zone_id = hikashop_getZone();
$ids = array();
foreach($rows as $row){
$ids[]=(int)$row->product_id;
}
$query = 'SELECT * FROM '.hikashop_table('price').' WHERE price_product_id IN ('.implode(',',$ids).')';
$database = JFactory::getDBO();
$database->setQuery($query);
$prices = $database->loadObjectList();
if(!empty($prices)){
foreach($rows as $k => $row){
foreach($prices as $price){
if($price->price_product_id==$row->product_id){
if(!isset($row->prices)) $row->prices=array();
$rows[$k]->prices[$price->price_min_quantity]=$price;
$rows[$k]->prices[$price->price_min_quantity]->price_value_with_tax = $currencyClass->getTaxedPrice($price->price_value,$zone_id,$row->product_tax_id);
}
}
}
}
}
Please Log in or Create an account to join the conversation.
12 years 2 months ago #164902
by lovind
Replied by lovind on topic Display price blackend
Thanks!!! is ok!!!
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 154
- Thank you received: 4
11 years 11 months ago #175572
by olivnewton
Replied by olivnewton on topic Display price blackend
so xaviers-fix has not been incorporated to the latesst update 2.3.3?
do we need to keep track of this change or will this be part of the next update?
do we need to keep track of this change or will this be part of the next update?
Please Log in or Create an account to join the conversation.
11 years 11 months ago #175573
by nicolas
Replied by nicolas on topic Display price blackend
The modification will be added in HikaShop 2.3.4
HikaShop 2.3.3 was just a security release with no new features, improvment or fix.
HikaShop 2.3.3 was just a security release with no new features, improvment or fix.
Please Log in or Create an account to join the conversation.
11 years 11 months ago #175639
by kernel64
Kind regards,
Cornel
Replied by kernel64 on topic Display price blackend
When will 2.3.4 be released ?
Is there a roadmap with what will be added in the future of hikashop ?
Is there a roadmap with what will be added in the future of hikashop ?
Kind regards,
Cornel
Please Log in or Create an account to join the conversation.
11 years 11 months ago #175649
by Xavier
Replied by Xavier on topic Display price blackend
Hi,
The 2.3.4 should be released during this month, there is no roadmap, but once released you will see the changelog:
hikashop.com/support/support/documentati...ashop-changelog.html
The 2.3.4 should be released during this month, there is no roadmap, but once released you will see the changelog:
hikashop.com/support/support/documentati...ashop-changelog.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.199 seconds