- Posts: 6
- Thank you received: 0
Remove shipping cost
- kaya
- Topic Author
- Offline
- New Member
-
Less
More
10 years 1 month ago #57960
by kaya
Remove shipping cost was created by kaya
Hi,
I have 2 Items in shopping cart, one has shipping cost, another has no. If I remove the item from the shopping cart, which has shipping cost, on the total cost is still the shipping cost.
Can you give me some point where I can update/remove the shipping cost?
The version of EShop: 1.1.5 and 1.3.1 (mixed)
Thanks & Best Regards,
I have 2 Items in shopping cart, one has shipping cost, another has no. If I remove the item from the shopping cart, which has shipping cost, on the total cost is still the shipping cost.
Can you give me some point where I can update/remove the shipping cost?
The version of EShop: 1.1.5 and 1.3.1 (mixed)
Thanks & Best Regards,
Please Log in or Create an account to join the conversation.
- kaya
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
10 years 1 month ago - 10 years 1 month ago #57976
by kaya
Replied by kaya on topic Remove shipping cost
I fixed the bug, thank you.
if someone need, the solution:
function updateShippingCost()
{
<?php
$isShipping = false;
if(count($this->cartData) > 0)
{
foreach ($this->cartData as $key => $product)
{
if($product["product_shipping"] == 1):
$isShipping = true;
break;
endif;
}
}
if(!$isShipping):
$session = JFactory::getSession();
$session->set('shipping_method');
endif;
?>
}
and call the function after removing item.
if someone need, the solution:
function updateShippingCost()
{
<?php
$isShipping = false;
if(count($this->cartData) > 0)
{
foreach ($this->cartData as $key => $product)
{
if($product["product_shipping"] == 1):
$isShipping = true;
break;
endif;
}
}
if(!$isShipping):
$session = JFactory::getSession();
$session->set('shipping_method');
endif;
?>
}
and call the function after removing item.
Last edit: 10 years 1 month ago by kaya. Reason: sharing the solution.
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
10 years 1 month ago #58026
by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Remove shipping cost
OK Kaya,
I think this was small bug from old version. Seem I also fixed it in the latest version of EShop.
Anyway, thank you for fixing it and showing here.
Sincerely, Giang
I think this was small bug from old version. Seem I also fixed it in the latest version of EShop.
Anyway, thank you for fixing it and showing here.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
Moderators: Giang Dinh Truong
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.