Tagged: x
-
AuthorPosts
-
February 11, 2017 at 5:50 pm #1367329
I am trying to create 2 columns for checkout using Integrity stack and WooCommerce.
I’ve attached an image of what I want.
I tried Thai’s first suggestion from this thread but it didn’t move over the payment info to the second column:
February 11, 2017 at 5:52 pm #1367331This reply has been marked as private.February 12, 2017 at 2:28 am #1367644Hello There,
Thanks for writing in! Do you want something like this http://prntscr.com/e7o6go? If that is the case, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
#customer_details .col-1, #order_review .shop_table { width: 45%; float: left; margin-right: 5%; } #customer_details .col-2, #order_review #payment { float: right; width: 50% } #order_review_heading { clear: both; }
We would loved to know if this has work for you. Thank you.
February 12, 2017 at 1:36 pm #1368059I would like it to look similar to that. I would like all of the shipping details in the left column and all of the “Your Order” details in the right hand column.
February 12, 2017 at 8:32 pm #1368375Hello There,
Thanks for updating in! Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
After the child theme is set up, please add the following code in your child theme’s functions.php file
// Make the checkout page two columns // ============================================================================= function add_first_column(){ ?> <div class="x-container"><div class="x-column x-sm x-1-2"> <?php } add_action('woocommerce_checkout_before_customer_details', 'add_first_column'); function add_second_column(){ ?> </div><div class="x-column x-sm x-1-2"> <?php } add_action('woocommerce_checkout_after_customer_details', 'add_second_column'); function close_the_columns(){ ?> </div></div> <?php } add_action('woocommerce_checkout_after_order_review', 'close_the_columns'); // =============================================================================
We would loved to know if this has work for you. Thank you.
February 12, 2017 at 11:40 pm #1368474yes this worked perfectly. thank you so much
February 12, 2017 at 11:59 pm #1368488You’re welcome!
-
AuthorPosts