Jump to content

User orders history - change ID to reference


jaktur

Recommended Posts

Hello, I want to change the ID from URL in order history. I have link (reference) - javascript:showOrder(1, 'id', 'link with id') and the same link "Details", and I want to change it to hide the order_id so the function will be showOrder(1, 'reference', 'link with reference'). Anyone tried that earlier ? 

 

Thank you in advance :)

Link to comment
Share on other sites

In order to achieve this you have to change a lot of things in PrestaShop, you can look at the following files to achieve this:

 

/themes/default-bootstrap/history.tpl

/controllers/front/HistoryController.php

/themes/default-bootstrap/js/history.js

 

You need to look into function sendOrderMessage() in history.js file as this function fetches and display the order details.
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...