Wrong Shipping total using Flat Fixed Per Item pricesFixed Shipping Cost Within UK, Another Fixed Cost For WorldwideAdding multiple “per-item” shipping optionsHow to combine table rate shipping and fixed shipping cost per product?Custom Shipping Per Country per productflat price for 6 items then price per additionalHow to automatically add a fixed tax in cartFlat Rate Shipping - 'Per Attribute' TypeSet a Fixed shipping price based on product attributeHow can I restrict available shipping methods based on items in cart (weight, etc.)?Flat Shipping rate for per 3 product in magento?
Repurpose telephone line to ethernet
Lazy brainfuck programmer
How best to join tables, which have different lengths on the same column values which exist in both tables?
Is "stainless" a bulk or a surface property of stainless steel?
!I!n!s!e!r!t! !b!e!t!w!e!e!n!
What happened after the end of the Truman Show?
How do you call it when two celestial bodies come as close to each other as they will in their current orbits?
Vegetarian dishes on Russian trains (European part)
From France west coast to Portugal via ship?
Align (multiline text)-nodes with tikzlibrary 'positioning'
Why don't politicians push for fossil fuel reduction by pointing out their scarcity?
Are there categories whose internal hom is somewhat 'exotic'?
Do predators tend to have vertical slit pupils versus horizontal for prey animals?
90s(?) book series about two people transported to a parallel medieval world, she joins city watch, he becomes wizard
Check disk usage of files returned with spaces
How can I train a replacement without letting my bosses and the replacement knowing?
My new Acer Aspire 7 doesn't have a Legacy Boot option, what can I do to get it?
Have made several mistakes during the course of my PhD. Can't help but feel resentment. Can I get some advice about how to move forward?
Is there such a thing as too inconvenient?
Are there any OR challenges that are similar to kaggle's competitions?
How do we test and determine if a USB cable+connector is version 2, 3.0 or 3.1?
Meaning of words заштырить and отштырить
Installing the original OS X version onto a Mac?
How to shade a polygon with curved lines in tikz?
Wrong Shipping total using Flat Fixed Per Item prices
Fixed Shipping Cost Within UK, Another Fixed Cost For WorldwideAdding multiple “per-item” shipping optionsHow to combine table rate shipping and fixed shipping cost per product?Custom Shipping Per Country per productflat price for 6 items then price per additionalHow to automatically add a fixed tax in cartFlat Rate Shipping - 'Per Attribute' TypeSet a Fixed shipping price based on product attributeHow can I restrict available shipping methods based on items in cart (weight, etc.)?Flat Shipping rate for per 3 product in magento?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've been searching for a solution to this. Basically what is happening here is each item in the inventory has it's own shipping price set.
When these items are added to a cart, the shipping is calculated and returned by the model shipping/carrier_flatrate, then added to an array.
I can't seem to find where this is totaled up. I've heard that the arrays can be sorted wrong in some cases, however, this seems to be a different situation causing this entirely. Any ideas are greatly appreciated.
I've been searching Google for days trying to make sense of this.
cart shipping model
add a comment |
I've been searching for a solution to this. Basically what is happening here is each item in the inventory has it's own shipping price set.
When these items are added to a cart, the shipping is calculated and returned by the model shipping/carrier_flatrate, then added to an array.
I can't seem to find where this is totaled up. I've heard that the arrays can be sorted wrong in some cases, however, this seems to be a different situation causing this entirely. Any ideas are greatly appreciated.
I've been searching Google for days trying to make sense of this.
cart shipping model
Can you give an example with numbers? It's kind of hard (at least for me) to understand. The 'Flat Fixed Per Item' shipping should be very simple. You set a cost for delivery for an item, the same price for all items (let's say 5$). If you have in cart 2 products, P1 with qty 2 and P2 with qty 4 the cost should be 2 * 5 + 4 * 5 = 30....or am I wrong?
– Marius♦
May 13 '13 at 16:29
The system has an odd setup,I haven't been able to figure out what the previous developers set up. Let me see if I can explain it better. Item 1 is set to have 5.98 Shipping, item 2 in the cart is 4.98 shipping, and item 3 is 29.98 shipping. The total shipping comes to 28.66. I'm not sure how it's getting these numbers. Each item in this inventory has it's own shipping price set. The shipping methods enabled in admin panel are Fixed (set to 5$, and seems to tie into the calculation somehow) and M2ePro shipping (disabled on frontend). Could these be conflicting?
– DWils
May 13 '13 at 22:43
Oh. I don't think I can help you much here and I doubt that anyone can without the looking at the code. From you question I understood that there is a problem with the default 'flat shipping', but it seams there is custom code involved. The flat shipping is supposed to work like I described in the comment above. Try disabling the extension that overrides this behavior and see if the error reproduces.
– Marius♦
May 14 '13 at 6:40
add a comment |
I've been searching for a solution to this. Basically what is happening here is each item in the inventory has it's own shipping price set.
When these items are added to a cart, the shipping is calculated and returned by the model shipping/carrier_flatrate, then added to an array.
I can't seem to find where this is totaled up. I've heard that the arrays can be sorted wrong in some cases, however, this seems to be a different situation causing this entirely. Any ideas are greatly appreciated.
I've been searching Google for days trying to make sense of this.
cart shipping model
I've been searching for a solution to this. Basically what is happening here is each item in the inventory has it's own shipping price set.
When these items are added to a cart, the shipping is calculated and returned by the model shipping/carrier_flatrate, then added to an array.
I can't seem to find where this is totaled up. I've heard that the arrays can be sorted wrong in some cases, however, this seems to be a different situation causing this entirely. Any ideas are greatly appreciated.
I've been searching Google for days trying to make sense of this.
cart shipping model
cart shipping model
edited Aug 7 at 5:32
Aasim Goriya
3,4292 gold badges13 silver badges45 bronze badges
3,4292 gold badges13 silver badges45 bronze badges
asked May 13 '13 at 11:49
DWilsDWils
5812 gold badges10 silver badges30 bronze badges
5812 gold badges10 silver badges30 bronze badges
Can you give an example with numbers? It's kind of hard (at least for me) to understand. The 'Flat Fixed Per Item' shipping should be very simple. You set a cost for delivery for an item, the same price for all items (let's say 5$). If you have in cart 2 products, P1 with qty 2 and P2 with qty 4 the cost should be 2 * 5 + 4 * 5 = 30....or am I wrong?
– Marius♦
May 13 '13 at 16:29
The system has an odd setup,I haven't been able to figure out what the previous developers set up. Let me see if I can explain it better. Item 1 is set to have 5.98 Shipping, item 2 in the cart is 4.98 shipping, and item 3 is 29.98 shipping. The total shipping comes to 28.66. I'm not sure how it's getting these numbers. Each item in this inventory has it's own shipping price set. The shipping methods enabled in admin panel are Fixed (set to 5$, and seems to tie into the calculation somehow) and M2ePro shipping (disabled on frontend). Could these be conflicting?
– DWils
May 13 '13 at 22:43
Oh. I don't think I can help you much here and I doubt that anyone can without the looking at the code. From you question I understood that there is a problem with the default 'flat shipping', but it seams there is custom code involved. The flat shipping is supposed to work like I described in the comment above. Try disabling the extension that overrides this behavior and see if the error reproduces.
– Marius♦
May 14 '13 at 6:40
add a comment |
Can you give an example with numbers? It's kind of hard (at least for me) to understand. The 'Flat Fixed Per Item' shipping should be very simple. You set a cost for delivery for an item, the same price for all items (let's say 5$). If you have in cart 2 products, P1 with qty 2 and P2 with qty 4 the cost should be 2 * 5 + 4 * 5 = 30....or am I wrong?
– Marius♦
May 13 '13 at 16:29
The system has an odd setup,I haven't been able to figure out what the previous developers set up. Let me see if I can explain it better. Item 1 is set to have 5.98 Shipping, item 2 in the cart is 4.98 shipping, and item 3 is 29.98 shipping. The total shipping comes to 28.66. I'm not sure how it's getting these numbers. Each item in this inventory has it's own shipping price set. The shipping methods enabled in admin panel are Fixed (set to 5$, and seems to tie into the calculation somehow) and M2ePro shipping (disabled on frontend). Could these be conflicting?
– DWils
May 13 '13 at 22:43
Oh. I don't think I can help you much here and I doubt that anyone can without the looking at the code. From you question I understood that there is a problem with the default 'flat shipping', but it seams there is custom code involved. The flat shipping is supposed to work like I described in the comment above. Try disabling the extension that overrides this behavior and see if the error reproduces.
– Marius♦
May 14 '13 at 6:40
Can you give an example with numbers? It's kind of hard (at least for me) to understand. The 'Flat Fixed Per Item' shipping should be very simple. You set a cost for delivery for an item, the same price for all items (let's say 5$). If you have in cart 2 products, P1 with qty 2 and P2 with qty 4 the cost should be 2 * 5 + 4 * 5 = 30....or am I wrong?
– Marius♦
May 13 '13 at 16:29
Can you give an example with numbers? It's kind of hard (at least for me) to understand. The 'Flat Fixed Per Item' shipping should be very simple. You set a cost for delivery for an item, the same price for all items (let's say 5$). If you have in cart 2 products, P1 with qty 2 and P2 with qty 4 the cost should be 2 * 5 + 4 * 5 = 30....or am I wrong?
– Marius♦
May 13 '13 at 16:29
The system has an odd setup,I haven't been able to figure out what the previous developers set up. Let me see if I can explain it better. Item 1 is set to have 5.98 Shipping, item 2 in the cart is 4.98 shipping, and item 3 is 29.98 shipping. The total shipping comes to 28.66. I'm not sure how it's getting these numbers. Each item in this inventory has it's own shipping price set. The shipping methods enabled in admin panel are Fixed (set to 5$, and seems to tie into the calculation somehow) and M2ePro shipping (disabled on frontend). Could these be conflicting?
– DWils
May 13 '13 at 22:43
The system has an odd setup,I haven't been able to figure out what the previous developers set up. Let me see if I can explain it better. Item 1 is set to have 5.98 Shipping, item 2 in the cart is 4.98 shipping, and item 3 is 29.98 shipping. The total shipping comes to 28.66. I'm not sure how it's getting these numbers. Each item in this inventory has it's own shipping price set. The shipping methods enabled in admin panel are Fixed (set to 5$, and seems to tie into the calculation somehow) and M2ePro shipping (disabled on frontend). Could these be conflicting?
– DWils
May 13 '13 at 22:43
Oh. I don't think I can help you much here and I doubt that anyone can without the looking at the code. From you question I understood that there is a problem with the default 'flat shipping', but it seams there is custom code involved. The flat shipping is supposed to work like I described in the comment above. Try disabling the extension that overrides this behavior and see if the error reproduces.
– Marius♦
May 14 '13 at 6:40
Oh. I don't think I can help you much here and I doubt that anyone can without the looking at the code. From you question I understood that there is a problem with the default 'flat shipping', but it seams there is custom code involved. The flat shipping is supposed to work like I described in the comment above. Try disabling the extension that overrides this behavior and see if the error reproduces.
– Marius♦
May 14 '13 at 6:40
add a comment |
1 Answer
1
active
oldest
votes
I believe you are looking for
app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php
Which looks like
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
if (!$this->getConfigFlag('active'))
return false;
$freeBoxes = 0;
if ($request->getAllItems())
foreach ($request->getAllItems() as $item) $item->getParentItem())
continue;
if ($item->getHasChildren() && $item->isShipSeparately())
foreach ($item->getChildren() as $child)
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual())
$freeBoxes += $item->getQty() * $child->getQty();
elseif ($item->getFreeShipping())
$freeBoxes += $item->getQty();
$this->setFreeBoxes($freeBoxes);
$result = Mage::getModel('shipping/rate_result');
if ($this->getConfigData('type') == 'O') // per order
$shippingPrice = $this->getConfigData('price');
elseif ($this->getConfigData('type') == 'I') // per item
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price')) - ($this->getFreeBoxes() * $this->getConfigData('price'));
else
$shippingPrice = false;
$shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
if ($shippingPrice !== false) $request->getPackageQty() == $this->getFreeBoxes())
$shippingPrice = '0.00';
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
$result->append($method);
return $result;
If there is custom code involved in calculating the shipping rates, I would look for a module that is rewriting the collectRates method, there is also a couple other events they could have hooked into to re-calculate the shipping costs, I would also look at the config.xml files of any custom modules that have been written.
Hope this helps
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f3681%2fwrong-shipping-total-using-flat-fixed-per-item-prices%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I believe you are looking for
app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php
Which looks like
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
if (!$this->getConfigFlag('active'))
return false;
$freeBoxes = 0;
if ($request->getAllItems())
foreach ($request->getAllItems() as $item) $item->getParentItem())
continue;
if ($item->getHasChildren() && $item->isShipSeparately())
foreach ($item->getChildren() as $child)
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual())
$freeBoxes += $item->getQty() * $child->getQty();
elseif ($item->getFreeShipping())
$freeBoxes += $item->getQty();
$this->setFreeBoxes($freeBoxes);
$result = Mage::getModel('shipping/rate_result');
if ($this->getConfigData('type') == 'O') // per order
$shippingPrice = $this->getConfigData('price');
elseif ($this->getConfigData('type') == 'I') // per item
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price')) - ($this->getFreeBoxes() * $this->getConfigData('price'));
else
$shippingPrice = false;
$shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
if ($shippingPrice !== false) $request->getPackageQty() == $this->getFreeBoxes())
$shippingPrice = '0.00';
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
$result->append($method);
return $result;
If there is custom code involved in calculating the shipping rates, I would look for a module that is rewriting the collectRates method, there is also a couple other events they could have hooked into to re-calculate the shipping costs, I would also look at the config.xml files of any custom modules that have been written.
Hope this helps
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
add a comment |
I believe you are looking for
app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php
Which looks like
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
if (!$this->getConfigFlag('active'))
return false;
$freeBoxes = 0;
if ($request->getAllItems())
foreach ($request->getAllItems() as $item) $item->getParentItem())
continue;
if ($item->getHasChildren() && $item->isShipSeparately())
foreach ($item->getChildren() as $child)
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual())
$freeBoxes += $item->getQty() * $child->getQty();
elseif ($item->getFreeShipping())
$freeBoxes += $item->getQty();
$this->setFreeBoxes($freeBoxes);
$result = Mage::getModel('shipping/rate_result');
if ($this->getConfigData('type') == 'O') // per order
$shippingPrice = $this->getConfigData('price');
elseif ($this->getConfigData('type') == 'I') // per item
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price')) - ($this->getFreeBoxes() * $this->getConfigData('price'));
else
$shippingPrice = false;
$shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
if ($shippingPrice !== false) $request->getPackageQty() == $this->getFreeBoxes())
$shippingPrice = '0.00';
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
$result->append($method);
return $result;
If there is custom code involved in calculating the shipping rates, I would look for a module that is rewriting the collectRates method, there is also a couple other events they could have hooked into to re-calculate the shipping costs, I would also look at the config.xml files of any custom modules that have been written.
Hope this helps
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
add a comment |
I believe you are looking for
app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php
Which looks like
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
if (!$this->getConfigFlag('active'))
return false;
$freeBoxes = 0;
if ($request->getAllItems())
foreach ($request->getAllItems() as $item) $item->getParentItem())
continue;
if ($item->getHasChildren() && $item->isShipSeparately())
foreach ($item->getChildren() as $child)
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual())
$freeBoxes += $item->getQty() * $child->getQty();
elseif ($item->getFreeShipping())
$freeBoxes += $item->getQty();
$this->setFreeBoxes($freeBoxes);
$result = Mage::getModel('shipping/rate_result');
if ($this->getConfigData('type') == 'O') // per order
$shippingPrice = $this->getConfigData('price');
elseif ($this->getConfigData('type') == 'I') // per item
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price')) - ($this->getFreeBoxes() * $this->getConfigData('price'));
else
$shippingPrice = false;
$shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
if ($shippingPrice !== false) $request->getPackageQty() == $this->getFreeBoxes())
$shippingPrice = '0.00';
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
$result->append($method);
return $result;
If there is custom code involved in calculating the shipping rates, I would look for a module that is rewriting the collectRates method, there is also a couple other events they could have hooked into to re-calculate the shipping costs, I would also look at the config.xml files of any custom modules that have been written.
Hope this helps
I believe you are looking for
app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php
Which looks like
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
if (!$this->getConfigFlag('active'))
return false;
$freeBoxes = 0;
if ($request->getAllItems())
foreach ($request->getAllItems() as $item) $item->getParentItem())
continue;
if ($item->getHasChildren() && $item->isShipSeparately())
foreach ($item->getChildren() as $child)
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual())
$freeBoxes += $item->getQty() * $child->getQty();
elseif ($item->getFreeShipping())
$freeBoxes += $item->getQty();
$this->setFreeBoxes($freeBoxes);
$result = Mage::getModel('shipping/rate_result');
if ($this->getConfigData('type') == 'O') // per order
$shippingPrice = $this->getConfigData('price');
elseif ($this->getConfigData('type') == 'I') // per item
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price')) - ($this->getFreeBoxes() * $this->getConfigData('price'));
else
$shippingPrice = false;
$shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
if ($shippingPrice !== false) $request->getPackageQty() == $this->getFreeBoxes())
$shippingPrice = '0.00';
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
$result->append($method);
return $result;
If there is custom code involved in calculating the shipping rates, I would look for a module that is rewriting the collectRates method, there is also a couple other events they could have hooked into to re-calculate the shipping costs, I would also look at the config.xml files of any custom modules that have been written.
Hope this helps
answered May 15 '13 at 14:52
Jeffrey L. RobertsJeffrey L. Roberts
9272 gold badges16 silver badges30 bronze badges
9272 gold badges16 silver badges30 bronze badges
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
add a comment |
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Thanks, this is exactly what I needed. I ran a grep in ssh and found the custom code written for this particular client. Looks like the previous dev wrote a switch case for shipping discounts. Thanks again!
– DWils
May 15 '13 at 19:32
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
Glad I could help =]
– Jeffrey L. Roberts
May 15 '13 at 20:31
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f3681%2fwrong-shipping-total-using-flat-fixed-per-item-prices%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you give an example with numbers? It's kind of hard (at least for me) to understand. The 'Flat Fixed Per Item' shipping should be very simple. You set a cost for delivery for an item, the same price for all items (let's say 5$). If you have in cart 2 products, P1 with qty 2 and P2 with qty 4 the cost should be 2 * 5 + 4 * 5 = 30....or am I wrong?
– Marius♦
May 13 '13 at 16:29
The system has an odd setup,I haven't been able to figure out what the previous developers set up. Let me see if I can explain it better. Item 1 is set to have 5.98 Shipping, item 2 in the cart is 4.98 shipping, and item 3 is 29.98 shipping. The total shipping comes to 28.66. I'm not sure how it's getting these numbers. Each item in this inventory has it's own shipping price set. The shipping methods enabled in admin panel are Fixed (set to 5$, and seems to tie into the calculation somehow) and M2ePro shipping (disabled on frontend). Could these be conflicting?
– DWils
May 13 '13 at 22:43
Oh. I don't think I can help you much here and I doubt that anyone can without the looking at the code. From you question I understood that there is a problem with the default 'flat shipping', but it seams there is custom code involved. The flat shipping is supposed to work like I described in the comment above. Try disabling the extension that overrides this behavior and see if the error reproduces.
– Marius♦
May 14 '13 at 6:40