What is php shipping

Shipping and Logistics System in PHP and Bootstrap Free Download

Shipping and Logistics by simplest definition is a process of transporting goods from one place to another. The purpose of this project is to manage the records and as well as to monitor every cargo from source to destination location. This is an online platform designed and developed in PHP and Bootstrap.

How the system works?

The system can be accessed by the administrator and encoders; admin has the full control of the system whereas the encoders can only encoder information into the platform. Step 1 is to encode first the customer information such as the name, address and contact number. Step 2, information of drivers will also be encoded in the system. Step 3, next is the shipper information (please refer to the module below), step 4, is to encode the vehicle information. After all the records were encoded the admin can later manage those records (update, delete, and add new). Step 5, it is now the encoding of shipping details; all information from this module is very necessary for the proper monitoring of goods and items, information includes the shipping code (this is used by the customers to monitor the status of their shipment), shipping details, shipper name, pickup and delivery date, the information of the driver, and the status of the transaction. Every transaction will be marked as delivered if the transaction was properly delivered to its destination, cancelled if the transaction was cancelled by the customer or by the shipper, to ship means that the transaction is ready for shipment and to receive if the items is ready for delivery. A graphical report of every type of transaction can be also generated by the system. Lastly, driver’s accomplishment report can also be printed by the system.

Who can benefit from this Shipping and Logistics System?

  • Administration – any information management system can be a great help to any institution and industry, to be specific, this system can properly monitor every transaction of shipping and logistics and it would be very beneficial to the management especially in the record keeping and report generation.
  • Customer – they can now track their goods online with the implementation of this kind of project.
Читайте также:  Css disabled div contents

Login – one of the very basic security feature of any systems is the login form, this prevents unauthorized users to gain access to the system records. In here, the admin or the encoders will need to input their username and password to gain access to the system.

Shipping and Logistics System Login Form

  • Number of customers
  • Number of drivers
  • Number of vehicles
  • Number of Shipping Transactions

The image below is the dashboard of the project; it shows the number of customers, drivers, vehicles and shipping transactions.

Shipping and Logistics System Dashboard

Customer Info

The image below represents the customer management module, in this module; the admin can add, update, delete and search for customer information, while the encoders can only add new records. Information the customer that needs to encode in the system are the following:

Shipping and Logistics System Customer Management

  • Name
  • Address
  • City
  • ZIP Code
  • Contact Number
  • Email Address
  • Remarks

Driver Information

Image below is the driver encoding and management module of the system. In this module, the admin are allowed to add, update and delete record whereas the encoders are only limited to encoding new entry. The following are the information needed to encode in the system.

  • Name
  • Contact Number
  • Email Address
  • City
  • ZIP Code
  • Date of Birth
  • Profile Image

Shipping and Logistics System Driver Info EncodingShipping and Logistics System Driver Info Management

Shipper Information

Image below is the shipper encoding and management module of the system. In this module, the admin are allowed to add, update and delete record whereas the encoders are only limited to encoding new entry. The following are the information needed to encode in the system.

  • Name
  • Contact Number
  • Email Address
  • City
  • ZIP Code
  • Date of Birth
  • Profile Image

Shipping and Logistics System Shipper Info EncodingShipping and Logistics System Shipper Info Management

Vehicle Information

Image below is the vehicle encoding and management module of the system. In this module, the admin are allowed to add, update and delete record whereas the encoders are only limited to encoding new entry. The following are the information needed to encode in the system.

  • Owner Name
  • Vehicle Type
  • Fuel Type
  • Plate Number
  • Plate Expiry
  • Weight
  • Mileage
  • Last Inspection Date

Shipping and Logistics System Vehicle Info EncodingShipping and Logistics System Vehicle Info Management

Shipping Transaction

This is the core feature of the system; in this module the shipping details are encoded such as the shipping code wherein the customer will use the code in order to monitor the status of their transaction.

Shipping and Logistics System Shipping Transaction Encoding

  • Shipping Code
  • Customer Name
  • Shipping Details
  • Shipper Name
  • Pickup Date
  • Delivery Date
  • Driver Name
  • Driver Contact
  • Driver’s Fee
  • Transaction Amount
  • Status – delivered, cancelled, to ship, to receive
  • Remarks

User Management

This module will allow the administrator to manage the users who can access the system and perform transactions.

  • Complete name
  • Email Address
  • Contact Information
  • Username
  • Password
  • Account Type (admin, encoder)
  • Account Status (activated, deactivated)
Читайте также:  Php mysql time zones

Shipping and Logistics System User Management EncodingShipping and Logistics System User Management

Driver Accomplishment Report (filter by date from – date to)

This feature of the project will print the name of the drivers and the drivers fee for a specified time frame.

Shipping and Logistics System Driver Accomplishment Report

  • Name
  • Total Amount (Driver’s Fee)

Driver Accomplishment Report Details

The system can also print out a detailed report of driver’s accomplishment.

Shipping and Logistics System Driver Accomplishment Report Details

  • Shipping Code
  • Driver’s Fee
  • Customer Name
  • Date Delivered

Pie Graph on Shipping Transaction Status (delivered, cancelled, to ship, to receive)

A graphical report on the status of transaction can also be generated in the system.

Shipping and Logistics System Shipping Transaction Status Pie Graph

You may visit our facebook page for more information, inquiries and comments.

Hire our team to do the project.

Post navigation

Источник

Php shipping class woocommerce api code example

So you get: Solution 1: First free shipping method has to be enabled with option «A valid free shipping coupon»… Then you need to set the desired coupon codes with option «Allow free shipping» enabled. The following code will set all shipping methods costs to zero when a valid coupon code (with option «Allow free shipping» enabled) will be applied.

Woocommerce shipping method with 3.0 api

You need to add the calculate_shipping function to your class

 /** * function calculate_shipping. * * @access public * @param mixed $package * @return void */ public function calculate_shipping( $package = array() ) < $rate = array( 'id' =>'My Method id', 'label' => 'New method', 'cost' => 0, 'calc_tax' => 'per_item' ); $this->add_rate( $rate ); > > 

Anyway, i think you don’t need to add a new shipping method just to show some info at the cart, instead you can use these actions:

add_action( 'woocommerce_review_order_before_submit', 'add_tracking_notification', 12 ); add_action('woocommerce_proceed_to_checkout', 'add_tracking_notification'); function add_tracking_notification() < echo '
This is a custom message
'; >

WooCommerce Shipping API shipping methods Code, $rate_table = array(); $shipping_methods = WC()->shipping->get_shipping_methods(); foreach($shipping_methods as $shipping_method)< $shipping_method->init(); foreach

Set product shipping class based on metadata in WooCommerce

You have some minor mistakes

  • You use $product->get_meta(.. while $product is not defined
  • The comparison operator in an if statement is == , not =
  • Use woocommerce_admin_process_product_object to save instead of the outdated woocommerce_process_product_meta hook
// Save function action_woocommerce_admin_process_product_object( $product ) < // Get meta $title = $product->get_meta( 'meta_easyfatt_libero_1' ); if ( $title == 'Trenta' ) < // The targeted shipping class ID to be set for the product $shipping_class_id = 1182; // Set the shipping class ID $product->set_shipping_class_id( $shipping_class_id ); > > add_action( 'woocommerce_admin_process_product_object', 'action_woocommerce_admin_process_product_object', 10, 1 ); 

Shipping class woocommerce api Code Example, follow. grepper; search snippets; faq; usage docs ; install grepper; log in; signup

Читайте также:  Размер файла си шарп

Set all shipping methods cost to zero for a Free shipping coupon in Woocommerce

First free shipping method has to be enabled with option «A valid free shipping coupon»…

Then you need to set the desired coupon codes with option «Allow free shipping» enabled.

The following code will set all shipping methods costs to zero when a valid coupon code (with option «Allow free shipping» enabled) will be applied.

Update: Hide «Free shipping» method and append shipping label titles with » (free) «

add_filter( 'woocommerce_package_rates', 'coupon_free_shipping_customization', 20, 2 ); function coupon_free_shipping_customization( $rates, $package ) < $has_free_shipping = false; $applied_coupons = WC()->cart->get_applied_coupons(); foreach( $applied_coupons as $coupon_code )< $coupon = new WC_Coupon($coupon_code); if($coupon->get_free_shipping()) < $has_free_shipping = true; break; >> foreach( $rates as $rate_key => $rate )< if( $has_free_shipping )< // For "free shipping" method (enabled), remove it if( $rate->method_id == 'free_shipping') < unset($rates[$rate_key]); >// For other shipping methods else < // Append rate label titles (free) $rates[$rate_key]->label .= ' ' . __('(free)', 'woocommerce'); // Set rate cost $rates[$rate_key]->cost = 0; // Set taxes rate cost (if enabled) $taxes = array(); foreach ($rates[$rate_key]->taxes as $key => $tax)< if( $rates[$rate_key]->taxes[$key] > 0 ) $taxes[$key] = 0; > $rates[$rate_key]->taxes = $taxes; > > > return $rates; > 

Code goes in function.php file of your active child theme (or active theme).

Tested and works. It should works also for you.

Sometimes, you should may be need to refresh shipping methods :
1) Empty cart first.
2) Go to shipping Zones settings, then disable/save and re-enable/save the related shipping methods.

If you want to achieve the same but whenever there is a free shipping method available (not only applied coupon, but also cart total is above certain price), you can use this:

add_filter( 'woocommerce_package_rates', 'wc_apply_free_shipping_to_all_methods', 10, 2 ); function wc_apply_free_shipping_to_all_methods( $rates, $package ) < if( isset( $rates['free_shipping:11'] ) ) < unset( $rates['free_shipping:11'] ); foreach( $rates as $rate_key =>$rate ) < // Append rate label titles (free) $rates[$rate_key]->label .= ' ' . __('(free)', 'woocommerce'); // Set rate cost $rates[$rate_key]->cost = 0; // Set taxes rate cost (if enabled) $taxes = array(); foreach ($rates[$rate_key]->taxes as $key => $tax)< if( $rates[$rate_key]->taxes[$key] > 0 ) $taxes[$key] = 0; > $rates[$rate_key]->taxes = $taxes; > > return $rates; > 

Notice, that after free_shipping there is a :11 . Prior to WooCommerce 2.6, the details of shipping method «Free Shipping» were stored under array element $rates[‘free_shipping’] . Now, however, it is stored as $rates[‘free_shipping:shipping_zone_instance_id’] where shipping_zone_instance_id is the shipping zone instance id of the shipping method. You can check the instance id of the shipping method by inspecting the «Free Shipping» in admin panel, or opening it in new tab and looking at the url http://prntscr.com/jd2zjy.

Woocommerce free shipping class php Code Example, follow. grepper; search snippets; faq; usage docs ; install grepper; log in; signup

Источник

Оцените статью