Skip to content

PrestaShop module to convert available products into a XML feed that CryptWerk can parse

License

Notifications You must be signed in to change notification settings

BitcoinMitchell/cryptwerk-plugin

Repository files navigation

CryptWerk Plugin

Maintained GitHub Workflow Status GitHub License GitHub contributors

PrestaShop module version GitHub release (latest SemVer) GitHub all releases

This is a CryptWerk plugin for PrestaShop. It converts your available products into an XML feed that CryptWerk can parse.

Features

  • The module exposes a /module/cryptwerk/feed endpoint that outputs all in-stock products as XML.
  • Each product includes: ID, title, link, price, description, categories, image, and brand (if available).
  • The feed is automatically updated as your catalog changes.
  • Adds a CryptWerk Feed tab under Catalog in PrestaShop admin

Requirements

Please ensure that you meet the following requirements before installing this plugin.

  • You have a CryptWerk account.
  • You are using PHP 8.1 or higher.
  • Your PrestaShop is version 9.0.0 or higher.
  • The intl, mbstring and simplexml PHP extensions are available.

Usage

  1. Download the latest CryptWerk plugin.
  2. Go to your PrestaShop store and upload the zip via Modules > Module Manager > Upload a module.
  3. Click on Catalog -> CryptWerk Feed, which will redirect you to your feed URL.
  4. Setup product sync within CryptWerk Dashboard -> Synchronization & Import using the XML type and your feed URL.
  5. Await moderator approval on CryptWerk.

Development

If you want to work on the plugin, it is recommended to install/use the following:

Local development environment

  1. Copy development/.env.dist to development/.env and adjust as needed.
  2. Run:
    cd development
    docker compose up -d
  3. Access PrestaShop at http://localhost:8000, which will redirect you to the proper Ngrok URL.

Building and linting

  • make build – Installs dependencies and builds cryptwerk.zip in the build/ folder.
  • make lint – Runs PHP CS Fixer and PHPCS for code style checks.
  • make clean – Cleans build artifacts and vendor folders.

Code structure

  • modules/cryptwerk/cryptwerk.php – Main module class and PrestaShop integration
  • modules/cryptwerk/controllers/front/feed.php – XML feed controller
  • modules/cryptwerk/src/Factory.php – XML feed builder logic
  • modules/cryptwerk/config/routes.yml – Custom routes
  • development/ – Docker, environment, and helper scripts

Autocomplete

  • development/autocomplete.php provides PrestaShop class stubs for IDE autocompletion.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Contributing

Contributors looking to help out, before opening a pull request, please create an issue to get early feedback, discuss the best ways to tackle the problem and to ensure there is no work duplication.

Security

Please report security issues privately via email. See SECURITY.md for details.

PrestaShop Support

PrestaShop support can be found through its official channels.

License

Software, logo and designs are provided under MIT License.

Packages

No packages published

Contributors 3

  •  
  •  
  •