umeeshh
Forum Replies Created
-
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Range of pricesThanks for your reply ?? But it’s not what I need. What I need is simple thing – I need to list a prices set up by plugin you’ve made ?? This would be enough for me:
Variable product has let’s say 3 shipping zones set up and so it has 3 prices. How to list them ??
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Range of pricesI’m sorry but Woocommerce hooks won’t work with prices set by plugin. How the answer can make the topic resolved when it’s not ??
Forum: Plugins
In reply to: [Additional Variation Images Gallery for WooCommerce] Thumbnails srcThanks a lot! ??
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Range of pricesThanks for your reply, I know I can use Woocommerce hooks, but need to target prices set up by plugin. Any advice?
Forum: Plugins
In reply to: [LiteSpeed Cache] Consider Defer offscreen images and Defer unused CSSSame here ?? All options with CSS are on,and Google says, defer unused CSS ??
Forum: Plugins
In reply to: [InPost for WooCommerce] Nieprawid?owy klucz APIMo?e to kwestia wersji API, pisa?em w tej sprawie do twórców wtyczki i kontakt z nimi jest ok – [email protected]. Odpowied?, jak? otrzyma?em:
Prosz? dowiedzie? si? w InPost, czy token na pewno dotyczy API V4 a nie API ShipX.
Wtyczka dzia?a z wykorzystaniem API v4.Forum: Plugins
In reply to: [Cache Enabler] WebP Background ImageCould you share your solution? Thanks in advance!
Forum: Plugins
In reply to: [SMNTCS Quantity Increment Buttons for WooCommerce] cart pageHi everyone! this is because of the jQuery script set up to work only on single product page. I’ve added almost same code to with class woocommerce-cart, and now it works fine.
You need to add code below to custom.js before closing “});”
$(‘.woocommerce-cart .quantity .minus’).each(function(){
$(this).on(‘click’, function () {
var qty = $(this).parent().find(‘input.qty’);
var val = parseInt(qty.val());
var step = qty.attr(‘step’);
step = ‘undefined’ !== typeof(step) ? parseInt(step) : 1;
if (val > 0) {
qty.val(val – step).change();
}
});
});
$(‘.woocommerce-cart .quantity .minus’).each(function(){
$(this).on(‘click’, function () {
var qty = $(this).parent().find(‘input.qty’);
var val = parseInt(qty.val());
var step = qty.attr(‘step’);
step = ‘undefined’ !== typeof(step) ? parseInt(step) : 1;
qty.val(val + step).change();
});
});Hope it helps ?? Of course you need to clear browser page to make it work ??
Forum: Plugins
In reply to: [Yoast SEO] Editing post broken after updating to 8.2I’ll try to find out, but do not think it’s theme-related issue, as I have Divi theme and my friend has another one and he has same issuses – after disabling Yoast all works fine on both sites.
Forum: Plugins
In reply to: [Yoast SEO] Editing post broken after updating to 8.2Here the same. After last update when I try to edit page/post, it loads and then after loading gives crash error (using newest WP with DIVI).
That’s how I’ve found out this is the issue ??
Yep, problem was SEO extension from Unyson builder… Thanks for your help
Forum: Plugins
In reply to: [WP Store Locator] Google Map API Key missingThanks for your answer, I’ve misunderstood all of this I think, but somehow it was working on test server with server key only so maybe that’s why.
regards
Forum: Plugins
In reply to: [WP Store Locator] Google Map API Key missingI’ve made it. Don’t know if it is bug or not but:
in class-admin.php there’s line:
wp_enqueue_script( ‘wpsl-gmap’, ( ‘//maps.google.com/maps/api/js’ . wpsl_get_gmap_api_params( ‘browser_key’ ) ), false, WPSL_VERSION_NUM, true );
But there’s no such an import for server_key. So I’ve pasted my server API key into Browser key field and it’s working now. But with server key field wasn’t
It took me 3 days….. ??
regards ??
Forum: Plugins
In reply to: [WP Store Locator] Category NameHi! Thanks for your help. I’ve made it!
Here is solution – not perfect one, but works:
Adding code to function.php of template width sorting by terms (category) as you’ve mentioned:
// custom sorting add_filter( 'wpsl_store_meta', 'custom_store_meta', 10, 2 ); function custom_store_meta( $store_meta, $store_id ) { $terms = wp_get_post_terms( $store_id, 'wpsl_store_category' ); $store_meta['terms'] = ''; if ( $terms ) { if ( !is_wp_error( $terms ) ) { if ( count( $terms ) > 1 ) { $location_terms = array(); foreach ( $terms as $term ) { $location_terms[] = $term->name; } $store_meta['terms'] = implode( ', ', $location_terms ); } else { $store_meta['terms'] = $terms[0]->name; } } } return $store_meta; } // custom store meta add_filter( 'wpsl_store_data', 'custom_result_sort' ); function custom_result_sort( $store_meta ) { $custom_sort = array(); foreach ( $store_meta as $key => $row ) { $custom_sort[$key] = $row['terms']; } array_multisort( $custom_sort, SORT_ASC, SORT_REGULAR, $store_meta ); return $store_meta; }
Add class of term in listing:
<script id="wpsl-listing-template" type="text/template"> <?php $listing_template = '<li class=" <%= terms %>" data-store-id="<%= id %>">' . "\r\n";
ajaxComplete function which adds line of title code before each group of term locations:
$( document ).ajaxComplete(function() { $("#wpsl-stores ul li").each(function(){ var className = $(this).attr('class'); className = className.replace(/\s+/g, ''); $( "<div class='wpsl-stores-cityname "+ className +"'><p>" + className + "</p></div>" ).insertBefore( "#wpsl-stores ul li."+className + ":first" ); $("#wpsl-stores ul .wpsl-stores-cityname."+className+":first").addClass("firstofname"); $("#wpsl-stores ul .wpsl-stores-cityname:not(.firstofname)").remove(); }); });
It adds as many title lines as locations number in term so I’ve needed to add class to first one and remove those without – maybe it can be done in simpler way ??
Thanks again