• Resolved joaolima123123

    (@joaolima123123)


    Hi,

    I need to set differente costs by delivery day. For example, I know that Saturday is one of the best days of the week, so I want to charge more for orders made with delivery day equals Saturday.

    Can I do it with this hook?

    flexible-shipping/condition/contents_value

    Can modify contents cost passed to Price (value) condition.

    Parameters:

    • float?$contents_cost?Contents cost.

    Hook available since version: 4.1.1

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support lusp

    (@lusp)

    Hi @joaolima123123,

    You can use either the flexible-shipping/condition/contents_value hook you’ve mentioned or the flexible-shipping/shipping-method/calculated-cost one. Please mind that the first one can be used to modify the contents value for the condition check and the second one to customize the final shipping cost.

    Kind regards,
    Luke

    Thread Starter joaolima123123

    (@joaolima123123)

    Hi Luke,

    We don’t want to replace values, we want to add ou remove.

    Which hook is better for this?

    Plugin Support lusp

    (@lusp)

    Hi @joaolima123123,

    Just to make sure if I got everything right – you’d like to use a hook to set a different shipping cost for specific day of the week to achieve something what’s available by default with When: Day of the week condition using Flexible Shipping PRO?

    https://monosnap.com/file/otPhXDtFH0xPHW0xMkxAmMk7rfNF7w

    Did I understand correctly, or did you mean something else by ‘We don’t want to replace values, we want to add or remove them’?

    Kind regards,
    Luke

    Thread Starter joaolima123123

    (@joaolima123123)

    Hi Luke,

    I’ll give you an example, I think it’s easier.
    We have a plugin that allows our customers to choose the delivery day. So, we wanted to have a fixed value of 2,90€ (for example) and change it to 3,90€ or 1,90€ if the client chooses the delivery day to Saturday.
    I think that what you mentioned was for the day that the order is placed, right?

    Plugin Support lusp

    (@lusp)

    Oh, thank you for the further explanation–that makes a difference. If there’s a 3rd party solution involved which allows the customers to choose the delivery date is not equal to the day the order is placed, than you should use the flexible-shipping/shipping-method/calculated-cost to modify the cost depending on the customers’ choice.

    Kind regards,
    Luke

    Plugin Support lusp

    (@lusp)

    Since there are no further inquiries concerning this case, I’m marking this thread as resolved.

    Kind regards,
    Luke

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.