Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Lazy Array manipulation in front #1390

Open
jf-viguier opened this issue Jun 15, 2022 · 0 comments
Open

Document Lazy Array manipulation in front #1390

jf-viguier opened this issue Jun 15, 2022 · 0 comments

Comments

@jf-viguier
Copy link
Contributor

jf-viguier commented Jun 15, 2022

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'
]);

@jf-viguier jf-viguier changed the title Document Lazy Array in front : offsetGet; offsetSet Document Lazy Array manipulation in front with offsetSet Jun 15, 2022
@jf-viguier jf-viguier changed the title Document Lazy Array manipulation in front with offsetSet Document Lazy Array manipulation in front Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant