Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest
  • Page:
  • 1

TOPIC: price incl. VAT

price incl. VAT 10 years ago #21714

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

Regards

Markus

Re: price incl. VAT 10 years ago #21718

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • 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 8 years, 3 months 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 8 years, 2 months ago #29120

  • thuyltt
Dear fabius,
Could you please send us your URL link to check this issue?

Thanks.

Re: price incl. VAT 7 years, 11 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 7 years, 11 months ago #30702

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • 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: 0.31 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.

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
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes