Title: Sam's Replies | WordPress.org

---

# Sam

  [  ](https://wordpress.org/support/users/ssharples/)

 *   [Profile](https://wordpress.org/support/users/ssharples/)
 *   [Topics Started](https://wordpress.org/support/users/ssharples/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ssharples/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ssharples/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ssharples/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ssharples/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ssharples/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/ssharples/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ssharples/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Image Crop Add-on] WordPress 5 fix (for some)](https://wordpress.org/support/topic/wordpress-5-fix-for-some/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/wordpress-5-fix-for-some/#post-10978513)
 * eg.
 * line 79
    #acf-image-crop-overlay{ display:none; position:fixed; /* added */ z-
   index: 10000; /* added END */ top:0px; left:0px; right:0px; bottom:0px; background-
   color: rgba(0,0,0,0.8);
 * }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Woocommerce – hide fields from order](https://wordpress.org/support/topic/woocommerce-hide-fields-from-order/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/woocommerce-hide-fields-from-order/#post-9077375)
 * absolute lifesaver! Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Add form to multiple products](https://wordpress.org/support/topic/add-form-to-multiple-products/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/add-form-to-multiple-products/#post-9048885)
 * There may be a neater way but if anybody needs this in the future, here is how
   I updated products from a certain product category with a specific form:
 * <?php
 * $args = array(
    ‘post_type’ => ‘product’, ‘posts_per_page’ => -1, ‘product_cat’
   => ‘YOUR_CATEGORY’ );
 * $myquery = new WP_Query( $args );
 * if ( $myquery->have_posts() ) :
    while ( $myquery->have_posts() ) : $myquery-
   >the_post(); wp_update_post(array (
 *  ‘meta_input’ => array(
    ‘woocommerce_cpcff_form’ => 5 //YOUR FORM ID, ‘woocommerce_cpcff_calculate_price’
   => 1 )));
 *  endwhile; endif; ?>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Add form to multiple products](https://wordpress.org/support/topic/add-form-to-multiple-products/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/add-form-to-multiple-products/#post-9048809)
 * Amazing, just what I needed! Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Job quote using area](https://wordpress.org/support/topic/job-quote-using-area/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/job-quote-using-area/#post-9048631)
 * Yes definitely.
 * You’ll need an equation to work it out. Something like:
 * (function(){
    if((fieldname1*fieldname2)<30){return 30;} else {return fieldname1*
   fieldname2*0.5} })
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] How to keep the same filter result page after click "back" button on Browser](https://wordpress.org/support/topic/how-to-keep-the-same-filter-result-page-after-click-back-button-on-browser/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years ago](https://wordpress.org/support/topic/how-to-keep-the-same-filter-result-page-after-click-back-button-on-browser/#post-7460146)
 * Hi, I have the same issue as question 1.
 * Where is this setting:
 * > 1) Please enable in plugin settings “Display products” option.
 * ??
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Specific Content] Use with custom post type](https://wordpress.org/support/topic/use-with-custom-post-type-1/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/use-with-custom-post-type-1/#post-6958237)
 * where did you add this code please?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Woocommerce Free Shipping Remaining Cost] doesnt work](https://wordpress.org/support/topic/doesnt-work-1049/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/doesnt-work-1049/#post-6441885)
 * just add this code to your functions.php file
 * // If your free shipping threshold is 1500 as per Woocommerce settings…
    // …
   show a cart notice if order subtotal is less than 1500 function cart_notice(){
   $maximum = 1500; $current = WC()->cart->subtotal; // Format the difference as
   per Woo currency formatting settings $formatteddifference = wc_price( $maximum–
   $current ); if ( $current < $maximum ) { echo ‘<div class=”woocommerce-message”
   >Get free shipping if you order ‘ . $formatteddifference . ‘ more!</div>’; } }
   add_action( ‘woocommerce_before_cart’, ‘cart_notice’ );
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mega Menu by WooRockets.com] NOT WORKING on WordPress 4.3](https://wordpress.org/support/topic/not-working-on-wordpress-43-44/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/not-working-on-wordpress-43-44/#post-6460265)
 * so i removed 1 line of code which seems to have fixed it for me until the developers
   can be assed to reply and fix
 * wr-megamenu->includes->core->frontend.php
 * line 86 I removed
    $menu_item->icon = $icon;
 * not sure what effects this may have but it’s fixed it for me…. for now…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Sorry, no products matched your selection. Please choose a different combination](https://wordpress.org/support/topic/sorry-no-products-matched-your-selection-please-choose-a-different-combination/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sorry-no-products-matched-your-selection-please-choose-a-different-combination/page/3/#post-6443593)
 * same fix here. I had copied the whole ‘woocommerce’ folder into my template directory
   to override most of the woocommerce templates.
 * only had to update one file to fix mine:
 * woocommerce->single-product->add-to-cart->variable.php
 * I replaced this with the version from the updated plugin folder
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Go Maps - Google Map, OpenStreetMap, Leaflet Map] Uncaught TypeError: Cannot use 'in' operator to search for 'length' in](https://wordpress.org/support/topic/uncaught-typeerror-cannot-use-in-operator-to-search-for-length-in/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-use-in-operator-to-search-for-length-in/#post-6458632)
 * please could you explain the fix as I am unable to update things at the moment
   and would like to fix manually
 * thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Image Crop Add-on] Crop broken – brings up opaque screen](https://wordpress.org/support/topic/crop-broken-brings-up-opaque-screen/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/crop-broken-brings-up-opaque-screen/#post-6344520)
 * tested with 1.4.2 and it works fine. Don’t update until you see a fix on here
 * Download older versions from here:
    [https://github.com/wp-plugins/acf-image-crop-add-on/releases](https://github.com/wp-plugins/acf-image-crop-add-on/releases)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Image Crop Add-on] Crop broken – brings up opaque screen](https://wordpress.org/support/topic/crop-broken-brings-up-opaque-screen/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/crop-broken-brings-up-opaque-screen/#post-6344516)
 * same problem for me 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Image Sizes] Can the quality of the resized image be changed](https://wordpress.org/support/topic/can-the-quality-of-the-resized-image-be-changed/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/can-the-quality-of-the-resized-image-be-changed/#post-6127181)
 * I don’t see much loss in quality at all. If you are cropping the image and then
   scaling it back up, you are bound to lose quality. Make sure your new image is
   not being scaled larger than its actual size.
 * I have compared the 2 here. Original left and resized right. They’re each scaled
   back to the original size
 * [http://postimg.org/image/n98fk5bl9/](http://postimg.org/image/n98fk5bl9/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Image Sizes] Seems to be broken](https://wordpress.org/support/topic/seems-to-be-broken-11/)
 *  [Sam](https://wordpress.org/support/users/ssharples/)
 * (@ssharples)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/seems-to-be-broken-11/#post-6124187)
 * download it from here or alternatively download from github and upload manually:
 * [https://github.com/Rahe/Simple-image-sizes](https://github.com/Rahe/Simple-image-sizes).
 * The plugin available through the wordpress plugin dashboard seems to be broken.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/ssharples/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ssharples/replies/page/2/?output_format=md)