From 94875d6ec598d7b1775c078d0d657d4d3394e958 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 15 Nov 2021 14:43:57 +0100 Subject: [PATCH] Add product page --- includes/pages/home.php | 3 +- includes/pages/wishlist-product-add.php | 42 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 includes/pages/wishlist-product-add.php diff --git a/includes/pages/home.php b/includes/pages/home.php index 84002935..ffcd9b83 100644 --- a/includes/pages/home.php +++ b/includes/pages/home.php @@ -21,7 +21,8 @@ $page->header();

Wishlist

- Create a wishlist + Create a wishlist + Add a product
diff --git a/includes/pages/wishlist-product-add.php b/includes/pages/wishlist-product-add.php new file mode 100644 index 00000000..1df4e0f7 --- /dev/null +++ b/includes/pages/wishlist-product-add.php @@ -0,0 +1,42 @@ + + */ + +use wishthis\Page; +use Brick\Schema\SchemaReader; +use Brick\Schema\Interfaces as Schema; +use Embed\Embed; + +$page = new page(__FILE__, 'Add a product'); + +$url = 'https://www.amazon.de/Adventskalender-2020-Schokolade-Weihnachtskalender-346g/dp/B08CTTP5JX'; +$embed = new Embed(); +$info = $embed->get($url); + +echo '
';
+var_dump($info->oembed);
+echo '
'; + +$page->header(); +?> +
+
+

Add a product

+ +
+
+ + +
+ + +
+
+
+ +footer();