Можно установить произвольное количество товаров, отображаемое по умолчанию на странице магазина. Цифра 20 в указанном ниже коде задает количество товаров. Измените ее на нужную Вам.
Добавьте код в файл темы functions.php
add_filter('loop_shop_per_page', create_function('$cols', 'return 20;'));
Можете изменить на нужное Вам значение (в коде цифра 25). Код добавляем в functions.php:
Добавьте код в файл темы functions.php
add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { return 35; } }
Это товары или продукты, которые вы рекомендуете при просмотре посетителем магазина.
Цифры в коде означают число колонок и число товара в колонках.
Добавьте код в файл темы functions.php
remove_action( 'woocommerce_after_single_product', 'woocommerce_upsell_display'); add_action( 'woocommerce_after_single_product', 'woocommerce_output_upsells', 20); if (!function_exists('woocommerce_output_upsells')) { function woocommerce_output_upsells() { woocommerce_upsell_display(4,4); // Показать 4 товара в 4 колонки } }
Сопутствующие товары отображаются в карточке товара внизу страницы под основным товаром. По умолчанию отображается 2 сопутствующих товара. Цифры задают число товаров и число колонок.
Добавьте код в файл темы functions.php
function woocommerce_output_related_products() { woocommerce_related_products(4,4); // Показать 4 товара а 4 колонки }
Добавьте код в файл темы functions.php
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { /*Убрали ненужные поля*/ unset($fields['billing']['billing_company']); unset($fields['billing']['billing_country']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_state']); return $fields; } add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields'); function custom_woocommerce_billing_fields( $fields ) { $fields['billing_address_1']['class'] = array( 'form-row-wide' ); /*Поле адреса шире*/ return $fields; }
Добавьте код в файл темы functions.php
add_filter( 'woocommerce_subcategory_count_html', 'jk_hide_category_count' ); function jk_hide_category_count() { }
Для тем совместимых WooCommerce это не требуется. Но если очень надо добавьте код в файл темы functions.php
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); // Убрали remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); add_action('woocommerce_before_main_content', create_function('', 'echo "<div id=\"contentwrapper\"><div id= \"content\">";'), 10); function divandsidebar_function(){ echo "</div></div>"; get_sidebar('left'); // после обертки вызвали sidebar-left.php } add_action('woocommerce_after_main_content', 'divandsidebar_function', 10); // Свои поставили
Добавьте код в файл темы functions.php
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
Если Вы хотите поменять местами краткое описание и цену. Добавьте код в файл темы functions.php
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 10); function HB_woocommerce_template_dimensions(){ //Добавим функцию вызова панельки с размерами и весом global $woocommerce, $post, $product; $product->list_attributes(); } add_action( 'woocommerce_single_product_summary', 'HB_woocommerce_template_dimensions', 15); //Поставим панельку после краткого описания
Если Вам не нравятся стандартные «хлебные крошки» WooCommerce. Добавьте код в файл темы functions.php
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
Если не нужно дополнительное описание, то убрать его просто.
Добавьте код в файл темы functions.php
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 ); remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_attributes_panel', 20 );
Чтобы после входа в личный кабинет пользователь переходил на ту страницу, которую Вы хотите задать (адрес страницы в коде /checkout замените на нужный).
Добавьте код в файл темы functions.php
add_filter('woocommerce_login_widget_redirect', 'custom_login_redirect'); function custom_login_redirect( $redirect_to ) { $redirect_to = '/checkout'; }
Поменяем местами постраничную навигацию (список страниц внизу) и блок сортировки (вверху — по убыванию/возрастанию цены и т.д.).
Добавьте код в файл темы functions.php
remove_action( 'woocommerce_pagination', 'woocommerce_pagination', 10 ); remove_action( 'woocommerce_pagination', 'woocommerce_catalog_ordering', 20 ); function pre_woocommerce_pagination(){ //Добавим текст перед списком echo '<span>Сортировка: </span>'; } add_action( 'woocommerce_pagination', 'pre_woocommerce_pagination', 5 ); add_action( 'woocommerce_pagination', 'woocommerce_catalog_ordering', 10 ); add_action( 'woocommerce_pagination', 'woocommerce_pagination', 20 );
Добавьте код в файл темы functions.php
add_action( 'woocommerce_before_shop_loop', 'pre_woocommerce_pagination', 1 ); add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 2 ); add_action( 'woocommerce_before_shop_loop', 'woocommerce_pagination', 3 );
Добавьте код в файл темы functions.php
add_filter( 'woocommerce_checkout_fields' , 'no_required_checkout_fields' ); function no_required_checkout_fields( $fields ) { $fields['billing']['billing_last_name']['required'] = false; $fields['billing']['billing_address_1']['required'] = false; $fields['billing']['billing_city']['required'] = false; $fields['billing']['billing_postcode']['required'] = false; return $fields; }
Не забудьте изменить ссылки «ваш_сайт.ru» на правильный адрес вашего сайта.
Добавьте код в файл темы functions.php
function cart_more_buttons() { echo '<a href="http://ваш_сайт.ru/shop/"> ← Продолжить покупки</a><a href="http://ваш_сайт.ru/checkout/">Оформить заказ →</a>'; } add_action ('woocommerce_after_cart_totals', 'cart_more_buttons', 5);
Добавьте код в файл темы functions.php
function checkout_more_buttons() { echo '<a href="http://ваш_сайт.ru/shop/"> ← Продолжить покупки</a>'; } add_action ('woocommerce_review_order_before_submit', 'checkout_more_buttons', 5);]]>
Create configurable product bundles and kits by combining simple and variable products.
Product bundling is one of the most effective marketing strategies: Bundle a few products together, sell them at a discount price and watch the sales go up! However, product bundling is not all about boosting sales: Product grouping is a very common way to create complex products, product kits or assemblies that consist of multiple parts. Often, these parts may need to be stock-managed individually, bundled in multiples, or even be entirely optional.
Product Bundles is probably the most straightforward WooCommerce extension for creating simple product packages: With Bundles you can quickly build complex products and create bulk discount combos by mixing simple and variable products. Downloadable and virtual products are also supported, while Product Bundles support many popular WooCommerce extensions, such as Product Add-ons, Subscriptions and Composite Products. Regardless of what you are planning to bundle, the extension gives you all the pricing and shipping flexibility you need to get those products out there!
Features
WooCommerce Photography is a tool designed to assist professional photographers with the day to day management and sale of their images for events, or as artwork. From the uploading and setup of photographs to the sale and customer purchase experience, WooCommerce Photography streamlines this entire process and gets you set up in the blink of an eye.
Скачать Инфо Документация ]]>
Features
]]>
Подарочные карты скидочные коды генерируются автоматически и могут быть применены к любому товару. Вы можете отправить подарочные карты другими людям. Если вы хотите отправить ее кому-то другому, введите имя и адрес электронной почты получателя.
Используемые шорткоды:
Скачать ]]>
Both simple and variable products can be configured as subscriptions and allow you to set payment cycle, free trial length, subscription length and a setup fee. When a customer purchases a subscription, a subscription flow is started, which consists of the following actions in a chronological order:
Both shop managers and customers can pause and resume subscriptions as well as cancel them. However, it is possible to disable this possibility for customers. There are more configuration options like when reminders should be sent, length of the suspension period etc. Plus there are many hooks and filters for developers to use.
This plugin integrates with WooCommerce Membership (also developed by RightPress) to offer online memberships with recurring payments.
Особенности:
]]>
Если вы продаете продукты, требующие коды лицензий, игры, программное обеспечение, файловые архивы — вам пригодится этот плагин.
This plugin is your ultimate solution for managing license codes on your store. It provides you with the opportunity of:
adding license codes
Individually deleting license codes
Providing your buyers with a license code
tracking license code usage via admin panel
** I would recommend this plugin for stores that sell products requiring license codes like games,softwares,or anything that you might want to assign a license to after purchase
Download the plugin from codecanyon.net and upload it through your plugins page
Navigate to the plugins page and activate your plugin.
STEP 1 : Upload your license numbers(.txt format) or use the input box to upload license codes individually.
After the license codes have been uploaded,the codes are displayed this way
NOTICE : When a product is purchased,a license code from the top is given to that order. The license code is then removed from the inventory then appears on the “thank you page” and on the “past orders page” just like this
All settings
Because I had in mind,you might want to keep track of the license codes ,I added a way to view the license code that has been assigned to each particular product purchased.