Tips / Recommendations

Replacing currency sign with letters Woocommerce

Posted on

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 […]

Work

Platform installation Orchid – Laravel Admin Panel

Posted on

Create a project Add dependency Platform installation Create user Start local server Publishing resources Updating What to do next? Before you can use the platform, you need to install it. This guide should help you perform a simple installation to start the project. Create a project Note. If you already have Laravel installation, you can skip […]

Work

Installing ext-dom PHP7

Posted on

First of all, read the warning! He says don’t run composer as root! Second, you are probably using Xammp on your local machine, which has the required php libraries by default. But on your server you are missing ext-dom. php-xml has all the required bundled packages. Thus, you can simply install it by running: sudo […]

Work

How to insert shortcode into PHP

Posted on

Especially for those who already know everything, but are just looking for a quick answer on how to insert a shortcode into a wordpress template or another engine, please use this code: <?php echo do_shortcode( ‘[your_shortcode]’ ); ?> However, don’t forget about punctuation! The quotes in your shortcode and php code must be different. That […]

Tips / Recommendations

Show password by icon

Posted on

<div><input type=”password” id=”password-input” placeholder=”Введите пароль” name=”password” value=”123456″><a href=”#”></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: absolute;top: 11px;right: 6px;display: inline-block;width: 20px;height: 20px;background: url(https://snipp.ru/demo/495/view.svg) 0 0 no-repeat;}.password-control.view {background: url(https://snipp.ru/demo/495/no-view.svg) 0 0 no-repeat;}</style> <script src=”https://snipp.ru/cdn/jquery/2.1.1/jquery.min.js”></script><script>$(‘body’).on(‘click’, ‘.password-control’, function(){if ($(‘#password-input’).attr(‘type’) == ‘password’){$(this).addClass(‘view’);$(‘#password-input’).attr(‘type’, ‘text’);} else […]

Work

Create tab tabs for product cards WooCommerce

Posted on

This plugin extends to allow shop owners to add custom tabs to products. The tabs are displayed on the individual product pages to the right of the default “Description” tab. Individual product tabs are managed on the WooCommerce Edit Product screen and can be added on a per product basis. You can also create saved tabs […]

Work

Hide WordPress widgets on mobile

Posted on

The easiest way is to use the Widget Options Plugin which can hide widgets on mobile and other devices. It’s free in the repository: https://wordpress.org/plugins/widget-options/ Below you can see the options

Tips / Recommendations

Redirect after a successful order in the store

Posted on

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 […]