WooCommerce - excelling eCommerce
[resolved] Country selector as variation selector (2 posts)

  1. pstidsen
    Posted 1 year ago #

    I'm making a webshop and I want the country selector from the checkout (http://gratisupload.dk/billede/thumb/704525/full/) instead of the ugly, standard select menu at variations (http://gratisupload.dk/billede/thumb/704524/full/). I've looked on the code, but it seems very complex with JS/jQuery, so I can't figure out what code i need to copy. Can you guys help me out?


  2. pstidsen
    Posted 1 year ago #

    The solution is:

    Put this class="country_to_state country_select" as attribute to <select>.

    Put `<script type="text/javascript" src="chosen00.js"></script>
    <script type="text/javascript" src="chosen-f.js"></script>` anywhere in the body.

    Put `<link rel="stylesheet" id="woocommerce_chosen_styles-css" href="http://printx.dk/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/chosen00.css" type="text/css" media="all">
    <script type="text/javascript" src="http://printx.dk/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/jquery00.js"></script>` in the header.php file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic