Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest
  • Page:
  • 1

TOPIC: price incl. VAT

price incl. VAT 5 years, 10 months ago #21714

Hi,
Is it possible to show the price in the shopping card incl. VAT?

Regards

Markus

Re: price incl. VAT 5 years, 10 months ago #21718

  • yennt
  • OFFLINE
  • Moderator
  • Posts: 1365
  • Karma: 20
Dear MWALTHER,

In order to show price with VAT, please open file (modules/mod_sj_hk_minicart_pro/core/helper.php) find this code:

$_price .= $currencyHelper->format($price->price_value, $price->price_currency_id);

and change to:

$_price .= $currencyHelper->format($price->price_value_with_tax, $price->price_currency_id);
break;

- edit file /modules/mod_sj_hk_minicart_pro/mod_sj_hk_minicart_pro.php
change code:

$_price .= $currencyHelper->format($price->price_value,$price->price_currency_id);

to:

$_price .= $currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);

Thanks & regards!

Re: price incl. VAT 4 years ago #29051

Hello,
I managed to do this and now all products display included of VAT.
But if i update product quantity on cart and press update there are 2 problems:
1)The total price is wrong because added last price without vat if i refresh page the value corrects
2)the TOTAL word dissapears.
any help or suggestions?

Re: price incl. VAT 4 years ago #29120

  • thuyltt
  • OFFLINE
  • Administrator
  • Posts: 1096
  • Karma: 10
Dear fabius,
Could you please send us your URL link to check this issue?

Thanks.

Re: price incl. VAT 3 years, 9 months ago #30689

Hello,
This fix does not work because the total price in the cart is always tax excluded.
If i add 2 products and press update the single prices are vat included and the total no.
Can i Have some Help?
Thank you

Re: price incl. VAT 3 years, 9 months ago #30702

  • yennt
  • OFFLINE
  • Moderator
  • Posts: 1365
  • Karma: 20
Dear Fabius,

Firstly, in file your_site/plugins/system/plg_sj_hk_ajax_minicart_pro/plg_sj_hk_ajax_minicart_pro.php
Please replace code:

$_price .= $currencyHelper->format($price->price_value,$price->price_currency_id);

by:

$_price .= $currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);

Then, you can go to file your_site/modules/mod_sj_hk_minicart_pro/core/helper.php and find code:
$_price .= $currencyHelper->format($price->price_value,$price->price_currency_id);
=> Edit to:

$_price .= $currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);


And find:

foreach($products as $product){

$Productclass->addAlias($product);
$config = hikashop_config();
$pathway_sef_name = $config->get('pathway_sef_name','category_pathway');
$category_pathway = JRequest::getInt($pathway_sef_name,0);
$product->id = $product->product_id;
$image = self::_getProductImage($product->product_id);
$product->title = $product->product_name;
$product->description = self::_cleanText($product->product_description);
$product->_image = $image ? $image : '';
$product->link = hikashop_completeLink('product&task=show&cid='.$product->product_id.'&name='.$product->alias.$url_itemid.$category_pathway);
$product->_price = self::_processPrice($product);

}

return $_cart;

=> Edit to:

foreach($products as $i=> $product){

$Productclass->addAlias($product);
$config = hikashop_config();
$pathway_sef_name = $config->get('pathway_sef_name','category_pathway');
$category_pathway = JRequest::getInt($pathway_sef_name,0);
$product->id = $product->product_id;
$image = self::_getProductImage($product->product_id);
$product->title = $product->product_name;
$product->description = self::_cleanText($product->product_description);
$product->_image = $image ? $image : '';
$product->link = hikashop_completeLink('product&task=show&cid='.$product->product_id.'&name='.$product->alias.$url_itemid.$category_pathway);
$product->_price = self::_processPrice($product);
if($products[$i]->cart_product_quantity <= 0){

unset($products[$i]);
}

}
$_cart->products = $products;

return $_cart;

Thanks & regards!
  • Page:
  • 1
Time to create page: 1.67 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes