Plugin do WooCommerce para estimativa de frete na página do produto.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.9 KiB

<?php
/**
* Provide a public-facing view for the plugin
*
* This file is used to markup the public-facing aspects of the plugin.
*
* @link https://horizontes.info
* @since 1.0.0
*
* @package Wc_Fpp
* @subpackage Wc_Fpp/public/partials
*/
?>
<div class="modal fade" id="shipping_estimate_modal" tabindex="-1" role="dialog" aria-labelledby="shipping_estimate_modal_label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="shipping_estimate_modal_label">
<?php echo __('Calcular frete', 'wc-fpp'); ?>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form id="shipping_estimate_form" class="form" method="GET" action="<?php echo \WC_AJAX::get_endpoint( 'shipping_estimate_postcode' ) ?>">
<input type="hidden" name="product_id" value="<?php echo $product->get_id() ?>">
<div class="form-group row">
<label class="col-sm-2 col-form-label" for="inputEmail3">Quant.</label>
<div class="col-sm-10 d-flex justify-content-start">
<?php woocommerce_quantity_input(); ?>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label" for="inputEmail3">CEP</label>
<div class="col-sm-10">
<div class="input-group">
<input class="form-control" type="text" placeholder="<?php echo __('Digite o CEP aqui', 'wc-fpp'); ?>" name="postcode" maxlength="9">
<div class="input-group-append">
<button type="submit" class="btn btn-outline-success text-uppercase font-weight-bold px-2 button"><?php echo __('Calcular'); ?></a>
</div>
</div>
</div>
</div>
</form>
<div id="shipping_estimate_response" class="content"></div>
</div>
</div>
</div>
</div>