Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter mudwort

    (@mudwort)

    @and_or
    I have just discovered exactly the same situation. After restoring and trekking again through all the plugins I am trying to trim down, I finally found the issue when upgrading WooCommerce to 6.2.0 .

    Thanks also @oaoyadeyi for your comments and support.

    Thread Starter mudwort

    (@mudwort)

    Hi @takayukister

    Is this what you mean?

    <div class="row">
    <div class="col-xs-12"><label>Name*[text* your-name]</label></div>
    </div>
    
    <div class="row">
    <div class="col-xs-12 col-sm-6"><label>Email*[email* your-email]</label></div>
    <div class="col-xs-12 col-sm-6"><label>Phone*[text* your-phone]</label></div>
    </div>
    
    <div class="row">
    <div class="col-xs-12 col-sm-6"><label>Company*<label>[text* your-company]</label></label></div>
    <div class="col-xs-12 col-sm-6"><label>Company Size*[select* company-size first_as_label "Please select one" "1-10" "11-30" "31-50" "51-100" "101-500" "500+"]</label></div>
    </div>
    
    <div class="row">
    <div class="col-xs-12"><label>What are you interested in?*[select* inquiry-type "Uniform styling" "Corporate" "Uniform quote" "Personalisation" "Merchandising" "General/Other"]</label></div>
    </div>
    
    <div class="row">
    <div class="col-xs-12"><label>Tell us about your needs[textarea your-message]</label></div>
    </div>
    
    <div class="row">
    <div class="col-xs-12"><label>Where did you hear about us?[text hear-about]</label></div>
    
    <div class="row">
    <div class="col-xs-12">[submit "Send Message"]</div>
    </div>
    Thread Starter mudwort

    (@mudwort)

    We are looking to have one invoice for Australian customers that has a “inc.GST” line in the totals showing the amount of GST tax. GST is 1/11th of the list price. This is a legal requirement for Australian receipts or invoices.

    The second version of the invoice would be for buyers from the rest of world. This would just be the list price of the goods without any tax line in the totals.

    Thread Starter mudwort

    (@mudwort)

    Work perfectly. Thank you!

    Thread Starter mudwort

    (@mudwort)

    Thanks. Works great except CSS needed a bit of tweaking.

    Thread Starter mudwort

    (@mudwort)

    Thank you. I’ll confirm if it works.

    Thread Starter mudwort

    (@mudwort)

    https://benjamint7.sg-host.com/checkout/

    You may need to add something to the cart in order to access the checkout page.

    Thread Starter mudwort

    (@mudwort)

    Thanks for that.

    Just to check, is the
    // or unset ( $replacements['{state}'] );
    part of the whole code snippet or an alternative to
    $replacements['{state}'] = '';?

    • This reply was modified 4 years, 11 months ago by mudwort.
    • This reply was modified 4 years, 11 months ago by mudwort.
    Thread Starter mudwort

    (@mudwort)

    Hi Andrew

    Thanks for the reply.

    What I am after is like a short paragraph of text beneath the “Shipping Calculator” heading. The gettext and translations are not applicable in this circumstance.

    The custom PHP template (or an added snippet to the existing one) is most likely what I am after, but I am not a coder.

    The section of the existing code is;

    do_action( 'woocommerce_before_shipping_calculator' ); ?>
    
    <form class="woocommerce-shipping-calculator" action="<?php echo esc_url( wc_get_cart_url() ); ?>" method="post">
    
    	<?php printf( '<a href="#" class="shipping-calculator-button">%s</a>', esc_html( ! empty( $button_text ) ? $button_text : __( 'Calculate shipping', 'woocommerce' ) ) ); ?>
    
    	<section class="shipping-calculator-form" style="display:none;">
    
    		<?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_country', true ) ) : ?>
    			<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 country_select" rel="calc_shipping_state">
    					<option value=""><?php esc_html_e( 'Select a country&hellip;', '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>
    		<?php endif; ?>
    
    		<?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_state', true ) ) : ?>
    			<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();

    I think it needs to go after the <?php printf( '<a href="#"... line but before the country field is requested, but I don’t know how.
    Most of the other templates for WooCommerce seem more straightforward as they don’t have heading or text within a form. I was able to work out how to add additional text for those, but not with this one.

Viewing 9 replies - 1 through 9 (of 9 total)