Created
October 11, 2022 09:27
-
-
Save unlocomqx/8375bc06a3dba02c2787afa636530866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$personnalisations = DynamicInput::getInputsByIdCart($this->order->id_cart); | |
$dims = array(); | |
foreach($personnalisations as $dynamic_input) { | |
$values = array(); | |
$fields = $dynamic_input->getInputFields(Context::getContext()->language->id); | |
foreach ($fields as $input_field) { | |
$values[$input_field->name] = $input_field->value; | |
} | |
$dims[$dynamic_input->id] = $values; | |
} | |
var_dump($dims); | |
die(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment