• Resolved Toshi Yoshida

    (@mikeg9999)


    Hi,

    At WPEC 3.11.2 does anyone know how to remove/turn-off the scrolling upwards action that occurs when WPEC thinks the shipping Country or shipping State is changed on the checkout page?

    We only ship within Austalia and use flat rate shipping of $10 for every order. As we ship single destination, single rate we don’t need the Calclulate Shipping Price calculator.

    It’s unecessary to insist on calculating shipping when it does not need to be calculated – it can only ever be $10. If the calculation was done in a similar way to Woo it wouldn’t be a problem but with the way WPEC has implemented the calculator it is a problem.

    At WPEC 3.9.4 we could simply hide the entire Calclulate Shipping Price section using CSS and that worked very very well.

    At WPEC 3.11.2 the shipping Country and shipping State fields are now validated/checked. If the WPEC plugin thinks either of those fields have changed (in relation to the shipping calculator values) three things happen.

    (1) The checkout page scrolls up to the Calclulate Shipping Price section.
    (2) The checkout page displays ‘Please click the Calculate button to refresh your shipping quotes, as your shipping information has been modified.’
    (3) The shippping cost and order total disappear from the page.

    Because of the scrolling action it’s no longer appropriate to hide the Calclulate Shipping Price calculator using CSS because the user needs to be able to see the Calculate button in order to be able to press it.

    Thanks, Mike.

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Justin Sainton

    (@justinsainton)

    This should do the trick, let me know!

    add_filter( 'wpsc_javascript_localizations', function( $localizations ) {
    		$localizations['wpsc_ajax']['slide_to_shipping_error'] = false;
    		return $localizations;
    	} );
    Thread Starter Toshi Yoshida

    (@mikeg9999)

    Hi Justin,
    thats to go in functions.php ?
    Mike.

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    Hi Justin,

    STopping the scroll works but there’s two issues.

    I’m testing by…Clear cookies, Add product to cart, Go to checkout page, tick the ‘Same as billing address’ box.

    (1) This causes the shipping details section to close as usual but then the checkout page ‘jiggles’ up/down a little bit. The jiggling seems to only occur the first time the shipping city or country are updated.

    (2) Looking back up the page the Total Shipping and Total Price have disappeared.

    Is there a way to stop the screen jiggling and leave the shipping price total and the total order total price displayed?

    Thanks,
    Mike.

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    oops, sorry, in (1) above this “The jiggling seems to only occur the first time the shipping city or country are updated.” should say “The jiggling seems to only occur the first time the shipping country is updated.”

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    Hi Justin,
    I came across your post here http://zao.is/2014/12/remove-shipping-calculator-wp-ecommerce/. I’ve implemented that, given it a (very) quick test and it seems ok but will need to test more extensively later.

    As I don’t like to edit code I skipped step 1 (editing the code) and just used CSS to hide the unneeded Calaculate Shipping heading and the calculator table below it.

    Thanks, Mike.

    Thread Starter Toshi Yoshida

    (@mikeg9999)

    The changes noted above seem to be working ok so will close this topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calculate Shipping Scrolling Problem’ is closed to new replies.