seangnc
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Shipping Calculator show only City (remove State and Post Code)@caleb, thanks for your reply. i need city NOT for shipping zones, but i only need it instead of state.
what codes needed to replace this area?
<section class="shipping-calculator-form" style="display:none;"> <p class="form-row form-row-wide" id="calc_shipping_country_field"> <select name="calc_shipping_country" id="calc_shipping_country" class="country_to_state" rel="calc_shipping_state"> <option value=""><?php _e( 'Select a country…', 'woocommerce' ); ?></option> <?php foreach( WC()->countries->get_shipping_countries() as $key => $value ) echo '<option value="' . esc_attr( $key ) . '"' . selected( WC()->customer->get_shipping_country(), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>'; ?> </select> </p> <p class="form-row form-row-wide" id="calc_shipping_state_field"> <?php $current_cc = WC()->customer->get_shipping_country(); $current_r = WC()->customer->get_shipping_state(); $states = WC()->countries->get_states( $current_cc ); // Hidden Input if ( is_array( $states ) && empty( $states ) ) { ?><input type="hidden" name="calc_shipping_state" id="calc_shipping_state" placeholder="<?php esc_attr_e( 'State / county', 'woocommerce' ); ?>" /><?php // Dropdown Input } elseif ( is_array( $states ) ) { ?><span> <select name="calc_shipping_state" id="calc_shipping_state" placeholder="<?php esc_attr_e( 'State / county', 'woocommerce' ); ?>"> <option value=""><?php _e( 'Select a state…', 'woocommerce' ); ?></option> <?php foreach ( $states as $ckey => $cvalue ) echo '<option value="' . esc_attr( $ckey ) . '" ' . selected( $current_r, $ckey, false ) . '>' . __( esc_html( $cvalue ), 'woocommerce' ) .'</option>'; ?> </select> </span><?php // Standard Input } else { ?><input type="text" class="input-text" value="<?php echo esc_attr( $current_r ); ?>" placeholder="<?php esc_attr_e( 'State / county', 'woocommerce' ); ?>" name="calc_shipping_state" id="calc_shipping_state" /><?php } ?> </p> <?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_city', false ) ) : ?> <p class="form-row form-row-wide" id="calc_shipping_city_field"> <input type="text" class="input-text" value="<?php echo esc_attr( WC()->customer->get_shipping_city() ); ?>" placeholder="<?php esc_attr_e( 'City', 'woocommerce' ); ?>" name="calc_shipping_city" id="calc_shipping_city" /> </p> <?php endif; ?> <?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_postcode', true ) ) : ?> <p class="form-row form-row-wide" id="calc_shipping_postcode_field"> <input type="text" class="input-text" value="<?php echo esc_attr( WC()->customer->get_shipping_postcode() ); ?>" placeholder="<?php esc_attr_e( 'Postcode / ZIP', 'woocommerce' ); ?>" name="calc_shipping_postcode" id="calc_shipping_postcode" /> </p> <?php endif; ?> <p><button type="submit" name="calc_shipping" value="1" class="button"><?php _e( 'Update Totals', 'woocommerce' ); ?></button></p> <?php wp_nonce_field( 'woocommerce-cart' ); ?> </section>Forum: Plugins
In reply to: [WooCommerce] Shipping Calculator show only City (remove State and Post Code)hi thomas, thanks for your response.
my shipping plugin calculates the fee by CITY
how can i add city field?
thanksForum: Plugins
In reply to: [WooCommerce Auto Restore Stock] Does this plugin still work?it does work for me but, there is a bug in the ORDER NOTES,
instead the SKU will be verbose it is using the product-id of wordpress table.example:
Item #2808 stock incremented from X to Y
2808 is my product-id for this item but its SKU is 048107102456 EXP10/18it should be:
Item 048107102456 EXP10/18 stock incremented from X to Ymaybe somebody can fix this issue.
Forum: Plugins
In reply to: [WooCommerce] Auto restore stock when orders are cancelled/refundedshould this feature be included in the native woocommerce feature. seems very troublesome if you get more than 100 refunds a day.
Forum: Plugins
In reply to: [WooCommerce] Auto restore stock when orders are cancelled/refundedi try to simulate and cancelled an order, but i can not find the button RESTORE STOCK
infact i am using the plugin if you check http://pastebin.com/eHpJt0iR
my objective is to show these values in the product page
in the mata.php template > below the ADD TO CART button.what is the code to display this information?
Forum: Plugins
In reply to: [WooCommerce] how to show custom field in the product pagethese are added custom fields in the product
the plugin work and intended only for the backend.my quest is to show this to the meta.php
what is the exact code to put so i can show these fields?thanks