pt1602/getproductbyid

PT1602 getProductByID(id, context)

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:shopware-platform-plugin

0.0.1 2023-03-07 17:04 UTC

This package is auto-updated.

Last update: 2024-05-11 15:02:41 UTC


README

PHP Maintenance github forks PRs Welcome github stars

Twig getProductByID-Function for Shopware 6

A simple Shopware 6 plugin which adds a twig function to get the all about information about the product when you only got the id.

This plugin is only a demo for quick tests.

Installation

Git

Clone this repository into custom/plugins of your Shopware 6 installation.

git clone https://github.com/pt1602/ShopwareGetProductById.git

Composer

composer require pt1602/getproductbyid

Example

{{ getProductByID('86da6b3c52064b928ee19c2cab2698be', context).name|raw }}

MIT license Open Source? Yes!