- Created SQL installation scripts for categories and posts tables. - Added uninstall scripts to drop the created tables. - Introduced CSS styles for blog layout, including responsive design for posts and categories. - Implemented PHP redirection in index files to prevent direct access. - Developed Smarty templates for blog category tree, post list, and individual post details. - Ensured proper caching headers in PHP files to enhance performance.
3.3 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is a PrestaShop 1.7.8.11 e-commerce store (kikiriki.sklep.pl). The repository contains only the customized parts of the installation — overrides, custom modules, theme templates, and configuration — not the full PrestaShop core.
Deployment
Files are deployed to a live production server via FTP:
- Host:
kikiriki.sklep.pl - Remote path:
/domains/kikiriki.sklep.pl/public_html - VS Code extension ftp-kr handles auto-upload on save (
autoUpload: true) - Files excluded from FTP sync:
.git,.vscode,.claude,.serena,CLAUDE.md
There is no local development server. Changes go directly to production.
Architecture
PrestaShop uses a class override system: files in override/ extend or replace core classes. After adding or removing an override, the cache file /cache/class_index.php on the server must be deleted to force regeneration.
Key directories in this repo
config/— PrestaShop configuration files (settings.inc.phphas DB credentials,defines.inc.phpsets dev/prod mode)controllers/admin/andcontrollers/front/— Admin and storefront controller overridesoverride/classes/— Core class overrides (currently onlyOrder.phpfor InPost shipping integration)modules/— Custom and third-party modules:eksporthistorii— Custom module: exports order history to CSV, adds "Eksport historii" tab under Orders in adminps_searchbar— PrestaShop native search bar module (modified)x13googlemerchant— Google Merchant Center XML feed (ionCube-encoded; main file isxml.php)
themes/classic/— Classic theme customizations (Smarty.tpltemplates, assets, email templates in Polish)
Module structure pattern
Each module follows the PrestaShop standard:
- Main class in
<module_name>/<module_name>.phpextendingModule - Admin controllers in
controllers/admin/Admin<Name>Controller.phpextendingModuleAdminController - Templates in
views/templates/
Override pattern
Override classes extend the *Core version of the class:
class Order extends OrderCore { ... }
Configuration
- PS version:
1.7.8.11(defined inconfig/settings.inc.php) - Dev mode: disabled by default (
_PS_MODE_DEV_ = falseinconfig/defines.inc.php) - DB prefix:
pr_ - Caching: Memcache configured but disabled (
_PS_CACHE_ENABLED_ = '0') - Language: Polish (pl) — all custom UI strings are in Polish
Important constraints
config/settings.inc.phpcontains production DB credentials — never commit changes to this file that expose them further or modify the live credentials.x13googlemerchantmodule files (.core.php,.db.php,.schema.php) are ionCube-encoded and cannot be edited directly. Onlyx13googlemerchant.php(the loader) andxml.php(the feed entry point) are plain PHP.- After editing any file in
override/, the PrestaShop class cache must be cleared on the server: delete/cache/class_index.php.
Sposób pracy
- Pisz do mnie po polsku, zwięźle i krótko, ale merytorycznie
Wprowadzanie zmian
- Przeanalizuj wprowadzone zadanie
- Jeżeli masz jakieś wątpliwości pytaj
- Przedstaw plan
- Po akceptacji wdróź plan