…today's article, in which we'll go through the complete process of setting up a multilingual store in OpenCart!Of course, we'll use the latest major version of OpenCart, so make sure that you've installed it!Download the Language PackOf course, it's one of the first things you'll need to do—download the desired…
…Today, you witnessed the practical implementation of the DRY principle with Timber and Twig while building a WordPress theme. Go through this tutorial and try to implement it, and let me know about any questions you might have. You can find the complete code in the WP Cheatsheet branch over…
…today:Desktop PageSpeedThe final Desktop score was 86, not bad:JavaScript is finicky. I was never able to successfully minify and combine those last two files into the first. Even leaving them uncompressed never worked. Working with themes and plugins is hard. It would have required several days of dedicated work to…
…Today, we are going to explore how to display attachment images, WordPress menus, and users in a theme with Twig through the Timber plugin.Images in Timber Images are one of the vital elements for any WordPress theme. In regular WordPress coding practices, images are integrated with PHP inside the normal…
…today, and it is used on most common web applications and services, like GitHub, Google, Facebook, and, of course, Twitter.This framework allows users to grant you permission to act on their behalf without sharing the account password. After the user has given permission, OAuth will return you a token. This…
…today. I hope you're excited to do so. Please let me know which Mailgun features you'd like to see more written about in the future. You can post them in the comments below or reach me directly on Twitter @reifman.Related LinksMailgun—The Email Service for DevelopersThe Mailgun WordPress PluginMailgun Resource LibraryMailgun's Open-Source Offerings (GitHub)Get a Fast…
…Today, we’ll see what resources are available in OpenCart and how you could grant certain kinds of permissions on those resources to a group of users. We’ll go through the back-end to explore said features, and the user groups will be the topic of our discussion in the later part…
…today.Create Module FilesGo ahead and create a file catalog/controller/ajax/index.php with the following contents.<?php // catalog/controller/ajax/index.php class ControllerAjaxIndex extends Controller { public function index() { $this->load->language('ajax/index'); $this->load->model('catalog/product'); $this->document->setTitle($this->language->get('heading_title')); // load all products $products = $this->model_catalog_product->getProducts(); $data['products'] = $products; $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'href' => $this->url->link('common/home'), 'text' => $this->language->get('text_home') );…
…today's generation etc, etc. Ok, let's set up a little development server to make things even more efficient. At the terminal, write:npm install webpack-dev-server -gThen run the command webpack-dev-server. This will start a simple web server running, using the current directory as the place to serve files from. Open a…
…Today, we'll discuss reporting tools in the context of OpenCart. You'll find lots of useful reports in the core itself. There are four main categories to be precise—Sales, Products, Customers and Marketing—and each of them further provides more options to view the information in different contexts.In our example, we'll build…