Woocommerce Custom Plugin Dynamic Content
-
I am implementing a custom payment plugin that extends Woocommerce. On the checkout page, when the user clicks on the button, I need to fetch a QR code to display.
public function process_payment() { ... try { $response = json_decode($this->getQr('url')); } catch (Exception $e) { echo $e->getMessage(); die(); } $url = $response->url; $qr = $response->qr_code; }
I am getting the response correctly but I just need to find a way to hide the checkout button and display the QR code. Is there any hooks that exist for that?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Woocommerce Custom Plugin Dynamic Content’ is closed to new replies.