• Resolved mspreer

    (@mspreer)


    Hi there,

    sorry, but my English is limited – never the less I give it a try.

    On the checkout page there is a div class=woocommerce-billing-fields. It is in the left column. It contains the Heading (h3).
    In the right column there is the heading (h3.order_review_heading) but it is outside th div (woocommerce-checkout-review-order) that follows next.

    I would like to have that heading inside the div – for layout purposes.

    I am not a coder, just learning things by doing, Is there anybody who could help me a bit? I have looked into the .php files in templates/checkout (and tried to change it (my theme/woocommerce/templates/checkout). But that doesn’t lead to success – although it probably will be the right approach. But I can’t find the way through.

    So would be very happy if someone has a solution or even a hint.

    Best regards

    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
  • line 57 doesn’t seem to do anything normally, its just there in case its needed. Presumably you moved 55 with the h3 to between 59 and 60. In what way didn’t that work?

    Thread Starter mspreer

    (@mspreer)

    Thank you for your answer Iorro.

    Here is what happens (I guess we are talking about form-checkout.php)

    Scenario 1: I change the lines of code exactly like you describe it and upload the changed .php to my “my theme/woocommerce/templates/checkout”
    Now the payment methods will not display anymore.

    Scenario 2: I change the lines of code exactly like you describe it and simply replace the php in woo “commerce/templates/checkout”.
    The way the checkout page displays in the front-end remains as it was before.

    I worked a little more in detail. Although the heading we are looking at is the “h3.order_review_heading” it doesn’t seem to be the one in the file “form-checkout.php” I guess I need to be more exact here. The heading actually has the id “order_review_heading”. But the same id is used at least for two headings.

    The Heading (which is outside the div) on the frontpage on my site reads “Zahlungsweise” (that should be translated “payment method”) but the one changed in form-checkout.php is “Deine Bestellung” (which translates “your order”) and this one is inside the div and doesn’t need to change. So I assume form-checkout.php is not the file that needs to be worked on, but I can’t find the right one?

    • This reply was modified 7 years, 1 month ago by mspreer.
    Thread Starter mspreer

    (@mspreer)

    This is solved. It actually was the right way to deal with it just that I did not know at the point, the the template to be modified was in a different folder. That is because I am using a plugin called Woocommerce German Market – it uses the template but ads some code to it and therefore creates a new version of that template …

    Thank you anyways!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trying to get h3.order_review_heading inside the div’ is closed to new replies.