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

Error in shipping handling (with patch)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.2.0, 4.3.0beta1
    • Legacy > Webshop
    • 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

            unknown unknown
            adam.helms adam.helms
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: