Moving Components Within The Quickview Modal

It’s possible to move, remove, and add components within the quickview modal. In this article, I’ll explain how to move them.

The following is a list of each component that is hooked into the modal, where it’s hooked, and at what priority. I’ll then use this information to move a few components around.


So let’s say we wanted to move the product meta before the price output. Currently, the meta is displayed here in the modal:

Product meta after price

In order to move this above the price, we want to unhook the current implementation, and re-hook it with a higher priority (higher in this case is a lower number).

You can add this code using the Code Snippets plugin, or using your preferred method.

function iconic_move_quickview_components() {
    global $jckqv;
    remove_action( 'jck_qv_summary', array( $jckqv, 'modal_part_meta' ), 35 );
    add_action( 'jck_qv_summary', array( $jckqv, 'modal_part_meta' ), 19 );

add_action( 'init', 'iconic_move_quickview_components' );

You can see I’ve set the priority to 19, as the price is queued up at priority 20. Now the modal will look like this:

Product meta before price example

Note that when you move items around, you may want to add some additional CSS to fix any spacing issues.

You can remove and add any number of actions in that same function. Just make sure when removing an action that you set the priority (the third parameter; 35 in our example) to be the same value as in the table above; you can obviously change this when re-adding the action.

Are you using WooCommerce Quickview yet?

Start your 14-day free trial right now and get instant access to the features described in this article.

or learn more

Was this helpful?

Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.

WooCommerce Quickview by Iconic

WooCommerce Quickview

Not got the plugin yet? Get instant access right now, free for 14 days.

or learn more

Still need help?

If you haven't found what you're looking for in our documentation, please contact support.

Get Support