[Resolved] WooCommerce Magnification

Home Forums Support [Resolved] WooCommerce Magnification

Home Forums Support WooCommerce Magnification

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1639167


    I tried commenting/replying to this thread:

    So I am adding my issue here.

    I am having the same request by a client. Couldn’t I use a hook element for this? And if so, why isn’t it mentioned on this page? https://docs.generatepress.com/article/adding-php/ I thought that was the purpose of Elements in GP? Just curious. ๐Ÿ™‚

    I am using the code from Felipe, but it doesn’t seem to work. Plus, I don’t know the place to select for the hook as well. There are about 50 to choose from, alone under WooCommerce.

    For all the greatness of Woo, why after all these years, doesn’t it have some decent simple options? Like turn off magnification. Or add product directly to cart? ๐Ÿ™‚

    The mysteries!


    Customer Support

    Hi there,

    the PHP Snippet provided in that topic has to be added using one of the methods provided here:


    Explanation: when you see add_action ( or add_filter ) in a PHP snippet – well those are methods for adding something to a hook.

    The Hook Element – is doing the same thing its just writing the add_action code along with any display conditions for you behind the scenes.

    As hooks are executed in particular order ( firing sequence ) you can’t simply get one hook action to create another hook action.

    Yes, the wonders of Woo … the bottom line here is Woo is complicated but very extensible. And they have to make money so they sell a lot of extensions that provide some features that could be built in. Or as is the WP way could be added to Themes and Plugins.


    Hi David,

    thank you for your reply and the clarification.

    Code Snippets Plugin with Felipe’s code did the trick!

    Thanks again a have a great weekend,

    Customer Support

    You’re welcome and glad to hear that

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