Converting Php code to Twig

darkeagle

Member
XNullUser
Joined
Sep 3, 2021
Messages
31
Reaction score
67
Points
18
NullCash
380
Is there anybody that can convert this code to twig? I tried but doesn't work as variable...
PHP:
<?= ${'GOP_COD_default_' . $geo_zone['geo_zone_id'] . '_' . $customer_group['customer_group_id'] . '_flat'} ?>
 

ziarv

New member
XNullUser
Joined
Nov 8, 2021
Messages
18
Reaction score
0
Points
1
NullCash
2
try this its just simple concatenation
{{ 'GOP_COD_default_' . $geo_zone['geo_zone_id'] . '_' . $customer_group['customer_group_id'] . '_flat' }}
 
Top