Skip to the content
Documentation

Recently added

Recent ratings Recent changes Recent comments Atom feed

26465 added pages

Saturday May 11 2024

  1. Starting the daemon manually Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The daemon bin/php/ezasynchronouspublisher.php reads the publishing queue and publishes the drafts in it. Run it as the user the web server runs as, from the root of the installation, so that the files it writes stay wri…

  2. Various configurations Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The publishing queue is a table in the database, so the rule is one daemon per database . Two daemons reading the same queue would take the same drafts. Setup Daemons One server, one installation, one database One daemon…

  3. Authentication Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    Every content call of the REST API runs as a user of the site, and is checked against that user's roles and policies. With the shipped rest.ini [Authentication] RequireAuthentication=enabled a call needs one of these cre…

  4. Extension functionality Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    An extension can add its own routes to the REST API: a provider registers a prefix below /api, its routes and their versions, and controllers answer them. Authentication, permissions, CORS, caching and the JSON output co…

  5. Getting started with the Exponential REST API Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    To call the REST API of an Exponential 6 site you need a user account on the site with the policies for what you want to do (at least content/read), and a credential: a personal API key or an OAuth token. Sign in to the…

  6. Installation Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    On Exponential 6 the REST API needs no installation: the framework is in the kernel, and the content API extension ezprestapi is installed by Composer and activated on every new installation. What a site has to check: Th…

  7. REST API configuration settings Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The REST interface is configured in rest.ini. The kernel's settings/rest.ini holds the defaults, ezprestapi adds its provider in its own rest.ini.append.php, and a site overrides in settings/override/rest.ini.append.php.…

  8. Resources Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The content API (ezprestapi) answers below /api/ezp/<version> (and the same below /api/ezpl/<version>). Version 1 reads; version 2 reads and writes. GET /content/node/<id>: one node (v1: yes, v2: yes) GET /content/node/<…

  9. Assigning VAT types to products Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    A product's VAT type is chosen in its edit form, in the VAT type list of its Price or Multi-price attribute, together with Price inc. VAT or Price ex. VAT . The list holds the fixed VAT types of Store > VAT types and, wh…

  10. Canadian Provincial (PST) and Federal (GST) Sales Taxes /... New

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

  11. Creating new VAT handlers Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    A VAT handler decides the VAT percentage of products with the dynamic VAT type. The built-in handler applies the VAT rules; a handler of your own can apply any logic: by section, by customer group, by date. Write it in a…

  12. Displaying VATs on the actual site Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    How VAT appears to customers depends on the approach the shop uses (see Three approaches to VAT charging ). VAT per product A product page shows the price including VAT. In the basket each line shows the VAT percentage o…

  13. Managing VAT rules Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    VAT charging rules are used by the built-in VAT handler (Handler=ezdefault) for products with the dynamic VAT type. A rule says: for customers from this country, and products of these categories, charge this VAT type. Th…

  14. Managing VAT types Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    VAT types are managed under Store > VAT types (/shop/vattype, policy shop/setup). The page lists every fixed VAT type with its name and percentage, all editable at once. Creating a VAT type Press New VAT type . A new lin…

  15. Managing product categories Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    Product categories group products for VAT rules: "Food", "Books", "Personal transport". They are managed under Store > Product categories (/shop/productcategories, policy shop/setup). A product gets its category through…

  16. Product category Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    With country dependent VAT, the VAT rules can depend on the product's category. A product gets its category through an attribute of the Product category datatype (ezproductcategory) in its class. The categories themselve…

  17. Three approaches to VAT charging Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The webshop supports three ways of charging VAT. Choose the simplest one that fits. 1. VAT per product Each product has a fixed VAT type, chosen when it is edited; a product class can set a default (see Assigning VAT typ…

  18. User country Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    With country dependent VAT, the VAT a customer pays depends on the customer's country. Exponential knows a user's country from an attribute of the Country datatype (ezcountry) in the user class, and asks for it at checko…

  19. VAT settings Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The VAT handler and the attributes it reads are set in settings/shop.ini, group [VATSettings]. Put your values in settings/override/shop.ini.append.php, or in an extension's settings/shop.ini.append.php. Setting Shipped…

  20. Clearing the view cache Updated

    · Technical manual 6.x · Added 04:12 am · Written by Graham Brookins

    The view cache is cleared automatically when content is published, and can be cleared by hand in the administration and from a shell. What publishing clears When a version of an object is published (also the first one),…