I am able to add a button to Product Listing page. But how do I add onclick to it? This is how I am adding the button: $subject->addButton('amazon_sync_button',[ 'label' => __('Sync with Amazon'), 'id' => 'amazon-sync-button', 'on_click' => 'setLocation('' . $this->sync() . '')' ]); I have created a function sync(), […]