Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16277

Error in shipping handling (with patch)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Obsolete
    • Affects Version/s: 4.2.0, 4.3.0beta1
    • Fix Version/s: None
    • Component/s: Legacy > Webshop
    • Labels:
      None

      Description

      There is an error en the backward compapility code in ezshopoperationcollection which make it impossible to supply vat value. ezorderitems uses "vat_value", not vat

      patch

      --- shop/ezshopoperationcollection.php	(revision 24182)
      +++ shop/ezshopoperationcollection.php	(working copy)
      @@ -249,7 +249,7 @@
                   }
                   else
                   {
      -                // Made for backwards compability, if the array order_items are not supplied.
      +                // Made for backwards compability, if the array shipping_items are not supplied.
                       if ( !isset( $shippingInfo['vat_value'] ) )
                       {
                           $shippingInfo['vat_value'] = 0;
      @@ -263,7 +263,7 @@
                       $orderItem = new eZOrderItem( array( 'order_id' => $orderID,
                                                            'description' => $shippingInfo['description'],
                                                            'price' => $shippingInfo['cost'],
      -                                                     'vat' => $shippingInfo['vat_value'],
      +                                                     'vat_value' => $shippingInfo['vat_value'],
                                                            'is_vat_inc' => $shippingInfo['is_vat_inc'],
                                                            'type' => 'ezcustomshipping' ) );
                       $orderItem->store();
      

        Attachments

          Activity

            People

            Assignee:
            unknown unknown
            Reporter:
            adam.helms Adam Helms
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: