Shopify vs WooCommerce in 2026: Which Platform Is Better for Your Business?

Posted Posted in Tips / Recommendations

Introduction One of the biggest questions in ecommerce right now: 👉 Shopify or WooCommerce? And honestly? There’s no universal winner. Because the best platform depends on: your business model your budget your goals your technical needs In 2026 both platforms are powerful. But they solve problems differently. Let’s break it down properly. What Is Shopify? […]

WordPress Security Mistakes That Can Destroy Your Website in 2026

Posted Posted in Tips / Recommendations

Introduction Most website owners think: 👉 “Nobody will hack my website.” Until one day: the site crashes spam appears Google flags the domain customer data leaks And suddenly: 👉 the business stops In 2026, website security is not optional. Especially for WordPress websites. Let’s break down the biggest security mistakes businesses still make. 1. Not […]

Website Audit Checklist 2026 (Find and Fix What’s Killing Your Conversions)

Posted Posted in Tips / Recommendations

Introduction Your website looks fine. Design? OK.Content? OK.Traffic? Maybe OK. But something’s wrong: 👉 No leads. No growth. No results. In most cases, the problem is not obvious. 👉 It’s hidden in details. That’s why you need a proper website audit. Let’s break down a real checklist. 1. First Impression (0–5 seconds) Ask yourself: 👉 […]

Website Redesign: When You Actually Need It (And When You Don’t) in 2026

Posted Posted in Tips / Recommendations

Introduction Not every website needs a redesign. But here’s the uncomfortable truth: 👉 most business websites are outdated… and silently losing money The problem?You don’t always notice it. Let’s break down when you actually need a redesign — and when you’re just overthinking it. 1. Your Website Looks Outdated First impressions happen in seconds. If […]

How to Choose a Web Development Agency

Posted Posted in Tips / Recommendations

Choosing the right web development agency can make or break your online business. A good agency doesn’t just build a website — it builds a system that attracts customers and generates revenue. 1. Check Their Portfolio A strong portfolio shows real experience. Look for: modern design different types of websites real business cases If all […]

Benefits of Responsive Web Design for Businesses

Posted Posted in Tips / Recommendations

Benefits of Responsive Web Design for Businesses In today’s digital world, having a website that adapts to any device is no longer optional—it’s essential. Responsive web design (RWD) ensures that your site looks and works perfectly on desktops, tablets, and smartphones. Why Responsive Design Matters Improved User ExperienceA responsive website automatically adjusts its layout to […]

Add function custom redirect on thanks page woocommerce

Posted Posted in Tips / Recommendations

add_action(‘after_setup_theme’, ‘woocommerce_support’); function woocommerce_support() { add_theme_support(‘woocommerce’); } add_filter(‘woocommerce_cart_item_name’, ‘add_excerpt_in_cart_item_name’, 10, 3); function add_excerpt_in_cart_item_name($item_name, $cart_item, $cart_item_key) { $excerpt = wp_strip_all_tags(get_the_excerpt($cart_item[‘product_id’]), true); $style = ‘ style="font-size:14px; line-height:normal;"’; $excerpt_html = ‘ <p name="short-description" class="product-description"’ . $style . ‘>’ . $excerpt . ‘</p>’; return $item_name . $excerpt_html; } add_action( ‘woocommerce_get_return_url’, ‘trueroman_redirect_to_thank_you_2’, 90, 2 ); function truemisha_redirect_to_thank_you_2( $thank_you_url, $order ) […]

Update Cart Automatically on Quantity Change

Posted Posted in Tips / Recommendations

add_action(‘wp_head’, function () { ?><style> .woocommerce button[name="update_cart"], .woocommerce input[name="update_cart"] { display: none; } </style><?php }); add_action(‘wp_footer’, function () { ?> <script> jQuery(function($) { let timeout; $(‘.woocommerce’).on(‘change’, ‘input.qty’, function() { if (timeout !== undefined) { clearTimeout(timeout); } timeout = setTimeout(function() { $("button[name=’update_cart’]").removeAttr("disabled"); $("[name=’update_cart’]").trigger("click"); // trigger cart update }, 1000); // 1 second delay, half a second […]

Minimum product order woocommerce

Posted Posted in Tips / Recommendations

/** * For cart */ add_filter(‘woocommerce_cart_item_quantity’, ‘trueroman_min_kolvo_cart’, 20, 3); function truemisha_min_kolvo_cart($product_quantity, $cart_item_key, $cart_item) { $product = $cart_item[‘data’]; $min = 0; if (567 === $product->get_id()) { // товар с ID 500 $min = 1; } return woocommerce_quantity_input( array( ‘input_name’ => "cart[{$cart_item_key}][qty]", ‘input_value’ => $cart_item[‘quantity’], ‘max_value’ => $product->get_max_purchase_quantity(), ‘min_value’ => $min, ‘product_name’ => $product->get_name(), ), $product, false […]

Automatically add product to cart on visit woocommerce

Posted Posted in Tips / Recommendations

/** * Automatically add product to cart on visit */ add_action(‘template_redirect’, ‘add_product_to_cart’); function add_product_to_cart() { $simple_product_id = 567; if (!is_admin()) { $product_id = 567; //replace with your own product id $found = false; //check if product already in cart if (sizeof(WC()->cart->get_cart()) > 0) { foreach (WC()->cart->get_cart() as $cart_item_key => $values) { $_product = $values[‘data’]; if […]

How to enable the Gutenberg editor in WooCommerce products

Posted Posted in Tips / Recommendations

add_filter( ‘use_block_editor_for_post_type’, ‘art_enable_rest_for_product’, 10, 2 ); add_filter( ‘woocommerce_taxonomy_args_product_cat’, ‘art_show_in_rest_for_product’, 10, 1 ); add_filter( ‘woocommerce_taxonomy_args_product_tag’, ‘art_show_in_rest_for_product’, 10, 1 ); add_filter( ‘woocommerce_register_post_type_product’, ‘art_show_in_rest_for_product’, 10, 1 ); /** * Включение редактора Gutenberg для товаров * * @sourcecode https://onmywaystudio.net/ * * @param bool $can_edit * @param string $post_type * * @return bool * * @author Roman Petrovich * @testedwith […]

Woocommerce rest check permissions

Posted Posted in Tips / Recommendations

REST-API WOOCOMERCE add_filter( ‘woocommerce_rest_check_permissions’, ‘my_woocommerce_rest_check_permissions’, 90, 4 ); function my_woocommerce_rest_check_permissions( $permission, $context, $object_id, $post_type ){ return true; } редирект со страницы на страницу RewriteCond %{QUERY_STRING} ^_route_=login/$ RewriteRule ^(.*)$ https://onmywaystudio.net/? [R=301,L]

Set a cookie and close a popup after Contact Form 7 form is submitted.

Posted Posted in Tips / Recommendations

<?php // As is this will check if the form is in a popup, if so set a cookie and close after 5 seconds. // Copy everything below this line. function custom_cf7_scripts() { ?> <script type="text/javascript"> var wpcf7Elm = document.querySelector(‘.wpcf7’); wpcf7Elm.addEventListener(‘wpcf7submit’, function (event) { var $form = $(event.target), $popup = $form.parents(‘.pum’); if (!$popup.length) { return; […]

Liqpay payment widget

Posted Posted in Tips / Recommendations

$liqpay = new LiqPay($public_key, $private_key); $html = $liqpay->cnb_form(array( ‘action’ => ‘pay’, ‘amount’ => ‘1’, ‘currency’ => ‘USD’, ‘description’ => ‘description text’, ‘order_id’ => ‘order_id_1’, ‘version’ => ‘3’ )); Payment widget options data Required String json string with APIs parameters is encoded by the base64_encode( json_string ) function , where base64_encode – returns a string encoded by the base64 method signature Required String Unique […]

How to Hide Posts or Pages from the WordPress Admin

Posted Posted in Tips / Recommendations

function true_hide_pages_from_admin( $query ) { global $pagenow; if( is_admin() && ‘edit.php’ == $pagenow && ‘page’ == get_query_var(‘post_type’) ){ // в качестве ‘page’ в условии можно указать любой произвольный тип постов $query->set( ‘post__not_in’, array(300,271) ); // через запятую прописываем ID страниц, которые хотим скрыть } return $query; } add_action( ‘pre_get_posts’ ,’true_hide_pages_from_admin’ ); function true_hide_posts_from_admin( $query ) […]

Change photo in url

Posted Posted in Tips / Recommendations

<meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:image" content="https://onmywaystudio.net/wp-content/uploads/2018/05/cropped-download-1-1.png;" /> <meta property="og:image:secure_url" content="https://onmywaystudio.net/wp-content/uploads/2018/05/cropped-download-1-1.png"; /> <meta property="og:image:type" content="image/jpeg" /> <meta property="og:image:width" content="400" /> <meta property="og:image:height" content="300" /> <meta property="og:image:alt" content="" />

Adding consent to the WooCommerce Privacy Policy

Posted Posted in Tips / Recommendations

// Добавление чекбокса add_action( ‘woocommerce_review_order_before_submit’, ‘truemisha_privacy_checkbox’, 25 ); function truemisha_privacy_checkbox() { woocommerce_form_field( ‘privacy_policy_checkbox’, array( ‘type’ => ‘checkbox’, ‘class’ => array( ‘form-row’ ), ‘label_class’ => array( ‘woocommerce-form__label-for-checkbox’ ), ‘input_class’ => array( ‘woocommerce-form__input-checkbox’ ), ‘required’ => true, ‘label’ => ‘Принимаю <a href=”‘ . get_privacy_policy_url() . ‘”>Политику конфиденциальности</a>’, )); } // Валидация add_action( ‘woocommerce_checkout_process’, ‘truemisha_privacy_checkbox_error’, 25 ); function […]

Product availability in Woocommerce

Posted Posted in Tips / Recommendations

add_action( ‘woocommerce_before_shop_loop_item_title’, ‘my_sold_out_loop’ ); function my_sold_out_loop() { global $product; if ( !$product->is_in_stock() ) { echo ‘<span class=”soldout”>Нет в наличии</span>’; } } add_action( ‘woocommerce_before_single_product_summary’, ‘my_sold_out_loop’ ); span.soldout { padding: 3px 7px; background: #7b1616; color: white; font-size: 13px; } add_filter( ‘woocommerce_get_availability’, ‘wcs_custom_get_availability’, 1, 2); function wcs_custom_get_availability( $availability, $_product ) { if ( $_product->is_in_stock() ) { $availability[‘availability’] = […]

Add field to user profile wordpress and woocommerce

Posted Posted in Tips / Recommendations

function my_user_contactmethods($user_contactmethods){ $user_contactmethods[‘phone’] = ‘Телефон’; return $user_contactmethods; } add_filter(‘user_contactmethods’, ‘my_user_contactmethods’); <p class=”form-row form-row-wide”> <label for=”phone”>Phone</label> <input type=”text” class=”input-text” name=”phone” id=”phone” value=”<?php echo esc_attr( $user->phone ); ?>” /> </p> $phone = ! empty( $_POST[ ‘phone’ ] ) ? $_POST[ ‘phone’ ] : ”; $user->phone = $phone;

Woocommerce product category description under products

Posted Posted in Tips / Recommendations

In order to display the description of the Woocommerce product category at the bottom of the page – under the products, you need to add the following code to the functions.php file of the theme: remove_action( ‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 ); add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_taxonomy_archive_description’, 100 ); function woocommerce_taxonomy_archive_description() { if ( is_tax( array( ‘product_cat’, ‘product_tag’ ) […]

Sorting WordPress posts by creation time and AFC custom field

Posted Posted in Tips / Recommendations

add_action(‘pre_get_posts’, ‘my_pre_get_posts’, 10, 1); function my_pre_get_posts($query) { if ($query->is_main_query() && !is_admin()) { $query->set(‘meta_key’, ‘sorting’); // сортировка по произвольному полю $query->set(‘orderby’, ‘meta_value_num’); $query->set(‘order’, ‘ASC’); // порядок сортировки } $query->set(‘meta_query’, $meta_query); } function postSorting() { $todays_date = current_time(‘Ymd’); $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => ‘4’, ‘paged’ => $paged, ‘meta_query’ => array( ‘relation’ => ‘AND’, ‘sorting_clause’ […]

Percentage Discount on Whole Cart Without Coupon in WooCommerce

Posted Posted in Tips / Recommendations

Fixed Percentage Discount on Whole Cart in WooCommerce So, let’s start with the simplest discount – fixed. In it, the discount will be applied to the entire basket as a result, without unnecessary actions on the part of the user. Discount script: function woo_discount_total(WC_Cart $cart) { if(is_admin() && !defined(‘DOING_AJAX’)) { return; } $discount = $cart->subtotal […]

Enable phone field validation in woocommerce

Posted Posted in Tips / Recommendations

// Custom validation for Billing Phone checkout field add_action(‘woocommerce_checkout_process’, ‘custom_validate_billing_phone’); function custom_validate_billing_phone() { $is_correct = preg_match(‘^((8|+7)[- ]?)?((?d{3})?[- ]?)?[d- ]{7,10}$’, $_POST[‘billing_phone’]); if ($_POST[‘billing_phone’] && !$is_correct) { wc_add_notice(__(‘The Phone field should be <strong>between 6 and 20 digits</strong>.’), ‘error’); } }

Replacing currency sign with letters Woocommerce

Posted Posted in Tips / Recommendations

Open the WordPress theme’s functions.php file and add a filter for woocommerce to it (ATTENTION !!! The code below is added to the end of the functions.php file) add_filter( ‘woocommerce_currencies’, ‘add_my_currency’ ); function add_my_currency( $currencies ) { $currencies[‘UAH’] = __( ‘Українська гривня’, ‘woocommerce’ ); return $currencies; } add_filter(‘woocommerce_currency_symbol’, ‘add_my_currency_symbol’, 10, 2); function add_my_currency_symbol( $currency_symbol, $currency […]

Show password by icon

Posted Posted in Tips / Recommendations

<div class=»password»> <input type=»password» id=»password-input» placeholder=»Введите пароль» name=»password» value=»123456″> <a href=»#» class=»password-control»></a> </div> <style type=»text/css»> .password { width: 300px; margin: 15px auto; position: relative; } #password-input { width: 100%; padding: 5px 0; height: 30px; line-height: 40px; text-indent: 10px; margin: 0 0 15px 0; border-radius: 5px; border: 1px solid #999; font-size: 18px; } .password-control { position: […]

Redirect after a successful order in the store

Posted Posted in Tips / Recommendations

The redirect can be done by adding this code to the function.php of your theme. add_action( ‘template_redirect’, ‘woo_custom_redirect_after_purchase’ ); function woo_custom_redirect_after_purchase() { global $wp; if ( is_checkout() && !empty( $wp->query_vars[‘order-received’] ) ) { wp_redirect( ‘URL куда будем делать редирект’ ); exit; } } Now you can simply create a “thank you for order” page and […]

Install Symfony Framework

Posted Posted in Tips / Recommendations

Создание проекта   Чтобы создать новый Symfony проект, основанный на одном из официальных шаблонов, нужно запустить команду:   $ symfony new [–full | –demo] <path-to-project>   По умолчанию используется минимальный шаблон skeleton. Чтобы установить website-skeleton нужно запустить команду с опцией –full. Соответственно, для установки demo проекта необходимо запускать команду с опцией –demo.   Под капотом symfony new выполняет команду composer create-project, затем инициализирует новый Git […]

Install Laravel on Ubuntu

Posted Posted in Tips / Recommendations

System requirements Your system must meet the following requirements to be able to run the latest version of Laravel: PHP> = 7.1.3 with OpenSSL, PDO, Mbstring, Tokenizer, XML, Ctype and JSON PHP Extensions. Composer is an application-level package manager for PHP. Setting prerequisites First, make sure you update your system sources and existing software packages […]

Color design of the site

Posted Posted in Tips / Recommendations

One of the key roles in the success of the site plays the color scheme. Color directly affects the perception of the site by visitors: it can inspire confidence and encourage purchase, but it can also push away. The fact is that in our case the adage “to meet clothes …” is fair, as users […]