Coder Social home page Coder Social logo

chronoposthomedelivery's Introduction

ChronopostHomeDelivery

Allows you to choose between differents delivery modes offered by Chronopost. Activating one or more of them will let your customers choose which one they want.

Delivery types currently availables :

  • Chrono13
  • Chrono18
  • Chrono Classic (Delivery in Europe)
  • Chrono Express (Express delivery in Europe)
  • Fresh13
  • Others will be added in future versions

NB1 : You need IDs provided by Chronopost to use this module.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is Chronopost.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/chronopost-home-delivery-module:~2.0.0

Usage

First, go to your back office, tab Modules, and activate the module Chronopost. Then go to Chronopost configuration page, tab "Advanced Configuration" and fill the required fields.

After activating the delivery types you wih to use, new tabs will appear. With these, you can change the shipping prices according to the delivery type and the area, and/or activate free shipping for a given price and/or given area, or just activate it no matter the are and cart amount.

If you also have the ChronopostLabel module, you can then generate and download labels from the Chronopost Label page accessible from the toolbar on the left of the BackOffice, or directly from the order page.

Loop

###[chronopost.home.delivery]

Input arguments

Argument Description
area_id Mandatory ID of the area from which you want to know the prices.
delivery_mode_id Mandatory ID of the delivery mode of which you want to know the prices.

Output arguments

Variable Description
$SLICE_ID ID of the price slice
$MAX_WEIGHT Max weight for this slice price
$MAX_PRICE Max untaxed price of a cart for this price
$PRICE Price for this slice
$FRANCO Price of the Franco for this slice

###[chronopost.home.delivery.delivery.mode]

Input arguments

None

Output arguments

Variable Description
$ID The delivery mode ID in the table
$TITLE The delivery mode title (ex : Fresh13)
$CODE The delivery mode code (ex : 2R)
$FREESHIPPING_ACTIVE 0 or 1 depending on whether the total freeshipping is active or not
$FREESHIPPING_FROM Cart price needed for freeshipping

###[chronopost.home.delivery.area.freeshipping]

Input arguments

Argument Description
area_id ID of the area from which you want to know the free shipping minimum amount needed.
delivery_mode_id ID of the delivery mode of which you want to know the free shipping minimum amount needed.

Output arguments

Variable Description
$AREA_ID ID of the area
$DELIVERY_MODE_ID ID of the delivery mode
$CART_AMOUNT Cart amount needed for free shipping in this area and for this delivery mode

##Integration

Templates are examples of integration for the default theme of Thelia and should probably be modified to suit your website better.

chronoposthomedelivery's People

Contributors

lurivar avatar nicolasbarbey avatar lopes-vincent avatar julescournut avatar thomas-dsm avatar zawaze avatar trplucas avatar lucastrp25 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.