WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pstidsen
    Member
    Posted 8 months 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?

    http://wordpress.org/plugins/woocommerce/

  2. pstidsen
    Member
    Posted 8 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic