WordPress.org

Forums

Striper - Stripe Integration for WooCommerce
[resolved] Override templates (4 posts)

  1. miocene22
    Member
    Posted 1 year ago #

    I am using a bootstrap-based theme for my site and would like the form fields to be marked up accordingly. Is there anyway to override the payment.php template you have inside the plugin? E.g. using a hook. I'd rather not edit the plugin files directly.

    https://wordpress.org/plugins/striper/

  2. Sean Voss
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Miocene,

    Unfortunately the way I have Striper setup now, it's not overriding any templates, it just includes that file.

    I will explore a way to add your own custom template, it should be possible, I'm sure wordpress will let me find the path to the currently loaded template, but for now, just override payment.php, I'm afraid.

  3. mgiulio
    Member
    Plugin Author

    Posted 12 months ago #

    Hi Sean,

    I implemented(just some final testing to do)a templating system based on the one provided by WooCommerce.

    So, to override payments.php(or any other template), a plugin user has to put its version in the 'striper' folder in its theme.

    You can see the src on my gh fork(so is a fork of the 0.28 plugin version): https://github.com/mgiulio/striper/compare/templating?expand=1

    I'm very interested in contributions/takeover. Next step would be the I18N task, I think.

    Let me know how you would like to proceed.

    Giulio.

  4. mgiulio
    Member
    Plugin Author

    Posted 11 months ago #

    This will ship in 0.30.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Striper - Stripe Integration for WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags