문제

제품을 주문하는 두 가지 옵션이 있습니다.

  1. 자신을 집 (작품)
  2. 배달, 30 번 이하 주문, - 7을 지불해야합니다. - 전달 비용이 없습니다 :

    tablerates를 사용합니다.CSV를 업로드했으며 올바르게 완료되었습니다.

    Land,Provincie,Postcode,"Subtotaal bestelling (en hierboven)",Verzendkosten
    *,*,*,0.0000,7.0000
    *,*,*,30.0000,0.0000
    
    .

    조건;가격 대 위치

    30 분 30 일에 주문을 할 때, 7, - oké

    그러나 30 위를 차지할 때 - (소형) 여전히 7, - 을 추가합니다.

    캐시 등을 삭제했습니다. 내가 놓칠 수있는 것이 있습니까?

    버전 1.7.0.2

도움이 되었습니까?

해결책

문제는 세금 일 수 있습니다. 35 달러에 무언가를 주문하고 세금이 21 %이면 총 주문량을 27.25로 계산합니다.그래서 그것은 무료 배송 비율에 맞지 않습니다.

앱 / 코드 / 코어 / 마법사 / 배송 / 모델 / 캐리어 / Flatrate.php 다음 코드를 추가합니다 (line 104 주위)

// exclude Virtual products price from Package value if pre-configured
    if (!$this->getConfigFlag('include_virtual_price') && $request->getAllItems()) {
        foreach ($request->getAllItems() as $item) {
            if ($item->getParentItem()) {
                continue;
            }
            if ($item->getHasChildren() && $item->isShipSeparately()) {
                foreach ($item->getChildren() as $child) {
                    if ($child->getProduct()->isVirtual()) {
                        $request->setPackageValue($request->getPackageValue() - $child->getBaseRowTotal());
                    }
                }
            } elseif ($item->getProduct()->isVirtual()) {
                $request->setPackageValue($request->getPackageValue() - $item->getBaseRowTotal());
            }
        }
    }
    //////////// add this piece of code ////////////
    if (Mage::helper('tax')->priceIncludesTax()) {
    $taxableAmount = 0;
    foreach ($request->getAllItems() as $item) {
        $taxableAmount += $item->getTaxableAmount();
    }
    $request->setPackageValue($taxableAmount);
    //////////// till here ////////////
}

    // Free shipping by qty
    $freeQty = 0;
    if ($request->getAllItems()) {
        $freePackageValue = 0;
.

이들은 costumer에 사용하는 요금입니다. 그들은 동일한 문제가있었습니다.costumer가 52,95를 위해 무언가를 명령했을 때, 배송은 무료이 아니며, 위의 코드를 추가 한 후

Land,Provincie,Postcode,"Subtotaal bestelling (en hierboven)",Verzendkosten
BEL,*,*,0.0000,6.9500
BEL,*,*,49.9900,0.0000
DEU,*,*,0.0000,4.9500
DEU,*,*,49.9900,0.0000
NLD,*,*,0.0000,4.9500
NLD,*,*,49.9900,0.0000
.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top