Jump to content

How Filter by id carrier in cart module


solucionsweb

Recommended Posts


Hi.

I'm trying to change the text of the side box shown in the chekcout of an order, in the steps of prestashop 1.7 (see screenshot) I want to change the text that appears in the transport, depending on the carrier id. Within the checkout in the steps in (shipping.tpl) if I could use something such that:

 

{if $ carrier.id == '685'}
    <span class = "carrier-price"> &nbsp; </ span>
{else}
    <span class = "carrier-price"> {$ carrier.price} </ span>
{/ if}
 

The problem is that if I try to use the same variable, in this part:

 

{if $ subtotal && $ subtotal.type! == 'tax'}
          <div class = "cart-summary-line cart-summary-subtotals" id = "cart-subtotal - {$ subtotal.type}">
            <span class = "label"> {$ subtotal.label} </ span>
            <span class = "value"> {$ subtotal.value} </ span>
          </ div>
        {/ if}

 

So for example, do the same as before, here it does not pay attention, it's as if it did not take into account the variable carrier.id.

 

Does anyone think of how he could do it?

 

Thank you

imagen.png.2c31ee8162e92123cbeeb45e4e15283a.png

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...