Custom Code for Elementor Woocommerce Purchase Summary
-
I don’t know that you’ll be able to access it as it’s the purchase summary page. However, If anyone’s familiar with the Woocommerce Elementor summary page widget, then you’ll notice the purchase summary section has two columns for the order details section which appears to be in a table format. The text of these two columns is right up against the left margin of the column which is poor design… clearly good developers, not so great designers. I’d love to have some padding like 5-10px between the text and the left margin and I’m too rusty on code to correctly adjust it myself.
Here’s a snippet I gathered from page inspection for the section mentioned in case the link is inaccessible:
<section class="woocommerce-order-details"> <h2 class="woocommerce-order-details__title">Order Details</h2> <table class="woocommerce-table woocommerce-table--order-details shop_table order_details"> <thead> <tr> <th class="woocommerce-table__product-name product-name">Product</th> <th class="woocommerce-table__product-table product-total">Total</th> </tr> </thead> <tbody> <tr class="woocommerce-table__line-item order_item"> <td class="woocommerce-table__product-name product-name"> <a href="https://sonjachisnall.com/product/test-product/">Test Product</a> <strong class="product-quantity">× 1</strong> </td> <td class="woocommerce-table__product-total product-total"> <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>1</bdi></span> </td> </tr> </tbody> <tfoot> <tr> <th scope="row">Subtotal:</th> <td><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>1</span></td> </tr> <tr> <th scope="row">Shipping:</th> <td><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>15</span> <small class="shipped_via">via Standard Shipping</small></td> </tr> <tr> <th scope="row">Tax:</th> <td><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>0</span></td> </tr> <tr> <th scope="row">Payment Method:</th> <td>Credit Card (Stripe)</td> </tr> <tr> <th scope="row">Order Total:</th> <td><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>16</span></td> </tr> </tfoot> </table> </section>The page I need help with: [log in to see the link]
The topic ‘Custom Code for Elementor Woocommerce Purchase Summary’ is closed to new replies.