Converting Php code to Twig

darkeagle

Member
XNullUser
Joined
Sep 3, 2021
Messages
31
Reaction score
54
Points
18
NullCash
289
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
16
Reaction score
0
Points
1
NullCash
3
try this its just simple concatenation
{{ 'GOP_COD_default_' . $geo_zone['geo_zone_id'] . '_' . $customer_group['customer_group_id'] . '_flat' }}
 
Top