• Resolved xtfugigz

    (@victor299)


    Hello There!
    I’m currently working on a wordpress+woocommerce website.
    I installed the stripe gateway, wich always worked as a charm on my previous websites. But on this one, i made a custom theme, and the problem come from here.

    On the Checkout Page, there is no forms for typing cart info.
    In the web page code i have “a Stripe Element will be inserted here.”
    There is no errors in console.
    Also, when i check the sources of pages, there is not any Stripe source …

    When i change my theme to an official theme like storefront, the forms are here, and i can see Stripe sources.

    Did i neglected to add some lines in some .php files of my theme to get Stripe work?

    If someone can help me with that, it would be really glad as i really don’t know what’s wrong with my theme..

    Thank you 🙂

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hi @victor299,

    It seems like you’re building an entirely custom Checkout page instead of using the WooCommerce Checkout page, why is that?

    WooCommerce will handle loading the payment gateways for you as well as handle loading the JavaScript necessary to display the Stripe credit card fields.

    If you need to customize the Checkout page you can do it via CSS, actions/filters or your own JavaScript functions.

    Thread Starter xtfugigz

    (@victor299)

    Hey Thomas, thank you for your help 🙂

    I don’t think i built a custom Checkout Page.

    I think it’s the default woocomerce checkout page, i did not modify it except for Css.

    Screenshot

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @victor299,

    That’s the Cart page, I’m talking about the Checkout page:

    https://atelierdemartrin.fr/commande/

    Thread Starter xtfugigz

    (@victor299)

    Yeah sorry, bad page screenshot !

    So the checkout page is default i think as you can see :

    Checkout Screenshot

    Thanks 🙂

    • This reply was modified 6 years, 9 months ago by xtfugigz.
    Thread Starter xtfugigz

    (@victor299)

    Ok boyz, i got it.

    For those who have the same problem and whants to fix the issue, i’ve made a plugin to debug this.

    Here are the features :
    – Show my plugin shortcut in Wp-Admin side bar

    Premium feature :
    – Fix the issue

    No seriously, just add <?php wp_head(); ?> in the <head> of the header.php in your theme folder.
    Indeed this line is required to get many plugins works.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    I’m glad to hear you solved it – and thanks for sharing the solution!

    Thread Starter xtfugigz

    (@victor299)

    He

    • This reply was modified 6 years, 9 months ago by xtfugigz.
    • This reply was modified 6 years, 9 months ago by xtfugigz.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @victor299 Why did you report this topic? That’s for reporting spam, abuse or something that broke in the forums.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘” a Stripe Element will be inserted here. “’ is closed to new replies.