Hamid Reza Yazdani
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Some products not showing when sorting products by priceHi
You’re using WOOF and Ajaxify option for filterYou can temporary disable ajaxify option for filter in WOOF and create a topic for WOOF developer
Good luck
Forum: Plugins
In reply to: [WooCommerce] Footer widgets – Twenty Twenty@slash1andy
yes Theme is 2020
https://darky.edilo.cz/wp-content/themes/twentytwenty/style.css
Sorry, Footer not matches in woocommerce and wordpress pages
Read my previous reply pleaseForum: Plugins
In reply to: [WooCommerce] All My account changes redirect to wp-admin after savingOK
Please check your:
1- Woocommerce permalink first
Go to Woocommerce > Settings> Advanced
then Save Settings
2- WordPress permalink
Save Settings to flush permalinks
3- .htaccess File in root www directory4- If you have security plugin deactivte that
5- if above solution not working should disable plugins and switch theme to default 2020 theme and check again
Good luck
Forum: Plugins
In reply to: [WooCommerce] display swatches on category archive page?Hi
You can this plugin
https://www.ads-software.com/plugins/woo-variation-swatches/Demo:
https://demo.getwooplugins.com/woocommerce-variation-swatches/oceanwp/Good luck
Forum: Plugins
In reply to: [WooCommerce] I can’t translate the standard product sorting woocommerce@slash1andy
Hi AndrewYou are right but translation removes by updates and themes not translates in every new versions
Thanks
@vvs10
Well done
Good LuckForum: Plugins
In reply to: [WooCommerce] Invalid confirmation password Checkout pagewell done
You’re welcome
Forum: Plugins
In reply to: [WooCommerce] Footer widgets – Twenty TwentyOk
I check your page and the problem is in your theme.
Your theme has not widget area in woocommerce page.You can Right Click on wordpress default pages and post and click Inspect element.
In default pages/posts you can find
footer-widgets-outer-wrapper
But in woocommerce Pages your theme has just
site-footer
Please contact your theme developer.
Good luck
Forum: Plugins
In reply to: [WooCommerce] Invalid confirmation password Checkout pageOk
Based on my code if you have error in the registration form in the account page should show to you:
Passwords not match.
and if you have error in checkout page show:
error
message,
But your error message isInvalid confirmation password
Please review your codes and find the
Invalid confirmation password
expression in your theme, translation files and plugins Because my code work fine on localGood luck
- This reply was modified 4 years, 8 months ago by Hamid Reza Yazdani.
You’re welcome
Forum: Plugins
In reply to: [WooCommerce] I can’t translate the standard product sorting woocommerceOk
Your theme using this code to define catalog sort options,
just replace that with this one:
$catalog_orderby_options = apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => 'not sorting', 'popularity' => 'most favorites', 'rating' => 'top rated', 'date' => 'by new', 'price' => 'to expensive', 'price-desc' => 'to cheep', ) );
and remove my first code,
Woocommerce use esc_html for these labels by default.
Good luck;
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Home Page and Category issuesHi;
for first issue please place this snippet in your theme/child theme functions.php
add_filter( 'woocommerce_breadcrumb_defaults', 'ywp_change_breadcrumb_home_text' ); function ywp_change_breadcrumb_home_text( $defaults ) { // Change the breadcrumb home text from 'Home' to 'Shop' $defaults['home'] = 'Shop'; return $defaults; } add_filter( 'woocommerce_breadcrumb_home_url', 'ywp_custom_breadrumb_home_url' ); function ywp_custom_breadrumb_home_url() { return wc_get_page_permalink( 'shop' ); }
and second issue:
Woocommerce show its widget just in product archives(shop, product category, pproduct tag and product custom taxonomies) and if you want to show category in blog pages like wordpress default pages, blogs and blog archives, you can useMenus
Go to
Appearance > Menus
and create new menu and then go toAppearance > Widget
and useMenu widget
IMPORTANT: if you not found Product Categories in
Appearance > Menus
, use theScreen Options
button placed in top right(or left) corner on screenGood luck
Forum: Plugins
In reply to: [WooCommerce] I can’t translate the standard product sorting woocommerceHi;
please put this snippet in your theme function.php file/** * Rename loop order items */ add_filter( 'woocommerce_catalog_orderby', 'ywp_rename_sorting_option_woocommerce_shop' ); function yzz_rename_sorting_option_woocommerce_shop( $options ) { $options['price'] = 'to expensive'; $options['rating'] = 'top rated'; $options['name'] = 'alphabetically'; $options['popularity'] = 'most favorites'; $options['date'] = 'new'; $options['price-desc'] = 'to cheep'; return $options; }
Good luck
Forum: Plugins
In reply to: [WooCommerce] Invalid confirmation password Checkout pageyou’re welcome
If you copy/paste entire of my code and not working, please replace this function
// ----- Validate confirm password field match to the checkout page add_action( 'woocommerce_after_checkout_validation', 'lit_woocommerce_confirm_password_validation', 10 ); function lit_woocommerce_confirm_password_validation( $posted ) { $checkout = WC()->checkout; if ( ! is_user_logged_in() && $checkout->must_create_account ) if ( $posted['account_password']!=$posted['ywp_password2'] ) wc_add_notice( 'error', 'error' ); }
with this one:
// ----- Validate confirm password field match to the checkout page add_action( 'woocommerce_after_checkout_validation', 'lit_woocommerce_confirm_password_validation', 10 ); function lit_woocommerce_confirm_password_validation( $posted ) { $checkout = WC()->checkout; var_dump( $posted ); if ( ! is_user_logged_in() && $checkout->must_create_account ) if ( $posted['account_password']!=$posted['ywp_password2'] ) wc_add_notice( 'error', 'error' ); }
and check values in your browser’s console;
Forum: Plugins
In reply to: [WooCommerce] All My account changes redirect to wp-admin after savingHi
Unfortunately I can’t visit your site ??Forum: Plugins
In reply to: [WooCommerce] Restore original product ID’sHi;
If you means that you restore a backup, you should before restore do TRANCATE woocommerce tables or recreate database then IMPORT your backup into mysql