diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 9493531..f90bf6c 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -12,7 +12,7 @@ public function __construct(private readonly ProductService $products) {} public function index(string $locale) { - $page = StoicPage::firstWhere('slug', 'home'); + $page = StoicPage::localized('home'); if (! $page) { abort(404); diff --git a/app/Http/Controllers/LegalPageController.php b/app/Http/Controllers/LegalPageController.php index ce69624..d2473ea 100644 --- a/app/Http/Controllers/LegalPageController.php +++ b/app/Http/Controllers/LegalPageController.php @@ -45,7 +45,7 @@ public function cookies(string $locale) private function show(string $slug) { - $page = StoicPage::firstWhere('slug', $slug); + $page = StoicPage::localized($slug); if (! $page) { abort(404); diff --git a/app/Models/StoicPage.php b/app/Models/StoicPage.php index e44515e..6290bd0 100644 --- a/app/Models/StoicPage.php +++ b/app/Models/StoicPage.php @@ -2,16 +2,32 @@ namespace App\Models; +use App\Services\Stoic; use Illuminate\Database\Eloquent\Model; use JacobJoergensen\LaravelPaper\Attributes\ContentPath; use JacobJoergensen\LaravelPaper\Attributes\Driver; use JacobJoergensen\LaravelPaper\Attributes\Timestamps; use JacobJoergensen\LaravelPaper\Paper; +// Points at the default locale (el), which Stoic writes every field to. Other +// locales hold only the translatable fields — use localized() to get a page +// with those layered on top for the current locale. #[Driver("markdown")] -#[ContentPath("resources/stoic/content/pages")] +#[ContentPath("resources/stoic/content/el/pages")] #[Timestamps] class StoicPage extends Model { use Paper; + + /** + * The page in the current locale: the default-locale entry, with the + * current locale's non-empty fields (and body) swapped in. Untranslated + * fields fall back to the default locale. + */ + public static function localized(string $slug): ?static + { + $page = static::firstWhere('slug', $slug); + + return $page?->forceFill(Stoic::localeOverrides("pages/{$slug}.md")); + } } diff --git a/app/Services/Stoic.php b/app/Services/Stoic.php index c236b3b..ce7de9e 100644 --- a/app/Services/Stoic.php +++ b/app/Services/Stoic.php @@ -4,6 +4,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Storage; +use Spatie\YamlFrontMatter\YamlFrontMatter; use Symfony\Component\Yaml\Yaml; class Stoic @@ -29,6 +30,42 @@ public static function presets(): array return static::$presets; } + // Stoic's default locale (first in i18n.locales), or null when i18n is off. + // Its content folder holds every field; other locales only translatable ones. + public static function defaultLocale(): ?string + { + static::loadConfig(); + return static::$config["i18n"]["locales"][0]["code"] ?? null; + } + + // The current locale's translated fields for a content file (path relative + // to a locale folder, e.g. "pages/home.md"), with the markdown body as + // `content`. Empty when the current locale is the default one (or i18n is + // off), the file doesn't exist, or a field is left blank — so layering this + // over the default-locale values falls back to them field by field. + public static function localeOverrides(string $file): array + { + $default = static::defaultLocale(); + $locale = app()->getLocale(); + + if ($default === null || $locale === $default) { + return []; + } + + $path = resource_path("stoic/content/{$locale}/{$file}"); + + if (!is_file($path)) { + return []; + } + + $document = YamlFrontMatter::parse(file_get_contents($path)); + + return array_filter( + [...$document->matter(), "content" => trim($document->body())], + fn($value) => filled($value), + ); + } + // Returns the public URL for a stoic image at a given preset. public static function image(string $filename, string $preset): string { diff --git a/app/Services/StoicSettings.php b/app/Services/StoicSettings.php index 6f4804e..39f0036 100644 --- a/app/Services/StoicSettings.php +++ b/app/Services/StoicSettings.php @@ -6,13 +6,19 @@ /** * Site-wide, marketing-editable settings from Stoic's `settings` singleton - * (resources/stoic/content/settings.md). Read directly rather than through a - * Paper model: Paper models map to a folder of entries, and this is one file - * at the content root. Legal and transactional details (address, ΑΦΜ, phone) + * (resources/stoic/content/{locale}/settings.md). Read directly rather than + * through a Paper model: Paper models map to a folder of entries, and this is + * one file per locale. Legal and transactional details (address, ΑΦΜ, phone) * live in boboko-core's StoreDetails instead. * - * Bound as scoped in AppServiceProvider, so the file is parsed once per - * request (or queued job) and edits in Stoic show up on the next one. + * Stoic writes every field to the default locale's file and only the + * translatable ones (e.g. meta_description) to the others, so the current + * locale's file is layered over the default one; empty values fall through. + * + * Bound as scoped in AppServiceProvider, so files are parsed at most once per + * locale per request (or queued job) and edits in Stoic show up on the next one. + * The locale is read per call, not at construction, so a mail rendered with + * ->locale() still gets its own locale's values. */ class StoicSettings { @@ -22,26 +28,20 @@ class StoicSettings 'tiktok' => 'TikTok', ]; - private array $data; - - public function __construct() - { - $path = resource_path('stoic/content/settings.md'); - - $this->data = is_file($path) - ? YamlFrontMatter::parse(file_get_contents($path))->matter() - : []; - } + /** @var array> keyed by locale */ + private array $data = []; public function get(string $key, mixed $default = null): mixed { - return filled($this->data[$key] ?? null) ? $this->data[$key] : $default; + $value = $this->data()[$key] ?? null; + + return filled($value) ? $value : $default; } /** * Absolute og:image URL for a Stoic image field value (the page's own, else - * this file's default), or null. Image fields store a comma-separated list; - * only the first is used. + * the default from settings.md), or null. Image fields store a + * comma-separated list; only the first is used. */ public function ogImageUrl(?string $pageImage = null): ?string { @@ -67,4 +67,30 @@ public function socialLinks(): array return $links; } + + private function data(): array + { + $locale = app()->getLocale(); + + return $this->data[$locale] ??= $this->load(); + } + + private function load(): array + { + $default = Stoic::defaultLocale(); + + if ($default === null) { + return $this->parse(resource_path('stoic/content/settings.md')); + } + + return array_merge( + $this->parse(resource_path("stoic/content/{$default}/settings.md")), + Stoic::localeOverrides('settings.md'), + ); + } + + private function parse(string $path): array + { + return is_file($path) ? YamlFrontMatter::parse(file_get_contents($path))->matter() : []; + } } diff --git a/docker/stoic/stoic_config.yml b/docker/stoic/stoic_config.yml index 817b0a0..5b92429 100644 --- a/docker/stoic/stoic_config.yml +++ b/docker/stoic/stoic_config.yml @@ -9,6 +9,14 @@ content_path: /content media_path: /media thumbs_path: /var/www/html/storage/app/public/stoic/ repository_path: /app +# First locale is Stoic's default: it holds every field, the others only the +# translatable ones (content/{locale}/...). Codes match app.available_locales. +i18n: + locales: + - code: el + label: Ελληνικά + - code: en + label: English presets: - code: large mode: resize diff --git a/resources/stoic/content/pages/cookies-policy.md b/resources/stoic/content/el/pages/cookies-policy.md similarity index 100% rename from resources/stoic/content/pages/cookies-policy.md rename to resources/stoic/content/el/pages/cookies-policy.md diff --git a/resources/stoic/content/pages/home.md b/resources/stoic/content/el/pages/home.md similarity index 100% rename from resources/stoic/content/pages/home.md rename to resources/stoic/content/el/pages/home.md diff --git a/resources/stoic/content/pages/privacy-policy.md b/resources/stoic/content/el/pages/privacy-policy.md similarity index 100% rename from resources/stoic/content/pages/privacy-policy.md rename to resources/stoic/content/el/pages/privacy-policy.md diff --git a/resources/stoic/content/pages/shipping-returns.md b/resources/stoic/content/el/pages/shipping-returns.md similarity index 100% rename from resources/stoic/content/pages/shipping-returns.md rename to resources/stoic/content/el/pages/shipping-returns.md diff --git a/resources/stoic/content/pages/terms-and-conditions.md b/resources/stoic/content/el/pages/terms-and-conditions.md similarity index 98% rename from resources/stoic/content/pages/terms-and-conditions.md rename to resources/stoic/content/el/pages/terms-and-conditions.md index a3714bf..c0f3923 100644 --- a/resources/stoic/content/pages/terms-and-conditions.md +++ b/resources/stoic/content/el/pages/terms-and-conditions.md @@ -1,17 +1,15 @@ --- -name: "Όροι & Προϋποθέσεις" +name: "Όροι & Προϋποθέσεις Terms" slug: "terms-and-conditions" - meta_title: "" meta_description: "" og_image: "" noindex: true - --- ## 1. Γενικά -Το ηλεκτρονικό κατάστημα 3DEALER (εφεξής «το Κατάστημα» ή «3DEALER») λειτουργεί από την επιχείρηση 3DEALER, με έδρα στην Πάρου 31, Κυψέλη, ΤΚ 11255, Αθήνα. +Το ηλεκτρονικό κατάστημα 3DEALER (εφεξής «το Κατάστημα» ή «3DEALER») λειτουργεί από την επιχείρηση 3DEALER, με έδρα στην Πάρου 31, Κυψέλη, ΤΚ 11255, Αθήνα. test english **ΑΦΜ:** {store_tax_identifier} **ΓΕΜΗ:** {store_registration_number} diff --git a/resources/stoic/content/settings.md b/resources/stoic/content/el/settings.md similarity index 56% rename from resources/stoic/content/settings.md rename to resources/stoic/content/el/settings.md index 1e0339d..596b62b 100644 --- a/resources/stoic/content/settings.md +++ b/resources/stoic/content/el/settings.md @@ -1,5 +1,5 @@ --- -meta_description: "Your local 3Dealer of 3D printed, high-quality products. Geek culture, decoration, fun and skulls, and custom orders." +meta_description: "" og_image: "" facebook_url: "https://www.facebook.com/3Dealer.gr/" instagram_url: "https://www.instagram.com/3dealer.gr/" diff --git a/resources/stoic/content/en/pages/cookies-policy.md b/resources/stoic/content/en/pages/cookies-policy.md new file mode 100644 index 0000000..fb07379 --- /dev/null +++ b/resources/stoic/content/en/pages/cookies-policy.md @@ -0,0 +1,132 @@ +--- +name: "Cookie Policy" +meta_title: "" +meta_description: "" +--- + +This Cookie Policy explains how 3DEALER uses cookies and similar technologies when you visit the online store. + +## 1. What cookies are + +Cookies are small text files stored on your device when you visit a website. They are used to make the website work properly, store preferences, collect statistics and, where permitted, show or measure advertising. + +Besides cookies, we may also use similar technologies, such as pixels and tags. + +## 2. Which cookies we use + +3DEALER uses different categories of cookies, depending on their purpose. + +### Essential cookies + +Essential cookies are those required for the online store to work correctly and securely. + +They can be used, among other things, for: + +* running the shopping cart, +* keeping your session, +* signing in to your account, +* completing checkout, +* keeping the website secure, +* storing your cookie choices. + +These cookies cannot be turned off through the consent tool, because without them some basic functions of the online store would not be available. + +### Functionality cookies + +Functionality cookies are used to store choices and preferences that improve your experience of the online store. + +**@TODO: List the specific functionality cookies used by Boboko/3DEALER.** + +### Analytics cookies + +Analytics cookies are used to understand how visitors use the online store. + +3DEALER uses services such as **Google Analytics** and may use **Google Tag Manager** to manage the related tags. + +The information collected may include details such as: + +* which pages you visit, +* how long you stay on the website, +* which page you came from, +* the device and browser you use, +* general information about how you interact with the website. + +These cookies are only activated in line with your consent choices, where required by applicable law. + +### Advertising and marketing cookies + +3DEALER uses advertising measurement and marketing technologies, such as: + +* **Meta Pixel** +* **TikTok Pixel** + +These technologies can be used to measure how effective advertising is, to understand interactions with ads and, where supported and permitted, to show more relevant ads. + +The related cookies and pixels are only activated in line with your consent choices, where required. + +**@TODO: Confirm the exact Meta/TikTok cookies and events used in production.** + +## 3. Cookie table + +The table below should be updated based on the cookies actually used in the production environment. + +| Cookie / Technology | Provider | Category | Purpose | Duration | +| ------------------- | ---------------- | --------- | ------------------------------------------- | -------- | +| @TODO | Boboko / 3DEALER | Essential | Store operation | @TODO | +| @TODO | Boboko / 3DEALER | Essential | Cart / checkout | @TODO | +| @TODO | Google | Analytics | Usage statistics | @TODO | +| @TODO | Meta | Marketing | Advertising measurement | @TODO | +| @TODO | TikTok | Marketing | Advertising measurement | @TODO | +| @TODO | hCaptcha | Security | Protection against automated/malicious use | @TODO | + +**@TODO: The table must be completed after checking the production site, ideally with a cookie scan.** + +## 4. Consent to the use of cookies + +On your first visit to the online store, a cookie consent tool is shown, where you can choose which categories of non-essential cookies you allow. + +You can: + +* accept all cookies, +* reject non-essential cookies, +* choose specific categories of cookies. + +Essential cookies stay active, as they are needed for the online store to work. + +Your choice is saved and applied on your future visits. + +## 5. Withdrawing or changing your consent + +You can change or withdraw your consent to the use of non-essential cookies at any time. + +**@TODO: Add how Boboko's cookie preference centre is reopened, e.g. through a "Cookie settings" link in the footer.** + +Withdrawing consent does not affect the lawfulness of processing carried out before the withdrawal. + +## 6. Third-party cookies + +Some of the services we use are provided by third parties, such as Google, Meta, TikTok and hCaptcha. + +These third-party providers may process information collected through cookies or similar technologies in accordance with their own policies and terms. + +Using third-party services may also involve transferring data outside the European Economic Area. Where required, the safeguards provided by law for such transfers are applied. + +## 7. Cookies and personal data + +Some cookies or similar technologies may lead to the processing of information that counts as personal data. + +For more information on how 3DEALER collects and processes personal data, see the **Privacy Policy**. + +## 8. Browser settings + +You can also limit or delete cookies through your browser settings. + +However, turning off some cookies may affect how the online store works or prevent some services from working properly. + +## 9. Changes to this Cookie Policy + +This Cookie Policy may be changed when the technologies we use, the services of the online store or the relevant legislation change. + +The latest version will always be available on the 3DEALER website. + +**Last updated:** @TODO diff --git a/resources/stoic/content/en/pages/home.md b/resources/stoic/content/en/pages/home.md new file mode 100644 index 0000000..74794ea --- /dev/null +++ b/resources/stoic/content/en/pages/home.md @@ -0,0 +1,7 @@ +--- +name: "Home" +meta_title: "3dealer: Whatever you imagine, printed in 3D" +meta_description: "Gaming figures, skulls, key holders and the craziest things you can dream up. Designed and 3D printed, one by one." +trivia_body: "Gaming figures, skulls, key holders, dark humor and the craziest things you can dream up, all designed and printed right here in Greece." +classics_title: "Legendary & unbeatable" +--- diff --git a/resources/stoic/content/en/pages/privacy-policy.md b/resources/stoic/content/en/pages/privacy-policy.md new file mode 100644 index 0000000..008f821 --- /dev/null +++ b/resources/stoic/content/en/pages/privacy-policy.md @@ -0,0 +1,196 @@ +--- +name: "Privacy Policy" +meta_title: "" +meta_description: "" +--- + +3DEALER ("3DEALER", "we", "us") respects the privacy of its visitors and customers and protects their personal data in accordance with applicable law, including the General Data Protection Regulation (EU) 2016/679 ("GDPR") and the related Greek legislation. + +This Privacy Policy explains what personal data we collect, what we use it for, who we may share it with and what rights you have. + +## 1. Data controller + +The controller of the personal data collected through the online store is: + +**3DEALER** +Parou 31, Kypseli, 11255 Athens, Greece +Tax ID (ΑΦΜ): {store_tax_identifier} +Company registration number (ΓΕΜΗ): {store_registration_number} +Email: [print@3dealer.gr](mailto:print@3dealer.gr) +Phone: +30 6976 443140 + +3DEALER determines the purposes and means of processing the personal data of the online store's customers and users. + +## 2. What data we collect + +Depending on how you use the online store, we may collect: + +* your full name, +* your email address, +* your phone number, +* your shipping and billing address, +* order and product details, +* payment-related details, +* contact details and the content of messages you send us, +* user account details, +* reviews you choose to publish, +* technical data about your use of the website, +* data collected through cookies and similar technologies, as described in the Cookie Policy. + +We do not store your full credit or debit card details on 3DEALER's servers. Electronic payments are made through external payment providers. + +## 3. Creating an account + +You can create an account in the online store to manage your orders and details. + +To create and run your account, we may process details such as your name, email and login details. + +This processing is necessary to provide the account service. + +The online store also supports guest checkout. With guest checkout, no user account is created. The details you provide are used only to the extent necessary to process and complete the order and for the related legal obligations. + +## 4. Orders and purchases + +When you place an order, we process the details needed to: + +* record and fulfil the order, +* process the payment, +* ship and deliver the products, +* contact you about the order, +* issue the necessary invoices and receipts, +* meet our tax and accounting obligations, +* handle any returns, cancellations or complaints. + +The legal basis for this processing is, as the case may be, the performance of the contract, compliance with a legal obligation and 3DEALER's legitimate interest in the proper operation and protection of its business. + +## 5. Contacting us + +If you contact us by email, phone or through the contact form, we process the details you give us in order to respond to your request. + +The legal basis is, depending on the case, taking steps at your request before entering into a contract, the performance of a contract, or our legitimate interest in serving our users and customers. + +## 6. Newsletter and marketing communication + +If you choose to subscribe to the 3DEALER newsletter, we use your email address to send you updates, offers and other marketing content. + +Subscribing to the newsletter is based on your consent. + +You can withdraw your consent at any time by using the unsubscribe link included in the emails or by contacting us at [print@3dealer.gr](mailto:print@3dealer.gr). + +Withdrawing consent does not affect the lawfulness of processing carried out before the withdrawal. + +## 7. Product reviews + +If you choose to submit a product review, we may publish your name or another identifier you chose to display with the review. + +Please do not include your own or other people's personal data in a public review unless it is necessary. + +## 8. Payment providers + +To complete payments we may use third-party providers such as Stripe and PayPal, as well as banks for payments by bank transfer or IRIS. + +The data required to complete a payment may be passed to the relevant payment provider. + +**@TODO: Confirm the exact payment providers/banks that will be used in production and add them to the final version.** + +These providers process data in accordance with their own privacy policies and applicable terms. + +## 9. Shipping and delivery companies + +To ship your orders we use shipping and delivery services, including ELTA Courier and BOX NOW. + +To deliver an order, details such as your full name, address, phone number and other details needed for delivery may be passed to the relevant provider. + +## 10. Accounting and tax services + +Order details and the necessary customer details may be passed to the Epsilon system that 3DEALER uses to issue and manage invoices and receipts and to meet its tax and accounting obligations. + +## 11. Security and abuse protection + +We use technical and organizational measures to protect personal data against loss, unauthorized access, alteration or unlawful processing. + +To protect the website against malicious or automated use, we may use the hCaptcha service. Using this service may involve processing technical data in accordance with the relevant provider's privacy policy. + +## 12. Analytics and advertising services + +3DEALER uses traffic analytics and advertising measurement services, such as: + +* Google Analytics +* Google Tag Manager +* Meta Pixel +* TikTok Pixel + +These technologies may use cookies or similar technologies to collect information about how the website is used and how effective advertising is. + +Non-essential technologies are only activated in line with the consent choices you make through the cookie management tool. + +More information is available in the Cookie Policy. + +**@TODO: Confirm the exact tools, accounts and services that will be active in production.** + +## 13. Who may have access to your data + +3DEALER does not sell or rent your personal data. + +To the extent necessary to provide the relevant services, the following may have access to personal data: + +* payment providers, +* courier companies, +* hosting and technical support providers, +* email/newsletter service providers, +* analytics and advertising providers, +* accounting and tax services, +* public authorities and bodies, where required by law. + +Third-party providers that process data on behalf of 3DEALER are used in accordance with the requirements of applicable data protection law. + +## 14. Transfers outside the European Economic Area + +Some of the providers we use may process data outside the European Economic Area. + +In these cases, 3DEALER takes appropriate measures to ensure the transfer complies with the GDPR and that personal data receives the required level of protection. + +**@TODO: Check the exact processing countries and transfer mechanisms for Stripe, PayPal, Google, Meta, TikTok, hCaptcha and the newsletter provider.** + +## 15. Retention period + +We keep personal data only for as long as necessary for the purpose it was collected for. + +Data relating to orders and transactions is kept for as long as required by tax, accounting and commercial law. + +Account data is kept for as long as the account remains active, unless there is a legal reason to keep it longer. + +Data used for the newsletter is kept until you withdraw your consent or unsubscribe, unless there is another legal reason to keep it. + +Contact data is kept for as long as necessary to handle your request and, where required, to protect our legitimate interests. + +## 16. Your rights + +Under the GDPR, and subject to the conditions set out in the law, you have the right to: + +* access your personal data, +* correct inaccurate or incomplete data, +* have your data erased, +* restrict processing, +* data portability, +* object to certain types of processing, +* withdraw your consent, where processing is based on consent. + +Exercising a right does not mean it can be applied in every case. For example, we may be required to keep certain data because of a tax or other legal obligation. + +To exercise your rights, you can contact us: + +**Email:** [print@3dealer.gr](mailto:print@3dealer.gr) +**Phone:** +30 6976 443140 + +We will respond to your request without undue delay and, as a rule, within one (1) month of receiving it. + +## 17. Right to lodge a complaint + +If you believe the processing of your personal data breaches applicable law, you have the right to lodge a complaint with the Hellenic Data Protection Authority. + +## 18. Changes to this Privacy Policy + +This Privacy Policy may be changed when necessary, for example due to changes in legislation, in the services we use or in the way the online store operates. + +The latest version will always be available on our website. diff --git a/resources/stoic/content/en/pages/shipping-returns.md b/resources/stoic/content/en/pages/shipping-returns.md new file mode 100644 index 0000000..00340c0 --- /dev/null +++ b/resources/stoic/content/en/pages/shipping-returns.md @@ -0,0 +1,99 @@ +--- +name: "Shipping & Returns" +meta_title: "" +meta_description: "" +--- + +## 1. Order preparation + +All 3DEALER products are printed and prepared to order. + +The usual preparation time for an order is **2 to 7 business days**. + +Preparation time does not include the courier's transit time. + +During periods of high demand there may be delays. In the event of a significant delay, 3DEALER will inform the customer. + +## 2. Shipping + +Orders are shipped via: + +* ELTA Courier +* BOX NOW + +We ship to the regions supported by the online store: + +* Greece +* Cyprus + +The available shipping options and costs are shown at checkout. + +**Shipping costs:** @TODO — shipping rates are set dynamically in the Store's settings. + +Free shipping is not offered. + +Cash on delivery is not supported. + +## 3. Delivery time + +Delivery time depends on the courier and the destination. + +3DEALER is not responsible for delays caused solely by the carrier, extreme weather, strikes, problems in the transport network or other circumstances beyond its reasonable control. + +In case of a delay, you can contact us at [print@3dealer.gr](mailto:print@3dealer.gr). + +## 4. Receiving your order + +The customer is responsible for the accuracy of the delivery details entered when placing the order. + +If the address is incorrect or incomplete, delivery may be delayed or a new shipment may be required. Any additional costs arising from incorrect delivery details may be charged to the customer. + +## 5. Product delivered damaged + +If the product arrives visibly damaged, please contact us as soon as possible at [print@3dealer.gr](mailto:print@3dealer.gr) and send us photos of the product and the packaging. + +3DEALER will look into the case and, if damage that occurred in transit or another non-conformity is found, will provide an appropriate remedy in accordance with applicable law. + +## 6. Right of withdrawal + +For purchases that fall within the scope of the right of withdrawal, the consumer may withdraw from the contract within fourteen (14) calendar days of the day the product was received. + +To exercise the right of withdrawal, the customer must inform 3DEALER with a clear statement at [print@3dealer.gr](mailto:print@3dealer.gr). + +The product must be returned without undue delay and, in any case, within fourteen (14) days of the day the customer informed 3DEALER of their decision to withdraw. + +The customer bears the direct cost of returning the product, unless otherwise agreed or 3DEALER did not inform them of this beforehand. + +The customer is responsible for any reduction in the product's value resulting from handling beyond what is necessary to establish its nature, characteristics and functioning. + +## 7. Exceptions to the right of withdrawal + +The right of withdrawal does not apply in the cases excluded by applicable law. + +In particular, it may not apply to products made to the customer's specifications or clearly personalized. + +**@TODO: Confirm which 3DEALER products are considered personalized/custom and whether any products are not subject to the right of withdrawal.** + +The fact that a product is produced after the order is placed does not in itself exclude it from the right of withdrawal. + +## 8. Refunds + +In the case of a valid withdrawal, 3DEALER refunds the money received from the customer for the purchase, including, where required by law, the standard delivery costs. + +The refund is made using the same payment method as the original transaction, unless otherwise agreed. + +3DEALER may withhold the refund until it has received the returned product or until the customer has provided proof of having sent it, whichever comes first. + +## 9. Product exchanges + +**@TODO: Confirm whether 3DEALER offers product/size exchanges or whether exchanges are handled only through a return and a new order.** + +Where exchanges are offered, the procedure and any shipping costs will be communicated to the customer before the exchange is completed. + +## 10. Defective or non-conforming products + +If a product is defective or does not conform to the contract, the customer has the rights provided by applicable legislation on the sale of goods and consumer protection. + +Minor cosmetic characteristics that are normal for 3D printing, such as layer lines or small variations, do not in themselves constitute a defect. + +For any problem with a product, contact us at [print@3dealer.gr](mailto:print@3dealer.gr), stating your order number and, where possible, attaching photos. diff --git a/resources/stoic/content/en/pages/terms-and-conditions.md b/resources/stoic/content/en/pages/terms-and-conditions.md new file mode 100644 index 0000000..082ecfe --- /dev/null +++ b/resources/stoic/content/en/pages/terms-and-conditions.md @@ -0,0 +1,115 @@ +--- +name: "Terms & Conditions" +meta_title: "" +meta_description: "" +--- + +## 1. General + +The online store 3DEALER (hereinafter "the Store" or "3DEALER") is operated by the business 3DEALER, registered at Parou 31, Kypseli, 11255 Athens, Greece. + +**Tax ID (ΑΦΜ):** {store_tax_identifier} +**Company registration number (ΓΕΜΗ):** {store_registration_number} + +For any information or questions about orders, products or the operation of the Store, you can contact us: + +**Email:** [print@3dealer.gr](mailto:print@3dealer.gr) +**Phone:** +30 6976 443140 + +Using the Store and making purchases through it requires acceptance of these Terms & Conditions. + +These terms govern purchases made through the online store and are supplemented by the Privacy Policy and the Shipping & Returns Policy. + +## 2. Products + +The products offered through the Store are described and pictured as accurately as possible. + +3DEALER products are made by 3D printing. Due to the nature of the production process, they may show layer lines, seams, small variations or other minor cosmetic imperfections. These characteristics are a normal result of the 3D printing process and are not in themselves considered a product defect. + +All products are printed and prepared to order. The usual preparation time is 2 to 7 business days. + +Unless otherwise stated in the description of a specific product, products are intended for decorative use or for use within reasonable and realistic limits. Use with excessive force, at very high temperatures or in a way other than intended may damage the product. + +## 3. Prices + +All product prices are shown in euros (€) and include the applicable VAT. + +Shipping costs are calculated at checkout and shown before the purchase is confirmed. + +**Shipping costs:** @TODO — the exact cost is calculated dynamically based on the Store's shipping settings. + +## 4. Orders + +Customers can make a purchase either by creating an account in the Store or by using guest checkout, without creating an account. + +Completing an order requires the details necessary for processing, payment and delivery. + +Before finalizing the order, the customer can review the order details and the total cost, including any shipping charges. + +Once the order is completed, a confirmation is sent to the email address provided by the customer. + +**@TODO: Confirm whether the order is considered final once payment is completed or once the order confirmation is sent.** + +## 5. Payment methods + +The Store supports the following payment methods: + +* Credit or debit card +* PayPal +* Stripe +* IRIS +* Bank transfer + +Electronic payments may use third-party payment services. Card details or other sensitive payment details are not stored by 3DEALER, but are processed by the relevant payment provider in accordance with its own terms and privacy policy. + +## 6. Order cancellations + +**@TODO: Confirm the cancellation policy.** + +As a general rule, customers who wish to cancel an order can contact 3DEALER as soon as possible after placing it. + +If preparation of the order has not yet started, 3DEALER can cancel it and refund the amount paid. + +If production has already started, the terms of the Shipping & Returns Policy apply, together with the statutory right of withdrawal where applicable. + +## 7. Right of withdrawal and returns + +Where provided for by applicable law, consumers have the right to withdraw from a distance contract within fourteen (14) calendar days of receiving the product, without having to give a reason. + +Exceptions to the right of withdrawal apply in the cases provided for by applicable law, including for products made to the consumer's specifications or clearly personalized. + +The returns procedure and terms are described in detail in the Shipping & Returns Policy. + +## 8. Legal guarantee and defective products + +3DEALER is responsible for the conformity of products with the contract and for the consumer's statutory rights in the event of non-conformity or a defect, in accordance with applicable law. + +Normal characteristics of 3D printing, such as layer lines or small cosmetic variations that are expected from this production process, do not in themselves constitute non-conformity. + +## 9. Availability + +3DEALER makes every effort to keep product availability information accurate. + +In exceptional cases where a product cannot be produced or shipped, 3DEALER will contact the customer and explain the available options. + +## 10. Intellectual property + +The content of the Store, including but not limited to designs, photographs, texts, graphics, logos and other material, is the property of 3DEALER or is lawfully used by it, and is protected by applicable intellectual and industrial property law. + +Copying, reproducing, modifying, distributing or commercially exploiting the content without prior written permission is not allowed. + +## 11. Personal data + +Customers' personal data is processed in accordance with the 3DEALER Privacy Policy. + +## 12. Changes to these Terms + +3DEALER reserves the right to change these Terms & Conditions when necessary, in particular due to changes in legislation, services or the way the Store operates. + +The terms that apply to each order are those that were available at the time that order was placed. + +## 13. Governing law + +These Terms & Conditions are governed by Greek law. + +Any dispute relating to the use of the Store or the purchase of products is subject to the applicable Greek and European consumer protection legislation. diff --git a/resources/stoic/content/en/settings.md b/resources/stoic/content/en/settings.md new file mode 100644 index 0000000..ac8ae8b --- /dev/null +++ b/resources/stoic/content/en/settings.md @@ -0,0 +1,3 @@ +--- +meta_description: "Your local 3Dealer of 3D printed, high-quality products. Geek culture, decoration, fun and skulls, and custom orders." +--- diff --git a/resources/stoic/stoic_config.yml b/resources/stoic/stoic_config.yml index f2c4b9c..8e675aa 100644 --- a/resources/stoic/stoic_config.yml +++ b/resources/stoic/stoic_config.yml @@ -9,6 +9,14 @@ content_path: /content media_path: /media thumbs_path: /storage/app/public/stoic/ repository_path: /repository +# First locale is Stoic's default: it holds every field, the others only the +# translatable ones (content/{locale}/...). Codes match app.available_locales. +i18n: + locales: + - code: el + label: Ελληνικά + - code: en + label: English presets: - code: large mode: resize diff --git a/resources/stoic/stoic_schemas.yml b/resources/stoic/stoic_schemas.yml index 314ec40..fb3727b 100644 --- a/resources/stoic/stoic_schemas.yml +++ b/resources/stoic/stoic_schemas.yml @@ -2,6 +2,7 @@ schemas: - name: pages label: Pages type: files + translatable: true files: - name: home label: Home Page @@ -10,15 +11,18 @@ schemas: - name: name label: Name ui: string + translatable: true - name: slug label: Slug ui: slug - name: meta_title label: Meta Title ui: string + translatable: true - name: meta_description label: Meta Description ui: string + translatable: true - name: og_image label: Og Image ui: image @@ -27,10 +31,12 @@ schemas: ui: image - name: trivia_body label: "Trivia Body (intro paragraph under the hero)" - ui: markdown + ui: text + translatable: true - name: classics_title label: "Classics Section Title (favorites carousel heading)" ui: string + translatable: true - name: terms-and-conditions label: "Terms & Conditions Page" file: pages/terms-and-conditions.md @@ -38,15 +44,18 @@ schemas: - name: name label: Name ui: string + translatable: true - name: slug label: Slug ui: slug - name: meta_title label: Meta Title ui: string + translatable: true - name: meta_description label: Meta Description ui: string + translatable: true - name: og_image label: Og Image ui: image @@ -56,6 +65,7 @@ schemas: - name: body label: Body ui: markdown + translatable: true - name: shipping-returns label: "Shipping & Returns Page" file: pages/shipping-returns.md @@ -63,15 +73,18 @@ schemas: - name: name label: Name ui: string + translatable: true - name: slug label: Slug ui: slug - name: meta_title label: Meta Title ui: string + translatable: true - name: meta_description label: Meta Description ui: string + translatable: true - name: og_image label: Og Image ui: image @@ -81,6 +94,7 @@ schemas: - name: body label: Body ui: markdown + translatable: true - name: privacy-policy label: "Privacy Policy Page" file: pages/privacy-policy.md @@ -88,15 +102,18 @@ schemas: - name: name label: Name ui: string + translatable: true - name: slug label: Slug ui: slug - name: meta_title label: Meta Title ui: string + translatable: true - name: meta_description label: Meta Description ui: string + translatable: true - name: og_image label: Og Image ui: image @@ -106,6 +123,7 @@ schemas: - name: body label: Body ui: markdown + translatable: true - name: cookies-policy label: "Cookies Policy Page" file: pages/cookies-policy.md @@ -113,15 +131,18 @@ schemas: - name: name label: Name ui: string + translatable: true - name: slug label: Slug ui: slug - name: meta_title label: Meta Title ui: string + translatable: true - name: meta_description label: Meta Description ui: string + translatable: true - name: og_image label: Og Image ui: image @@ -131,14 +152,17 @@ schemas: - name: body label: Body ui: markdown + translatable: true - name: settings label: Settings type: singleton file: settings.md + translatable: true fields: - name: meta_description label: "Default Meta Description (used when a page has none)" ui: text + translatable: true - name: og_image label: "Default Og Image (used when a page has none, ideally 1200×630)" ui: image