-
AuthorPosts
-
December 4, 2015 at 4:11 pm #692460
I have a shipping calculator on my cart, yet it does not actually do anything when you provide the credentials (country/state/zip code).
When you do find the cart, the ‘check shipping’ function doesn’t seem to work unless you’ve already gone to the checkout page and entered a shipping address first.It works with the 2014 or 2015 or other themes.
Question 1:
How can I make the shipping calculator work?Question 2:
Is it possible to get the button back under the shipping calculator that says “Update Total” (or words to that effect, eg “Calculate Shipping” is used in other themes) that my visitors can use to update their post-codes and check shipping costs?===
I have found the threads below but none have an answer:https://community.theme.co/forums/topic/woocommerce-shipping-calculator-bug/
btw… the link below is dead:
https://community.theme.co/forums/topic/no-update-totals-button-in-shipping-calculator-in-cart/#post-244612====
I added this in the custom css but it didnt help:.woocommerce li.product .added_to_cart,
.woocommerce-page li.product .added_to_cart {
display: block;
font-size: 14px;
left: 0;
margin: 0;
opacity: 1;
padding: 0.45em 0.5em 0.575em;
position: absolute;
right: 0;
top: -115px;
text-align: center;
background-color: #ff0000;
color: #fff;
border: 1px solid #ac1100;
-webkit-box-shadow: 0 0.25em 0 0 #a71000,0 4px 9px rgba(0,0,0,0.75);
box-shadow: 0 0.25em 0 0 #a71000,0 4px 9px rgba(0,0,0,0.75);
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-transition: all 0.15s linear;
transition: all 0.15s linear;
}.woocommerce li.product .added_to_cart:before,
.woocommerce-page li.product .added_to_cart:before {
content: ‘\f00c ‘;
font-family: “fontawesome”;
font-size: 14px;
margin-right: 10px;
}Thanks for your help!
December 4, 2015 at 9:15 pm #692812Hi There,
Thanks for writing in! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
December 5, 2015 at 2:07 am #693031This reply has been marked as private.December 5, 2015 at 2:24 am #693040Hello There,
Thanks for the very detailed information.
To make your shipping calculator to work, please ensure that the shipping methods are all enabled. The current setting, the only enabled is the shipping table rate. For more details about WooCommerce shipping calculator, please check it here:
https://docs.woothemes.com/document/configuring-woocommerce-settings/#shipping
https://docs.woothemes.com/documentation/plugins/woocommerce/getting-started/shipping/We also recommend that you increase your memory allocated to PHP. You can check this warning in WooCommerce > System Status > WordPress Environment > WP Memory Limit. To increase it, please edit your wp-config.php file and insert these lines:
define( 'WP_MEMORY_LIMIT', '256M' ); define( 'WP_MAX_MEMORY_LIMIT', '512' );
You can add it before the line
/*That's all, stop editing! Happy Blogging. */
We would loved to know if this has work for you. Thank you.
We came to noticed that you are using an older version of X. Our latest versions are:
X Theme: 4.2.2
Cornerstone: 1.0.10
Visual Composer: 4.8.1
Revolution slider: 5.1.4You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.
Please also install Cornerstone plugin. X theme needs this plugin to run smoothly. Please take note that X shortcodes and its functionality has been consolidated into Cornerstone which you can install by going to X Addons > Extensions.
Please let us know how it goes.
December 5, 2015 at 6:11 am #693198Hello,
Thanks for your answer. I’ve updated the theme and plugins to the latest versions.
I’ve added free shipping as another shipping method.It still doesnt work.
On wpengine I cannot add these lines in the wp-config because wpengine rewrites the wp-config.
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512’ );
But I tested it with a copy of this site with more memory limit and it didnt make a difference.How can we get this working. Thank you so much!
December 5, 2015 at 2:38 pm #693581Hi there,
It should be like this, with letter ‘M’
define( 'WP_MEMORY_LIMIT', '256M' ); define( 'WP_MAX_MEMORY_LIMIT', '512M' );
Shipping update button was intentionally removed for X theme, but you can always display it back. Follow this,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
1. Copy this file shipping-calculator.php from \wp-content\themes\x\woocommerce\cart\ to your child theme of same folder structure (eg. wp-content\themes\x-child\woocommerce\cart\shipping-calculator.php)
2. Edit your child theme’s shipping-calculator.php and change this code :
<!-- <p><button type="submit" name="calc_shipping" value="1" class="button"><?php _e( 'Update Totals', '__x__' ); ?></button></p> -->
to this,
<p><button type="submit" name="calc_shipping" value="1" class="button"><?php _e( 'Update Totals', '__x__' ); ?></button></p>
3. Save and upload it, then that should enable back your shipping cost’s update button.
Hope this helps.
-
AuthorPosts