jurijsmsk
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Translate “BRAND:” woocommerceThanks. Last but not least breadcrumbs. It works, but adds extra “s” letter at the end of translated text.
add_filter('rank_math/frontend/breadcrumb/items', 'translate_brand_in_breadcrumbs', 10, 2);
function translate_brand_in_breadcrumbs($crumbs, $class) {
foreach ($crumbs as $key => $crumb) {
if (isset($crumb[0]) && strpos($crumb[0], 'Brand') !== false) {
$crumbs[$key][0] = str_replace('Brand', 'Ra?otājs', $crumb[0]);
}
}
return $crumbs;
}Forum: Themes and Templates
In reply to: [Botiga] Replace botiga-single-addtocartNobody?
If anyone req similar solution.
add_filter('woocommerce_available_payment_gateways', 'disable_stripe_gateways_for_specific_products');
function disable_stripe_gateways_for_specific_products($available_gateways) {
if (is_admin()) return $available_gateways;
$specific_product_ids = array(123, 1234); //add ur own product id's here
foreach (WC()->cart->get_cart() as $cart_item_key => $cart_item) {
$product_id = $cart_item['product_id'];
if (in_array($product_id, $specific_product_ids)) {
foreach ($available_gateways as $gateway_id => $gateway) {
if (strpos($gateway_id, 'stripe_') === 0) {
unset($available_gateways[$gateway_id]);
}
}
break;
}
}
return $available_gateways;
}Still appears even if targeting ID’s… Mhm..
add_filter('woocommerce_available_payment_gateways', 'disable_ppcp_for_specific_product_ids');
function disable_ppcp_for_specific_product_ids($available_gateways) {
if (is_admin()) return $available_gateways;
$specific_product_ids = array(6695, 6627, so on...);
foreach (WC()->cart->get_cart() as $cart_item_key => $cart_item) {
$product_id = $cart_item['product_id'];
if (in_array($product_id, $specific_product_ids)) {
unset($available_gateways['ppcp']);
break;
}
}
return $available_gateways;
}Sorry im not gonna spend my time making one more ticket there. Ive created tree tickets there and at the end solved issue by myself cuz somehow my ideas was not possible to make without hard code rewriting (for example custom bg for Featured items)… So i would appreciate if you can kindly help me here…
Seems like fixed issue.
Thanks.
Forum: Plugins
In reply to: [Post Grid By PickPlugins] One Row Three ColumnsSimply under “Query Post” change default “Posts per page” value to “3”. Under “Grid settings” change tabled value to “3”.
Forum: Themes and Templates
In reply to: [Viral News] Page wiggles when scrolling down on mobileCheck image please. When scrolling up or down page is not fixed size feels like something streching it but i tested literally everythink and could not find.
Forum: Plugins
In reply to: [Max Mega Menu] mega-indicator issue.function wpdocs_dequeue_dashicon() { if (current_user_can( 'update_core' )) { return; } wp_deregister_style('dashicons'); } add_action( 'wp_enqueue_scripts', 'wpdocs_dequeue_dashicon' );
Solved.
Since mega max menu using dashicons script was removing dashicons from non logged users.
Anyways, maybe someone else will have same issue ??
solved
Forum: Plugins
In reply to: [Yoast SEO] htaccess 301 errorSolution was turn server “force https” and
RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://domain.com/$1 [R=301,L]
Forum: Plugins
In reply to: [Yoast SEO] htaccess 301 errorWhat i paid for… Suggestions about how many keyphases incude in first paragraph?
Ok
Forum: Plugins
In reply to: [Yoast SEO] htaccess 301 errordoesnt solve the issue. ?? And y, server name was different, completely forgot…
- This reply was modified 4 years, 10 months ago by jurijsmsk.
Forum: Themes and Templates
In reply to: [Primer] Primer tag page layoutif there will be someone who also looks for issue
<section id="primary" class="primer-layout-nonce">
primer support sux!
- This reply was modified 4 years, 10 months ago by jurijsmsk.
<?php echo kk_star_ratings(); ?>
lol, this happens when not checking settings.