Hi,
1. Thanks for help!
Ended up with this:
if($shipping->shipping_name == 'Pristatyti i terminala' && $text1 == '0') {
$text1 = ' Demesio klaida!';
}elseif ($text1 == '0') $text1 = '';
if($text2 == '0') $text2 = ' Demesio klaida!';
However i couldnt understand why it does work with shipping_name but not with shipping_id
The code i had with shipping_id is as below:
$shipping_id = $app->getUserState( HIKASHOP_COMPONENT.'.shipping_id');
if($shipping_id == '8@0' && $text1 == '0') {
$text1 = ' Demesio klaida!';
}elseif ($text1 == '0') $text1 = '';
if($text2 == '0') $text2 = ' Demesio klaida!';
It;s just it didnt want to use shipping_id...
I even tried to do var dumb and clearly could see shipping_id
May i know what is the difference?
2. Update:
It seems I need another coding help with it.
I would like to split address in two fields as some of them are long enough.
Example of address:
Vilnius, Long way 7 (Central post), Lt-04208, Terminal is near the building somewhere in the forest...
So in custom field I would like to enter like this:
Value: Terminal is near the building somewhere in the forest...
Title: Vilnius, Long way 7 (Central post), Lt-04208
In single dropdown selection we see title as selection. So is there a way to echo value in field view or custom_field view based on that custom field title selection? Attached image to be more clear.
I have seen this feature on some prestashop sites and would like to add it too.
Thanks