/**
     * Output origin address select metabox
     *
     * @since 4.2
     * @param (WP_Post) $post post/product being edited
     */
    public static function output_shipping_metabox($post)
    {
        $addresses = fetch_business_addresses();
        echo '<p>Use the box below to search for and add "Shipping Origin Addresses" for this product. These are the locations from which this
		item will be shipped.</p>';
        echo '<p>When an item can be shipped from multiple locations, WooTax will assume that it is sent from the business location in the customer\'s state.</p>';
        // Fetch addresses for this product
        $origin_addresses = fetch_product_origin_addresses($post->ID);
        // Output addresses
        echo '<select class="' . (version_compare(WOOCOMMERCE_VERSION, '2.3', '<') ? 'chosen_select' : 'wc-enhanced-select') . '" name="_wootax_origin_addresses[]" multiple>';
        if (is_array($addresses) && count($addresses) > 0) {
            foreach ($addresses as $key => $address) {
                echo '<option value="' . $key . '"' . (in_array($key, $origin_addresses) ? " selected" : "") . '>' . get_formatted_address($address) . '</option>';
            }
        } else {
            echo '<option value="">There are no addresses to select.</option>';
        }
        echo '</select>';
    }
                                            fjs.parentNode.insertBefore(js, fjs);
                                        }(document, 'script', 'facebook-jssdk'));
                                    </script>

                                    <div style="clear:both;margin-top:10px;"></div>
                                    <div class="fb-comments" data-href=" <?php 
    echo current_url();
    ?>
" data-numposts="10" data-colorscheme="light"></div>

                                <?php 
}
?>
                                
                                <?php 
$full_address = get_formatted_address($post->address, $post->city, $post->state, $post->country, $post->zip_code);
?>
                                <div id="ad-address"><span><?php 
echo $full_address;
?>
</span></div>
                                
                                <h4 class="info-subtitle"><i class="fa fa-map-marker"></i> <?php 
echo lang_key('location_on_map');
?>
</h4>
                                <div class="gmap" id="details-map"></div>
                                <div class="clearfix"></div>


                                <?php