Public Ticket #2922674

Purchase Lists

Closed
Comments
2 Tickets 1
Sohaib Ahmad started the conversation 5 years ago on November 23, 2021 at 1:57pm

Hi there !

Is there a way to add "Save as purchase list" option to the checkout page like we've in cart page ? If yes, then how ?

Best Regards

2,762
KingsPlugins replied 5 years ago on November 23, 2021 at 5:09pm

Hi Sohaib,

Thank you for getting in touch,

Yes, you can add that with a custom PHP code snippet:

global $b2bking_public;
add_action( 'woocommerce_review_order_before_payment', array($b2bking_public, 'b2bking_purchase_list_cart_button'));

To add a PHP snippet, you can add it to functions.php or by following our guide at https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

If you want to control where exactly the button shows in the checkout page, in the above snippet you can change

woocommerce_review_order_before_payment

with any hook from this page https://www.businessbloomer.com/woocommerce-visual-hook-guide-checkout-page/

Let me know if I can help with anything, or if you have any questions,

Kind regards,

Stefan

Sign In