I have an observer function on the event checkout_cart_add_product_complete that is pulling parameters out of the URL and modifying the cart based on the parameters. This portion is all working fine.

However, there is a block injected by a 3rd party module that sets a value on radio buttons based on a function that evaluates settings in the Magento backend. I would like to override the value returned by this function based on the results of my observer.

What would the best way to go about this be?

1 Answer 1


maybe it's not the best way, but in your etc/modules/YOURMODULE.xml, you can add something like

<?xml version="1.0" ?>

This will allow your module be loaded after the 3rd party module, so it will override any similar functions.

  • Turned out to be a conditional error in the third party module and I had to edit that module itself which resolved the issue. Apr 27, 2016 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.