ilyapokrov
Forum Replies Created
-
Forum: Plugins
In reply to: [Multi Step Form] pop-up questionsI was able to figure it out myself
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Custom fields {name [1]}Understood. Everything worked.
I decided using get_title
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] delete products using cron?@wpallimport,
No, you misunderstood me. I want to completely remove products and related pictures. It so happens that there are several thousand products and it is inconvenient to delete them using the admin panel.@wpallimport,
I am not using a plugin to select the main category. Wokomers only.
Here is an example of a product – it has two categories “Jackets” and “Men’s Jackets”
https://look-catalog.ru/kurtka-new-balance-r-w-t-lightweight-jacket-mj93057-dlya-muzhchin-tsvet-zelenyj/This is a screen with the first category:
https://prnt.sc/10oetv8This is a screen from the second category:
https://prnt.sc/10oevezForum: Plugins
In reply to: [Advanced Woo Search] No search in parent categories@mihail-barinov,
That didn’t help either =(Forum: Plugins
In reply to: [Advanced Woo Search] No search in parent categories@mihail-barinov,
Yes, I just reindexed the table. But the result is unsuccessful.
For example, there is a category “Men’s jackets”:
https://look-catalog.ru/muzhskie-kurtki/
The plugin quickly finds this category.But this category has a child “Men’s Outerwear”. And the plugin can’t find it.
Search is on the home page:
https://look-catalog.ru/Forum: Plugins
In reply to: [WooCommerce] Modify wc-product-functions.phpTo be more precise, here is the function that I need to overwrite.
function wc_placeholder_img( $size = 'woocommerce_thumbnail', $attr = '' ) { $dimensions = wc_get_image_size( $size ); $placeholder_image = get_option( 'woocommerce_placeholder_image', 0 ); $default_attr = array( 'class' => 'woocommerce-placeholder wp-post-image', 'alt' => __( 'Placeholder', 'woocommerce' ), ); $attr = wp_parse_args( $attr, $default_attr ); if ( wp_attachment_is_image( $placeholder_image ) ) { $image_html = wp_get_attachment_image( $placeholder_image, $size, false, $attr ); } else { $image = wc_placeholder_img_src( $size ); $hwstring = image_hwstring( $dimensions['width'], $dimensions['height'] ); $attributes = array(); foreach ( $attr as $name => $value ) { $attribute[] = esc_attr( $name ) . '="' . esc_attr( $value ) . '"'; } $image_html = '<img src="' . esc_url( $image ) . '" ' . $hwstring . implode( ' ', $attribute ) . '/>'; } return apply_filters( 'woocommerce_placeholder_img', $image_html, $size, $dimensions ); }
How can i do this?
Forum: Plugins
In reply to: [Advanced Woo Search] No search in parent categories@mihail-barinov,
You got it right.
But I’ll try to explain it again.
For example, there are 1 million products on the site. If you search by categories, product titles and descriptions, then this significantly loads the server and the search result takes a long time.
Therefore, I only search by category.
The problem is that the plugin only searches for one category in which the product is located. And you need to search for parent categories as well.
Example:
Clothing – women’s clothing – women’s jackets – adidas jackets – productIf you look for “Adidas jackets”, then everything is ok. If you search for “women’s jackets”, you will not find anything.
Forum: Plugins
In reply to: [Advanced Woo Search] No search in parent categories@mihail-barinov,
Thank you for helping me.
But this code didn’t help me. The search doesn’t work anyway.Forum: Plugins
In reply to: [Yoast SEO] Breadcrumbs functionfound a solution – it is located in the seo settings of the category in the tab – Advanced
Forum: Plugins
In reply to: [Yoast SEO] Breadcrumbs functionAlthough it’s probably better to use the mb_strpos function, I think you get the idea.
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] How do I match categories?@wpallimport,
I cannot find the term meta in the plugin.
Where is it?Forum: Plugins
In reply to: [Advanced Woo Search] Long loading of search results@mihail-barinov,
Strange, but I didn’t notice any difference.
I’ll try to explain it again.So, as I understand, this “футболки мужские”, “футболки для мужчин” is a child categories of “футболка” category?
No, it’s not.
There is a category, for example “Clothes” and it has many subcategories – jeans, shirts, sweaters.
Each product I put down the attribute “Gender” – for boys, for girls, for men, for women.When a visitor enters “jacket”, nothing is found. If one enters “jackets”, then categories are displayed, including “Clothes”.
But I think I get it. In order for the plugin to search for more attributes, apparently you need to purchase a paid version. I haven’t noticed this before.
Thank. I’ll think about it =)
- This reply was modified 3 years, 9 months ago by ilyapokrov.
Forum: Plugins
In reply to: [Advanced Woo Search] Long loading of search results@mihail-barinov,
Я так понимаю, проще будет общаться на русском =)Спасибо за такой подробный ответ.
Я хочу реализовать поиск только по категориям продукта и его атрибутам. У меня есть категория продукта, например “футболки” и атрибуты, например “для женщин”, “для мужчин”.
И когда пользователь вводит в поиске – “футболка”, “футболки”, “футболки мужские”, “футболки для мужчин” показывать ему только категорию – “Мужские футболки” и “Футболки”.
Как это сделать?