From 07128568ca8cf62b1ba2558a699f2a67e786514f Mon Sep 17 00:00:00 2001
From: Erik Thuning <boooink@gmail.com>
Date: Mon, 26 Feb 2024 15:14:41 +0100
Subject: [PATCH] Renamed the fragment product_form to product_details in
 preparation for readonly public views

---
 html/en/fragments.html  | 2 +-
 html/sv/fragments.html  | 2 +-
 include/NewPage.php     | 2 +-
 include/ProductPage.php | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/html/en/fragments.html b/html/en/fragments.html
index 4219832..da67ed4 100644
--- a/html/en/fragments.html
+++ b/html/en/fragments.html
@@ -152,7 +152,7 @@
   </form>
 </div>
 
-¤¤ product_form ¤¤
+¤¤ product_details ¤¤
 <div id="product-details">
   <h2>Product details</h2>
   <form id="product-data"
diff --git a/html/sv/fragments.html b/html/sv/fragments.html
index 36c2c20..abfafa1 100644
--- a/html/sv/fragments.html
+++ b/html/sv/fragments.html
@@ -152,7 +152,7 @@
   </form>
 </div>
 
-¤¤ product_form ¤¤
+¤¤ product_details ¤¤
 <div id="product-details">
   <h2>Artikeldata</h2>
   <form id="product-data"
diff --git a/include/NewPage.php b/include/NewPage.php
index dd0e15e..ffe6a48 100644
--- a/include/NewPage.php
+++ b/include/NewPage.php
@@ -49,7 +49,7 @@ class NewPage extends Page {
                               'info' => $fields,
                               'label' => '',
                               'hidden' => 'hidden'),
-                        $this->fragments['product_form']);
+                        $this->fragments['product_details']);
         return $out;
     }
 }
diff --git a/include/ProductPage.php b/include/ProductPage.php
index 4edd51d..c1904bf 100644
--- a/include/ProductPage.php
+++ b/include/ProductPage.php
@@ -87,7 +87,7 @@ class ProductPage extends Page {
                 $fields['checkout_hidden'] = '';
             }
         }
-        $out = replace($fields, $this->fragments['product_form']);
+        $out = replace($fields, $this->fragments['product_details']);
         $out .= replace($fields, $this->fragments['product_meta']);
         return $out;
     }