• Resolved stefan730

    (@stefan730)


    Hi there,
    I am trying to make my own template for the WooCommerce One Page Checkout plugin. But I can’t seem to link it correctly. I have copied the code of the product-single.php of the plugin and pasted into child-theme/woocommerce/checkout/checkout-flow.php

    If I try to use the shortcode [woocommerce_one_page_checkout product_ids=”xxx” template=”checkout-flow”] it will just use the standard template and not the product-single template that I have copied.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Senff

    (@senff)

    Hey @stefan730

    If you are trying to override the file /woocommerce-one-page-checkout/templates/checkout/product-single.php, you will need to copy it, make your edits and place it in /child-theme/woocommerce-one-page-checkout/checkout/product-single.php.

    That way, your version of the file will be used instead of the original plugin’s version.

    Thread Starter stefan730

    (@stefan730)

    Hi @senff ,
    Thanks for the fast responds. I don’t want to overwrite it. I want to make an “extra” template for the plugin that I can choose from. I need to make 2 extra templates that are based on the product-single template of the plugin but with different flows (3 step and 4 step)

    EDIT: also tried what you said to overwrite it. That also doesn’t work…

    • This reply was modified 4 years, 1 month ago by stefan730.

    Hi @stefan730,

    Have you tried following these steps about creating a new template in the documentation?

    https://docs.woocommerce.com/document/woocommerce-one-page-checkout/#section-15

    One important step is to register the template so it’s available to use:

    https://docs.woocommerce.com/document/woocommerce-one-page-checkout/#section-19

    See if that will get you pointed in the right direction.

    Hi @stefan730,

    Hopefully, you were able to clear up this issue. Since it’s been a while since we last heard from you, I’m going to mark this thread resolved.

    If you still have trouble, please feel free to open up a new topic. We’d be happy to jump back in and help you out.

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce One Page Checkout’ is closed to new replies.