i trying to make shipping method with custom css style in opencart cms.
default code in this section is:
<tr class="highlight">
<td><?php if ($quote['code'] == $code || !$code) { ?>
<?php $code = $quote['code']; ?>
<input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" checked="checked" />
<?php } else { ?>
<input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" />
<?php } ?></td>
<td><label for="<?php echo $quote['code']; ?>"><?php echo $quote['title']; ?></label></td>
<td style="text-align: right;"><label for="<?php echo $quote['code']; ?>"><?php echo $quote['text']; ?></label></td>
All ok in this code, and i get three links: Shipping post, take own in the shop, Courier.
ok, i wanna make custom style in each link custom style. I'm trying:
<tr class="highlight">
<td><?php if ($quote['code'] == $code || !$code) { ?>
<?php $code = $quote['code']; ?>
<input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" checked="checked" />
<?php } else { ?>
<input type="radio" name="shipping_method" value="<?php echo $quote['code']; ?>" id="<?php echo $quote['code']; ?>" />
<?php } ?></td>
<td><label for="<?php echo $quote['code']; ?>">
<?php $pastas = 'Shipping post'; ?>
<?php $atsiemimas = 'Courier'; ?>
<?php $vienetas = 'take own in the shop'; ?>
<?php if ($quote['title'] = $pastas) { ?>
<font style="color:red;">1 link</font>
<?php } elseif ($quote['title'] = $atsiemimas) {?>
<font style="color:red;">2 link</font>
<?php } elseif ($quote['title'] = $vienetas) {?>
<font style="color:red;">3 link</font>
<?php }?>
</label></td>
<td style="text-align: right;"><label for="<?php echo $quote['code']; ?>"><?php echo $quote['text']; ?></label></td>
but i get from three differents links, three same links: 1 link, 1 link, 1 link. Then i wanna to have: 1 link, 3 link, 3 link
Maybe i using wrong code? Please help.