• 0
lcsua

Como saber si una orden tenia free shipping al momento de su creación

Question

Como saber si una orden tenia free shipping al momento de su creación, ya que no me puedo fiar de lo que dice el item ya que este puede cambiar a lo largo de su vida.
Saludos

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Não exste frete grátis. Alguém tem que pagar o serviço


Em order tem as informações do tipo de frete e dos valores pagos. Então é só comparar 2 pedidos que tem as formas de pagamento de frete diferentes, pago pelo cliente e incluso

ESTE É UM PEDIDO COM VALOR DE FRETE PAGO:

            [shipment_type] => shipping
            [mode] => me2
            [shipping_mode] => me2
            [status] => delivered
            [shipping_items] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => MLB99999999999
                            [description] => MMMMMMMMMMMMNNNNNNNNNMMMMMMMMMMMMMMMMMMNNNNNNNNNNNN
                            [quantity] => 1
                            [dimensions] => 10.0x11.0x16.0,150.0
                        )

                )

            [shipping_option] => stdClass Object
                (
                    [id] => 999999999
                    [shipping_method_id] => 100009
                    [name] => Normal
                    [currency_id] => BRL
                    [cost] => 15.9
                    [list_cost] => 15.9
...
[total_amount] => 64.9
    [total_amount_with_shipping] => 80.8
    [paid_amount] => 80.8


ESTE É UM PEDIDO COM VALOR DE FRETE INCLUSO:

    [shipping] => stdClass Object
        (
            [id] => 26197189593
            [site_id] => MLB
            [shipment_type] => shipping
            [mode] => me2
            [shipping_mode] => me2
            [status] => delivered
            [shipping_items] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => MLB98888888888
                            [description] => NMNMNMNMNMNMNNMNMNNNNNNNNNNNNNNNNNNNMMMMMMMMMMMMMMMMMMMMM
                            [quantity] => 1
                            [dimensions] => 2.0x16.0x25.0,550.0
                        )

                )

            [shipping_option] => stdClass Object
                (
                    [id] => 27552236
                    [shipping_method_id] => 182
                    [name] => Expresso
                    [currency_id] => BRL
                    [cost] => 0
                    [list_cost] => 3.25

...
    [total_amount] => 120
    [total_amount_with_shipping] => 120
    [paid_amount] => 120

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...