Download the PHP package zealousweb/order-on-whatsapp without Composer

On this page you can find all versions of the php package zealousweb/order-on-whatsapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package order-on-whatsapp

Order on WhatsApp Plugin For Craft CMS

This plugin allows you to place an order through WhatsApp and share a product with WhatsApp contacts by adding an “Order on WhatsApp” button and a “Share on WhatsApp” button to your website. With the “Order on WhatsApp” button, users can send the orders directly to the vendor’s WhatsApp number. With the “Share on WhatsApp”, users can share details of products with their family and friends through WhatsApp.

Requirements

The prerequisites for the Order On WhatsApp Plugin to function are:

  1. Install/activate Craft Commerce Plugin.
  2. Craft CMS Version 3.1 or greater.
  3. PHP Version 7.2.5 or greater.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Order on WhatsApp”. Then click on the “Install” button in its modal window.

With Composer

Open your terminal and run the following commands:

Major features of the Plugin

  1. Accept orders on your WhatsApp account.
  2. Have WhatsApp ordering feature on various pages like the shop (listing) page, product detail page, cart page, and checkout page.
  3. Add custom text to your WhatsApp button.
  4. Add custom color to your WhatsApp button.
  5. Apply this feature to specific product types/all products.

General Settings

Country Code
On the Setting’s page, there will be a dropdown of all the countries with their codes. You have to select your country code.

WhatsApp Number
You have to enter your WhatsApp number here. It can be a personal or commercial number.

WhatsApp Button Settings

Text on Button
You can customize the text of the button. The default text on the button will be “Order on WhatsApp”.

Background Color of Button
You can customize the color of the button from here. The default color of the button is set to forest green(‘#228B22’).

Color Of the Button Text
You can customize the color of the text written on the button from here. The default color of the text is set to white(‘#FFFFFF’).

Apply to all Products
You can check this box if you want to have the button on all the products. If you have already checked this box, "apply to specific product" functionality will get disabled.

Apply to Specific Product
If you want to have the button on specific product types, then you can select those products types from here.

To have the button on specific pages, you have to check it from the setting’s page. For example, if you want to have the button on the list page, you have to check the “Show on the shop page”.

Share Button Settings

Text on Button
You can customize the text of the button. The default text on the button will be “Share on WhatsApp”.

Background Color of Button
You can customize the color of the button from here. The default color of the button is set to green pea(‘#275d43’).

Color Of the Button Text
You can customize the color of the text written on the button from here. The default color of the text is set to white(‘#FFFFFF’).

Apply to all Products
You can check this box if you want to have the button on all the products. If you have already checked this box, ‘apply to specific product’ functionality will get disabled.

Apply to Specific Product
If you want to have the button on specific product types, then you can select those products types from here.

To have the button on specific pages, you have to check it from the setting’s page. For example, if you want to have the button on the list page, you have to check the “Show on the shop page”.

Usage

To include the “Order on WhatsApp” and “Share on WhatsApp” buttons in your website, you must include the below page wise mentioned code in your twig files. This code will generate the buttons in the same place. There are some classes added in the HTML for your custom use of design.

Product Listing Page:

You can add the below code in your products loop on the “Product List” page. You have to pass the product id by replacing the “” string. To have the link of product Image in your WhatsApp message you have to pass the url of image.

Below is the sample code for where you can add above code in your twig file to get the buttons.

Note: Product detail page link will not be provided in WhatsApp message.

Product Detail Page:

You can add the below code to the “Product Detail” page. You have to pass the product id by replacing the “” string. To have the link of product Image in your WhatsApp message you have to pass the url of image.

Below is the sample code for where you can add above code in your twig file to get the buttons.

Note: Product detail page link will be provided in WhatsApp message.

Cart Page:

You can add the below code in the “Cart” page where you want to display the “WhatsApp Button”.

Note: Product detail page link will not be provided in WhatsApp message.

Checkout Page:

You can add the below code to the “Checkout” page.

You can place this one line code above the ending of form tag on the checkout page.

Brought to you by ZealousWeb


All versions of order-on-whatsapp with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zealousweb/order-on-whatsapp contains the following files

Loading the files please wait ....