VbzCart/docs/tables/ref country: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | tables
Jump to navigation Jump to search
imported>Woozle
(Created page with "==About== * '''Fields''': ** '''ShipZone''': a text code indicating the "shipping zone", which is a shorthand way of estimating shipping cost multipliers for non-domestic deliver...")
 
m (Woozle moved page VbzCart/VbzCart/tables/ref country to VbzCart/docs/tables/ref country without leaving a redirect: part 4/5)
 
(No difference)

Latest revision as of 01:57, 25 February 2024

About

  • Fields:
    • ShipZone: a text code indicating the "shipping zone", which is a shorthand way of estimating shipping cost multipliers for non-domestic delivery. The values are calculated in the clsShipZone class which is currently in shop.php and should eventually be broken out into a separate module for easier customization VBZ uses these codes:
      • US: United States (domestic)
      • CA: Canada (2x domestic costs) - would probably work for Mexico too, but we've never received any orders to be sent there...
      • NULL (default): everywhere else (4x domestic costs)
  • History:
    • 2012-01-11 created, along with Template:Vbzcart, so that ultimately we can rigorously get rid of the country being shown in the address when it's the same as the shipping origin (in vbz's case, "United States").

SQL

<section begin=sql /><mysql>CREATE TABLE `ref_country` (

 `ID`                  INT NOT NULL AUTO_INCREMENT,
 `Name`        VARCHAR(63) NOT NULL,
 `ShipZone` VARCHAR(4) DEFAULT NULL,
 PRIMARY KEY(`ID`)

) ENGINE = MYISAM;</mysql> <section end=sql />