diff --git a/src/.env.example b/src/.env.example new file mode 100644 index 0000000..5fb71e7 --- /dev/null +++ b/src/.env.example @@ -0,0 +1,6 @@ +EVENT_TICKET_PRICE="55" +ENHANCER_TICKET_PRICE="20" +DB_HOST="localhost" +DB_USER="root" +DB_PASS="root" +POSTMARK_API_KEY="special" \ No newline at end of file diff --git a/src/functions.php b/src/functions.php new file mode 100644 index 0000000..34ff29d --- /dev/null +++ b/src/functions.php @@ -0,0 +1,64 @@ + 0) { + echo '
  • +
    +
    ' . $name . '
    + ' . $description . ' +
    + ' . '$' . number_format(($price/100), 2) . ' +
  • '; + } + +} + +function shoppingCartTotal($price) +{ + echo '
  • + Total + ' . '$' . number_format(($price/100), 2) . ' +
  • '; +} \ No newline at end of file diff --git a/views/step1.php b/views/step1.php index f0924b3..1fc0012 100644 --- a/views/step1.php +++ b/views/step1.php @@ -77,7 +77,7 @@

    Your Order

    -
    +
    diff --git a/views/step2.php b/views/step2.php index 31acae6..710f3cd 100644 --- a/views/step2.php +++ b/views/step2.php @@ -5,23 +5,23 @@ Your cart
      -
    • -
      -
      Product name
      - Brief description -
      - $12 -
    • -
    • - Total - $20 -
    • + + + + +

    Billing address

    + +