2017 © Pedro Peláez
 

magento2-module checkout-city

A module that adds checkout city field to checkout quote shipping address

image

shopgo/checkout-city

A module that adds checkout city field to checkout quote shipping address

  • Wednesday, June 15, 2016
  • by akai-z
  • Repository
  • 3 Watchers
  • 5 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Checkout City

Contents

Synopsis

A module that adds checkout city field to checkout quote shipping address., (*1)

Overview

Checkout City is a module that adds checkout city field to checkout quote shipping address. Thus, making destination city available for third-party shipping methods., (*2)

Installation

Below, you can find two ways to install the shipping core module., (*3)

First, make sure that Composer is installed: https://getcomposer.org/doc/00-intro.md, (*4)

Make sure that Packagist repository is not disabled., (*5)

Run Composer require to install the module:, (*6)

php <your Composer install dir>/composer.phar require shopgo/checkout-city:*

2. Clone the checkout-city repository

Clone the checkout-city repository using either the HTTPS or SSH protocols., (*7)

2.1. Copy the code

Create a directory for the checkout city module and copy the cloned repository contents to it:, (*8)

mkdir -p <your Magento install dir>/app/code/ShopGo/CheckoutCity
cp -R <checkout-city clone dir>/* <your Magento install dir>/app/code/ShopGo/CheckoutCity

Update the Magento database and schema

If you added the module to an existing Magento installation, run the following command:, (*9)

php <your Magento install dir>/bin/magento setup:upgrade

Verify the module is installed and enabled

Enter the following command:, (*10)

php <your Magento install dir>/bin/magento module:status

The following confirms you installed the module correctly, and that it's enabled:, (*11)

example
    List of enabled modules:
    ...
    ShopGo_CheckoutCity
    ...

Create a checkout shipping rates validator for your custom shipping method

In order to validate checkout city field changes when your custom shipping module is used, you have to create a shipping rate validator in your custom shipping module. You can do that by following this gruide's instructions: http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_carrier.html, (*12)

In your validation rules JS file (view/frontend/web/js/model/shipping-rates-validation-rules.js), make sure that you add "city" field to validation rules:, (*13)

'city': {
    'required': true
}

Tests

TODO, (*14)

Contributors

License

Open Source License, (*15)

The Versions

15/06 2016

dev-master

9999999-dev

A module that adds checkout city field to checkout quote shipping address

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0
  • magento/framework 100.0.*
  • magento/module-checkout 100.0.*
  • magento/module-quote 100.0.*

 

by Avatar ShopGo
by Ammar
by Emad

15/06 2016

dev-develop

dev-develop

A module that adds checkout city field to checkout quote shipping address

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0
  • magento/framework 100.0.*
  • magento/module-checkout 100.0.*
  • magento/module-quote 100.0.*

 

by Avatar ShopGo
by Ammar
by Emad