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

Advertisements
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

Posted in Django

Paypal payment gateway connection in Django


Use Paypal Payment Integration in Jobseeker Website

We have implemented solution for allowing payment process via Paypal from Django. We are still improving this module by adding new functionalities. Currently we have implemented feature with Client monthly and yearly plan activation to post a Job.
We have created account on Paypal (https://sandbox.paypal.com/) We can get more information from here : http://developer.Paypal.com/
In Django-Jobseeker, first we have to sign in as a company for selecting plan, for signing in you must have created account on Django-Jobseeker.

Django Jobseekar Login Page
Django Jobseeker Login Page

Company have the option to post the Job Before post the job company have to pay some amount according to the plans, that are available on the plan list

Django Jobseekar Post Job
Django Jobseeker Post Job

When Company select the option of post job, plans are visible on the screen where company can select the one of them, Company can select plan of yearly basis or monthly basis

Django Jobseekar Select Plan
Django Jobseeker Select Plan

After selecting the plans from plan list company have to choose payment method to pay, If company select the Paypal gateway to pay, It redirect to the Paypal account form

Django Jobseekar Select Gateway
Django Jobseeker Select Gateway

Company selected the Paypal Gateway So It redirect to the Paypal button

Django Paypal button
Django Paypal button

After clicking on paypal Button It redirect to the Paypal login screen where company have to login with their Paypal account

Django Jobseeker Paypal Login Screen
Django Jobseeker Paypal Login Screen

Company Have to Add the payment detail

Django Jobseeker Credit Card Detail
Django Jobseeker Credit Card Detail

After Adding the detail of payment it show the Pay Now Button

Django Jobseeker Payment Button
Django Jobseeker Payment Button

Clicking on Pay Now Button, Payment will be successfully done and It will show the Receipt

Django Jobseeker Receipt
Django Jobseeker Receipt

When clicking on return to merchant it redirect to the message of payment successfully done

Django Jobseeker Payment Done
Django Jobseeker Payment Done

Posted in Django

Authorize.net payment gateway connection in Django


We have implemented solution for allowing payment process via Authorize.Net from Django. In this post we will show the payment is processed using Authorize.net. We are still improving this module by adding new functionalities. We have a feature where client must buy a plan before the post can be made on the site about the project.

First, we have created an account on Authorize.Net (https://sandbox.authorize.net/) and turn ON TEST mode. For more detail refer: http://developer.authorize.net/

To use the application login is required. Client will login using his credentials.

Django Client Login for Freelancer
Django Client Login for Freelancer

When client first sign in to the web application, plans page is displayed. To post the project client must have an active plan. It can also be accessed via View Plans option in Pricing menu.
If client already have an active plan in that case View Plans will display the Current plan.

Django - Post project before plan activation
Django – Post project before plan activation

After selecting plan, client is redirected to authorize.net credit card information/checkout page for further processing. Next screen will ask for basic detail about credit card number, expiry data, CVV code. After filling the required details , Make Payment button is pressed which will do all the work of Django.

Django -Aauthorizenet Payment Gateway
Django -Aauthorizenet Payment Gateway

Once the payment is successful, the message will be displayed saying Your Plan Successfully Activated. Now client can post the project details.

Django - Plan successfully activated
Django – Plan successfully activated

‘View Plans’ option can be used to see the activated plan.

Active plan information
Active plan information

Merchant will receive email notification from authorize.net contains transaction information.

Django -Aauthorizenet Payment Gateway
Django -Aauthorizenet Payment Gateway