ims_after_update_cart hook

Bring Your Business to LifeSupportImage Storeims_after_update_cart hook

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #55609
    lch503
    Participant

    Hello

    There is no ims_after_update_cart hook as it says in the documentation. Could you add this preferably between lines 281 and 283 of _inc/cart.php?

    Thanks,

    Leon

    #55615
    Xpark Media
    Keymaster

    @lch503,

    The hook changed, use ims_after_add_to_cart_{$action} where $action is “add” or “update”, if you want to use the hook only when the car is updated use ims_after_add_to_cart_update.

    If you want to run your function every time use ims_after_add_to_cart

    #55968
    lch503
    Participant

    Hello,

    If I use the ims_after_add_to_cart I have to recalculate everything, and resave my data to the database. Most of the code will be nearly all copy and paste what you have, and therefore just being re-executed.

    Would you please reconsider adding the hook ims_after_update_cart in the location I suggest as this would be a massive help in the creation of the CD plugin, as with this addition it is complete. (I have added it myself and it all works).

    Thanks,

    Leon

    #55972
    lch503
    Participant

    Hello,

    I have completed the CD plugin using he current hooks, therefore my request is not required. Thank you for all your help.

    You can mark this as closed.

    Thanks,

    Leon

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