2017 © Pedro Peláez
 

silverstripe-vendormodule shipping

Shipping methods for the SilverShop.

image

silvershop/shipping

Shipping methods for the SilverShop.

  • Friday, July 6, 2018
  • by anselmdk
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2,995 Installations
  • PHP
  • 2 Dependents
  • 2 Suggesters
  • 20 Forks
  • 6 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

SilverShop - Shipping Module

Latest Stable Version Latest Unstable Version CI Code Coverage Scrutinizer Quality Score Total Downloads, (*1)

Introduce shipping options to SilverShop, (*2)

Installation

composer require silvershop/shipping

Add the ShippingFrameWorkModifier to your modifiers config, eg:, (*3)

SilverShop\Model\Order:
  modifiers:
    - SilverShop\Shipping\ShippingFrameworkModifier

You need to use the new SteppedCheckout system to allow customers to set their address before they choose their shipping method. To set up steps, including the shippingmethod step, add the following to your mysite/_config/config.yml file:, (*4)

SilverShop\Page\CheckoutPage:
    steps:
        'membership': 'CheckoutStep_Membership'
        'contactdetails': 'CheckoutStep_ContactDetails'
        'shippingaddress': 'CheckoutStep_Address'
        'billingaddress': 'CheckoutStep_Address'
        'shippingmethod': 'CheckoutStep_ShippingMethod' #extra line for shipping method
        'paymentmethod': 'CheckoutStep_PaymentMethod'
        'summary': 'CheckoutStep_Summary'

If included, remove SteppedCheckout::setupSteps() from your _config.php file (SteppedCheckout::setupSteps() creates default checkout page steps no longer needed with the above YAML entries)., (*5)

To add the shipping estimation form to your CartPage template, add the following somewhere on your CartPage.ss template:, (*6)

    <% include ShippingEstimator %>

If you need some example tableshipping data to populate your site for testing/development, you can run the task: yoursite.tld/dev/tasks/PopulateTableShippingTask, (*7)

Architecture

ShippingPackage is a class used to encapsulate shipping data including: weight, dimensions, value, quantity., (*8)

ShippingMethod is the base class for different types of shipping calculation. These could either be flat rates, table based rates, or a, (*9)

TableShippingMethod has many TableShippingRate, where TableShippingRate extends RegionRestriction. Table shipping rates also have optional weight, volume, value, and quantity constraint fields., (*10)

DistanceShippingMethod has many DistanceShippingFare, and requires the shop_geocoding module to be present., (*11)

Region Restrictions

The RegionRestriction class serves as a base class for providing regionalised restrictions. Restrictions are specified by Country, State, and PostalCode. A value/rate can be given to each restriction. To work the appropriate rate, query for all the matching restrictions, and sort by cheapest., (*12)

The wildcard '*' means the restriction will match any region., (*13)

The Versions

06/07 2018

dev-master

9999999-dev

Shipping methods for the SilverShop.

  Sources   Download

BSD-3-Clause BSD2

The Requires

 

The Development Requires

shipping silverstripe shop ecommerce silvershop freight

15/12 2017

0.3.0

0.3.0.0

Shipping methods for the SilverShop.

  Sources   Download

BSD2

The Requires

 

shipping silverstripe shop ecommerce silvershop freight

14/10 2016

dev-injector

dev-injector

Shipping methods for the SilverShop.

  Sources   Download

BSD2

The Requires

 

shipping silverstripe shop ecommerce silvershop freight

12/06 2016

0.2.1

0.2.1.0

Shipping methods for the SilverShop.

  Sources   Download

BSD2

The Requires

 

shipping silverstripe shop ecommerce silvershop freight

08/12 2014

0.2.0

0.2.0.0

Optional shipping methods for the silverstripe shop module.

  Sources   Download

BSD2

The Requires

 

shipping silverstripe shop ecommerce freight