• Resolved jantjebeton

    (@jantjebeton)


    Hi all,

    I am trying to create a nice checkout on my Woocommerce page. I am testing locally. I found a webshop where I like the two options to pick-up or deliver. Woocommerce has got the slightly boring and in my opinion not very well visible radio buttons.

    I found this alternative (shopify). Any way to recreate this on Woocommerce?

    https://i.ibb.co/71xtNVg/image-shipping.jpg

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jantjebeton

    WooCommerce is highly customizable, so it’s surely possible to recreate this with some tailored code.

    Custom CSS code should be enough to style the buttons like that.

    You can find here some cool CSS-styled radio button examples with codes:
    https://www.sliderrevolution.com/resources/styling-radio-buttons/

    And if you need help building this, I recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    You might as well be able to find a theme featuring a checkout similar to what you’re looking for. I recommend that you check our Theme Store:
    https://woocommerce.com/product-category/themes/
    For Pre-Sales questions about themes, you can contact us at:
    https://woocommerce.com/contact-us/#sales-form

    I hope that helps.

    Thread Starter jantjebeton

    (@jantjebeton)

    Hi Berg,

    I found one in the sliderrevolution link that I like. I have looked at how to implement it into my shipping options and replace the existing style. This is the code, but I am kind of lost on how to replace the existing radio buttons with this option. Any idea how to do this?

    <div class="middle">
      <h1>CSS Radio Button</h1>
      <label>
      <input type="radio" name="radio" checked/>
      <div class="front-end box">
        <span>Front-end</span>
      </div>
    </label>
    
      <label>
      <input type="radio" name="radio"/>
      <div class="back-end box">
        <span>Back-end</span>
      </div>
    </label>
      <p>Made <span></span> by <a href="https://github.com/gabrielferreiraa" target="_blank">@gabrielferreiraa</a></p>
    </div>
    @charset "UTF-8";
    @import url("https://fonts.googleapis.com/css?family=Inter:400'");
    html {
      background-color: #1a1a1a;
      overflow: hidden;
    }
    
    .middle {
      width: 100%;
      text-align: center;
      /* Made by */
    }
    .middle h1 {
      font-family: "Inter", sans-serif;
      color: #fff;
    }
    .middle input[type=radio] {
      display: none;
    }
    .middle input[type=radio]:checked + .box {
      background-color: #007e90;
    }
    .middle input[type=radio]:checked + .box span {
      color: white;
      transform: translateY(70px);
    }
    .middle input[type=radio]:checked + .box span:before {
      transform: translateY(0px);
      opacity: 1;
    }
    .middle .box {
      width: 200px;
      height: 200px;
      background-color: #fff;
      transition: all 250ms ease;
      will-change: transition;
      display: inline-block;
      text-align: center;
      cursor: pointer;
      position: relative;
      font-family: "Inter", sans-serif;
      font-weight: 900;
    }
    .middle .box:active {
      transform: translateY(10px);
    }
    .middle .box span {
      position: absolute;
      transform: translate(0, 60px);
      left: 0;
      right: 0;
      transition: all 300ms ease;
      font-size: 1.5em;
      user-select: none;
      color: #007e90;
    }
    .middle .box span:before {
      font-size: 1.2em;
      font-family: FontAwesome;
      display: block;
      transform: translateY(-80px);
      opacity: 0;
      transition: all 300ms ease-in-out;
      font-weight: normal;
      color: white;
    }
    .middle .front-end span:before {
      content: "?";
    }
    .middle .back-end span:before {
      content: "?";
    }
    .middle p {
      color: #fff;
      font-family: "Inter", sans-serif;
      font-weight: 400;
    }
    .middle p a {
      text-decoration: underline;
      font-weight: bold;
      color: #fff;
    }
    .middle p span:after {
      content: "?";
      font-family: FontAwesome;
      color: yellow;
    }
    Plugin Support Paulo P – a11n

    (@paulostp)

    Hello,

    Thanks for writing back!

    That will depend on the theme you’re using. You would need to find the CSS selectors to add them to the code. See this page for a tutorial on doing just that: https://wordpress.com/dailypost/2013/07/25/css-selectors/

    When your code is ready, you can use something like Code Snippets to inject the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating a shopify style shipping methods’ is closed to new replies.