Archive for the ‘php’ Category

Convert VueJS site to NuxtJS

June 7, 2023 | In: php

To convert a Vue.js website to Nuxt.js, you need to follow a few steps. Nuxt.js is a framework built on top of Vue.js that provides server-side rendering (SSR) and other useful features for building universal web applications. Here's a general process to...

To get the Magento metapackage: Log in to your Magento server or localhost path where you would like to install the Magento. Make sure you have proper permissions to use that folder.Change to the web server docroot directory or a directory that you...

Instead of look on the server directly, we should check first the Magento setup. Generally, this errors comes when the setup missing the .htaccess file in the pub/static folder. Here below I mentioned the .htaccess file code. You can copy it and...

PHP, Java and other languages provide replace all functionality to replace any character by any specific character. But REGEX is best method to replace or remove any specific value using pattern. Suppose, we have input string is $xyz = "This is my...

In my previous post [How to programmatically add shipment with a tracking number to any order : PART I], you found that how can we generate shipment for an order programmatically. Here we are going to learn next step to add tracking number with generated...

We are assuming that we have an order incremented id. and we want to make shipment for this order. Here also we are assuming that invoice has been generated for order already. so we are going to generate only shipment. $orderId = '1000001'; ...

I tried to wrote this code when I was working on a cron file for all orders. My client wants a cron file that get all orders information including all ordered item and their detail. First, I searched on google but I didn't found any exact solution then...

Magento provides following types of page layout in default. 1column, 2columns-left, 2columns-right, 3columns, empty, and print. But sometimes we need to change design in layout and we do not want to affect on other pages. For example, we want to use...

Magento provides lot of inbuild functionalities. Using "protected function _prepareColumns()" function we can create or add new column to the grid. Like: protected function _prepareColumns() { $this->addColumn('first_name',...

We can add or remove anythings in magento core files but it is not a perfect solution. To make a perfect solution, we are creating a small module. By this module you will able to add / remove navigation links from customer account dashboard. Firstly,...

In default magento setup, product rating is not showing on product detail page while in the demo you see that rating is showing. Don't worry about this. we show you how you can enable rating system by following below steps: 1. Log in to admin...

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of...

Magento provides log file to maintain each type of error on your application. By this you can add log error or exception to magento's system log file. Its very handy to view coding errors. Developing for Magento is often hard, especially since it’s not...

Zend provides JOIN, joinLeft, joinRight keywords to join two or multiple tables.  you can make an sql object by calling select function of current model by: $select = $this->getDbTable()->select(); Use below line to use JOIN terms in your...

Zend provides a facility to delete a row from the database table using the delete() method. This method takes one argument, which is an SQL expression that is used in a WHERE clause, as criteria for the rows to delete. For example : $modelObj = new...

Today's market is based on 3D and most things are doing by jQuery or Javascript to make fast loading application. Opacity is a part of CSS to make transparent image without PNG format. To set the opacity property to an image you can...

Wordpress is a powerfull tool for blog and it keep all data  in serialize format and user can easily get these values from database by get_option() function. But some time we need to use unserialize function to get some specific value from the string. So...