Home Forums WoodMart support forum Extra code insertion

Extra code insertion

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #567873

    vikdanrom
    Participant

    Please, I need your help with the code integration into multisite.

    Attachments:
    You must be logged in to view attached files.
    #568054

    Luke Nielsen
    Keymaster

    Hello,

    Try to use the code below for help:

    add_action( 'wp_head', function () {
    	?>
              put the code here
    	<?PHP
    
        if (is_checkout()) {
            ?>
           put the code for the Checout page
            <?PHP
        }
    } );

    Thank you for your time.

    Kind Regards

    • This reply was modified 4 months, 1 week ago by Luke Nielsen.
    • This reply was modified 4 months, 1 week ago by Luke Nielsen.
    • This reply was modified 4 months, 1 week ago by Luke Nielsen.
    #568078

    vikdanrom
    Participant

    Code insertion

    #568413

    Luke Nielsen
    Keymaster

    Hello,

    1. Define the code in the functions.php file in your child theme.

    2. As for the XML, try to use the default export here – https://prnt.sc/aeABdJurBCKk

    Kind Regards

    #570052

    vikdanrom
    Participant

    In the above code how to change the checkout page to “success thank you page”?

    #570131

    Luke Nielsen
    Keymaster

    Hello,

    Here is:

    if ( is_checkout_pay_page() ) {
    	//
    }

    If there’s anything else we can do, please get in touch.

    Kind Regards

    #575382

    vikdanrom
    Participant

    Dear Sirs, thank you for the support you have already provided. I would like to ask one more part which I try to implement into the multisite, but there is no success. In this thank you page I need to insert a code (array) which will return me an array with products that have been bought.

    #575705

    Luke Nielsen
    Keymaster
Viewing 8 posts - 1 through 8 (of 8 total)