Posted in Magento, PHP / Python

How to create custom email template in magento 2


Login in to Magento Admin

Go to Marketing -> Communications -> Email templates form Magento Navigation.

Go to Marketing Email Templates
Go to Marketing Email Templates

Now, click on Add New Template.

Add New Email Template
Add New Email Template

If you want to load default template than Select template and click on load template. After click in Template Information default content will be load.

Load Default Email Templates
Load Default Email Templates

You can add content on Template Content section and also give custom CSS that you can write on Template Styles.

Modified And Create New email Template
Modified And Create New email Template

You can see preview of your Email template by click on Preview Template.

Email Template Preview
Email Template Preview

And after all perfect Save Template.

For change Default Welcome Email (New customer)

Go to Stores -> configuration from Magento Navigation.

Go to Stores Configuration from Navigation
Go to Stores Configuration from Navigation

After that go to Customers -> Customer Configuration in that unchecked Use system value of Default Welcome Email and select your created custom template from drop box.

Set New Customer Email template to New Custom email Template
Set New Customer Email template to New Custom email Template

Save Configuration by click on Save Config button.

Advertisements
Posted in Woocommerce

Woocommerce Gift Product


Features:
– We can select product for gift from list of cart products.
– Make One or more group and add different delivery address.
– Edit or delete group products and group also.
– Gift wrap option for groups.
– Email notification to customer when order place.

Page that display after cart page when click on ‘Proceed to Gift Product’.

gift_product_page
gift_product_page

Select number of items from list and make group

gift_product_make_group
gift_product_make_group

Display list of saved group in Group section.

gift_product_group
gift_product_group

Customer can edit or delete group items and group also.

gift_product_edit_group
gift_product_edit_group

Wordpress -> admin menu -> WooCommerce -> Settings -> Product tab add gift wrap charges.

gift_product_admin
gift_product_admin

Gift Product details display admin side in order details page.

gift_product_admin_order
gift_product_admin_order

Posted in Woocommerce

Woocommerce Product Wishlist


Wordpress -> admin menu -> WooCommerce -> Settings -> General tab Enable or Disable Wishlist for customer.

wishlist admin
wishlist admin

Product shop page have wishlist icon click to add product in your wishlist.

wishlist shop
wishlist shop

Single product page also wishlist icon.

wishlist single product
wishlist single product

Navigation menu have Wishlist option show all wishlist products.

wishlist menu
wishlist menu

Wishlist page display all product added in wishlist.
You can remove or add to cart products.
Enable or Disable mail notification.

wishlist page
wishlist page

Posted in Accounting, Odoo, Sale, Website

Odoo Mastercard Payment Gateway Service (MPGS)


Features

  • Payment Processing:
  • A single provider for all your payment needs. Your customer can pay anywhere, anytime, and through multiple channels

  • International Processing:
  • Unlock new markets and benefit from the rapid growth of international sales

  • Fraud & Risk Management:
  • Reduce the costs of fraud to your business whilst ensuring that genuine customers are not rejected or left frustrated

How to use
MPGS Credentials: Take Merchant ID, MPGS Secret Key and Merchant Name and Address from your MPGS account and put into MPGS Payment Acquire in Odoo.

Payment acquirers configuration
Payment acquirers configuration

User can manage the order flow from here.

MPGS Configration
MPGS Configration

Select MPGS from payment methods.

Pay with MPGS
Pay with MPGS

You need to follow this payment step

Payment
Payment
Payment
Payment
Payment
Payment

User can see confirm order detail here

Confirm Order
Confirm Order

Transaction Record has been created in Sales order

Sale Order View
Sale Order View

Transaction Record has been created in Invoice

Transaction View
Transaction View

Transaction Record has been created in Payment Transaction

Invoice View
Invoice View

Posted in Django

Django: Integration with Highchart


Highcharts is, in my opinion, one of the best JavaScript libraries to work with data visualization and charts out there. See my example,

Highchart Bar Chart

Highchart Bar Chart
Highchart Bar Chart

Highchart Pie Chart

Highchart Pie Chart
Highchart Pie Chart

Posted in Django

Django with Gunicorn on Ubuntu


This tutorial is aimed at the Django user who wants to set up a production web server. It takes you through the steps required to set up Django so that it works nicely with uWSGI and Gunicorn.

We will be setting up a PostgreSQL database instead of using the default SQLite database. We will configure the Gunicorn application server to interface with our applications.

To begin the process, we’ll download and install all of the items we need from the Ubuntu repositories. We will use the Python package manager pip to install additional components a bit later.

We need to update the local apt package index and then download and install the packages.

Django Gunicorn Install Package
Django Gunicorn Install Package

Create the PostgreSQL Database and User By Typing :

$sudo -u postgres psql

Create Database User
Create Database User

Afterwards, we’ll modify a few of the connection parameters for the user we just created

Alter Postgres Role
Alter Postgres Role

Now, we can give our new user access to administer our new database:

Grant All Privileges
Grant All Privileges

When you are finished, exit out of the PostgreSQL prompt by typing:

postgres=#\q

Upgrade pip install virtualenv
Upgrade pip install virtualenv

Within the project directory, create a Python virtual environment by typing:

Create Virtualenv
Create Virtualenv

Before we install our project’s Python requirements, we need to activate the virtual environment. You can do that by typing:

Activate virtualenv
Activate virtualenv

With your virtual environment active, install Django, Gunicorn, and the psycopg2 PostgreSQL adaptor with the local instance of pip:

Install Gunicorn for Django
Install Gunicorn for Django

Create and Configure a New Django Project

Create Django Project
Create Django Project

The first thing we should do with our newly created project files is adjust the settings. Open the settings file in your text editor:

Allowed Port
Allowed Port

Change the settings with your PostgreSQL database information.

Add Database
Add Database

Next, move down to the bottom of the file and add a setting indicating where the static files should be placed.

Add Static Root
Add Static Root

Now, we can migrate the initial database schema to our PostgreSQL database using the management script

Apply Migrations
Apply Migrations

Create an administrative user for the project by typing:

Create Super User
Create Super User

We can collect all of the static content into the directory location we configured by typing:

Copy to static
Copy to static

If you followed the initial server setup guide, you should have a UFW firewall protecting your server. In order to test the development server, we’ll have to allow access to the port we’ll be using.

Create an exception for port 8000 by typing:

$sudo ufw allow 8000

Run on 00 port
Run on 00 port

In your web browser, visit your server’s domain name or IP address followed by :8000:

Working port
Working port

The last thing we want to do before leaving our virtual environment is test Gunicorn to make sure that it can serve the application.

Load WSGI module
Load WSGI module

Create and open a systemd service file for Gunicorn with sudo privileges in your text editor :

$sudo nano /etc/systemd/system/gunicorn.service

Open Service File
Open Service File

With that, our systemd service file is complete. Save and close it now.
We can now start the Gunicorn service we created and enable it so that it starts at boot:

Start gunicorn service
Start gunicorn service

Check the status of the process to find out whether it was able to start:

Check Status
Check Status

If you make changes to the /etc/systemd/system/gunicorn.service file, reload the daemon to reread the service definition and restart the Gunicorn process by typing:

Reload Daemon
Reload Daemon

Now that Gunicorn is set up, we need to configure Nginx to pass traffic to the process.
Start by creating and opening a new server block in Nginx’s sites-available directory:

$sudo nano /etc/nginx/sites-available/myproject

Open sites available dir
Open sites available dir

Save and close the file when you are finished. Now, we can enable the file by linking it to the sites-enabled directory:

Enable Linking
Enable Linking

Test your Nginx configuration for syntax errors by typing:

Test nginx config
Test nginx config

If no errors are reported, go ahead and restart Nginx by typing:

$sudo systemctl restart nginx

Now we can remove the rule to open port 8000 as well:

Allow port rule update
Allow port rule update

Now Its Run on: http://192.168.2.124 (Our local)

Working with ip address
Working with ip address

Posted in Android

Odoo POS Android Application for PDA with Barcode Scanner and Bluetooth Printer



Let’s see the video

Odoo Login Page

Odoo Android Login
Odoo Android Login

Odoo Customer Display

Odoo Customers
Odoo Customers

Odoo Products Display

Odoo Products
Odoo Products

Connect Bluetooth Printer

Bluetooth Printer
Bluetooth Printer

User Languages

User Languages
User Languages

Odoo POS Order List

Odoo POS Order List
Odoo POS Order List

Odoo Order Details

Odoo Order Details
Odoo Order Details

Scan Products

Scan Products
Scan Products

Odoo POS Receipt

Odoo POS Receipt
Odoo POS Receipt