PrestaShop / PrestaShop/docs

Document Lazy Array manipulation in front

Open Beginner friendly
#1,390 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
136
Forks
555
Avg merge
4d 14h
Merged PRs (30d)
4

Description

It's a common case to try to add custom data to the lazy arrays in front for smarty (cart, product listing, product, ...)
How to use hooks actionPresent[entities], $presentedObject->offsetSet()
appendArray can also been used :
$productLazyArray->appendArray([
'extra_reference' => '123',
'extra_description' => 'Bla'
]);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the issue's examples of actionPresent[entities], $presentedObject->offsetSet(), and appendArray(). Document how these APIs add custom data to front-office lazy arrays for carts, products, and product listings, including a concise PHP example; done means the documented usage is clear to developers.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.