Download the PHP package integer-net/magento2-shippingpreselection without Composer

On this page you can find all versions of the php package integer-net/magento2-shippingpreselection. 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 magento2-shippingpreselection

[![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) ![Supported Magento Versions][ico-compatibility] [![Maintainability][ico-maintainability]][link-maintainability]

⚠️ THIS PACKAGE IS NO LONGER MAINTAINED

It was provided open source "as is" on demand, but since we do not even use this approach in our own projects anymore, we won't make any effort to keep this up to date.

Do you need help with implementing shipping estimation on the cart page for the default country? Contact [email protected] with your inquiry.


IntegerNet ShippingPreselection (AutoShipping)

This module preselects the cheapest shipping method by filling shipping address with mock data and default country/region/postcode of the current storeview.

Upon entering checkout, PayPal Express or PayOne pages, the mock data is removed from shipping address.

Installation

  1. Install it into your Magento 2 project with composer:

  2. Enable module

Configuration

In general, make sure your configuration settings meet requirements:

1) Add selectedShippingCountry select to Mage_Checkout::cart.phtml

  1. Add shipping country script to Mage_Checkout::cart/js/cart.phtml

3) Set config value for the mock data integernet/shipping_preselection/mock_data to custom value if desired

4) If you have an altered cart query for GraphQl, you need to override IntegerNet\ShippingPreselection\ViewModel\ShippingAddressMutation accordingly.

.

Please mind: The template provided is supposed to work with table rates / one shipping method.

If you have several shipping methods and through changes made in cart - like quantity changes - the best available method changes, this will not be recognized by the module (because a shipping method is already in place). You can solve this by checking client-side in the cart, or adding a check backend-wise.

Extending configuration

Override config values for integernet/shipping_preselection/mock_clearance_urls or hook into the service to modify behaviour for pages where the shipping address should be (un-)mocked.

Known issues

1. When aborting PayPal Express and return to cart, the shipping method isn't displayed anymore

Paypal doesn't properly set the telephone address attribute, as it is called differently in its response. You can make the telephone field nullable in a etc/schema.graphql of your own

interface CartAddressInterface {
    telephone: String
}

input CartAddressInput {
    telephone: String
}

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of magento2-shippingpreselection with dependencies

PHP Build Version
Package Version
Requires php Version ~7.3||~7.4
magento/framework Version ^103.0.0
magento/module-quote Version ^101.2
magento/module-customer Version ^103.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 integer-net/magento2-shippingpreselection contains the following files

Loading the files please wait ....