Jump to content

Using Prestashop as courier/freight booking platform


mds

Recommended Posts

Hello,

Since i was not able to find a module that would function like a courier/freight booking system. I had to quickly improvise something. I also wanted something that would not involve too much hacking due to version upgrades.

 

Basically what you want to do is have an order process that would show delivery address as Collection Address and then Billing Address as Delivery address. You also want this to be the case in the order email sent to the customer.

 

Please do the following;

1. Locate order-opc.tpl in   themes/default-bootstrap/

On or around  line 108 change the highlighted to match what you want

{capture}<h3 class="page-subheading">{l s=' Check Your delivery address' js=1}</h3>{/capture}
 

On  or around line 110 change the highlighted to match what you want

{capture}<h3 class="page-subheading">{l s='Check Your collection address' js=1}</h3>{/capture}

 

The above would change the details on the checkout to Collection and Delivery addresses. (just uncheck using delivery address as billing   address, and add a new address with another title , you may call it Collection or Delivery or anything you want, just for future reference.

 

2. Locate order_conf.html in /mails/en/

 

On or around line 332 change the following highlighted

<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
                                        Collection address                                    </p>
 

On or around line 350 change the following highlighted

 

<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
                                        Delivery address                                    </p>
 

 

The above would change the Address headings in the customer confirmation email.

 

Now in the admin, you can view the order in the order page. Note that the Delivery address and the Billing address in the order details page applies to the changes made above. For example, the billing address is now the Delivery address for the customer.

 

 

3. Locate order-detail.tpl  in themes/default-bootstrap/

 

On or around line 87 change the following highlighted

 

<li><h3 class="page-subheading">{l s='Collection address'} </h3>

 

 

On or around line 101 change the following highlighted

 

<li><h3 class="page-subheading">{l s='Delivery address'} </h3></li>

 

 

The above would change the address headings on the order history page in front office

 

We would be happy to see a module in this direction.

 

2ND OPTION

 

Just use Product Customization to collect the data on the product page before it is checked out.

Edited by mds (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...