2017 © Pedro Peláez
 

silverstripe-module silverstripe-shop-shipping

Optional shipping methods for the silverstripe shop module.

image

burnbright/silverstripe-shop-shipping

Optional shipping methods for the silverstripe shop module.

  • Monday, February 29, 2016
  • by jedateach
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,010 Installations
  • PHP
  • 2 Dependents
  • 2 Suggesters
  • 9 Forks
  • 7 Open issues
  • 2 Versions
  • 0 % 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

29/02 2016

dev-master

9999999-dev

Optional shipping methods for the silverstripe shop module.

  Sources   Download

BSD2

The Requires

 

shipping silverstripe shop ecommerce 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