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

Shipping VAT value is not taken into account

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2014.11, 5.4.0-beta1
    • 2014.07, 5.3.3, 5.4-dev
    • Misc

    Description

      Bug occurs only for shipping handler returning old shipping info.
      When you create custom shipping handler like this:

      class testShippingHandler
      {
          function __construct()
          {
          }
      
          function getShippingInfo( $productCollectionID )
          {
              return array(
                  'description' => ezpI18n::tr( 'design/standard/shop/shippinghandler/test', 'Example shipping cost' ),
                  'vat_value' => 10,
                  'cost' => 100,
                  'is_vat_inc' => 0
              );
          }
      
          function updateShippingInfo( $productCollectionID )
          {
          }
      
          function purgeShippingInfo( $productCollectionID )
          {
          }
      }
      

      your shipping info is processed in this block, where the new eZOrderItem is created incorrectly (VAT info). Compare this (ok) and this (incorrect).
      PR: https://github.com/ezsystems/ezpublish-legacy/pull/1098

      Attachments

        Activity

          People

            Unassigned Unassigned
            karol_r karol_r
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: