Jump to content

Carrier Variable


Kirin

Recommended Posts

Hello, i use prestashop 1.5.6.

Here it is my final code:

<td class="pointer center">
                            <a href="index.php?tab=AdminOrders&token='.Tools::getAdminTokenLite('AdminOrders').'&vieworder&id_order='.(($id_status != 0) ? $order_id : $order_id['id_order']).'" target="_blank">
                                #'.(($id_status != 0) ? $order_id : $order_id['id_order']).'
                            </a>
                        </td>
                        <td>
                        '$carrier_name'
                        </td>

The first td regularly shows order id. Now, i want the second td to simply show the shipping method, so i paste the variable i found in one of my modules (working for that one) which is

<td>{$line.carrier_name}</td>

but it is show as simple text, so i change it into

<td>'{$line.carrier_name}'</td>

and then, getting an error, i remove "line." for the first result i post. The error i still get is

 

[PrestaShop] Fatal error in module printlabels:
syntax error, unexpected T_VARIABLE

As you surely can notice, i barely have a clue of what php is so i was hoping one of you could help me a bit...

Thank you.

Link to comment
Share on other sites

I am sorry, i hate to bother people, but what i hate more is that this is my third post in this forum and nobody has ever given me an answer. Yet, help requests that have been made after this one get help, while i am still stuck with my job.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...