Prestashop How to show another field in informations about customer in BO - prestashop

I use prestashop 1.7, I am stuck in the display of a field 'hobbies' which is the phoneNumber in back office prestashop with others fiels like in this image:
enter image description here
enter image description here
i'm new in prestashop and i can't found the files to edit.
I would be grateful if you help me

This place is not available to alter without modification of order view. There's no hook available in this place. You have two choices:
you can override back-office view
you can hook into displayBackOfficeHeader, check if current controller is this one related to Orders, and if so, load your data to JS variable with Media::addJsDef and insert it with JS too
If you need further assistance, let me know.

Related

Odoo Add custom UI element to customer portal

This is the customer portal of odoo
Im building my own module that generates plans for my business for every customer as an image and saves that image to a data model that has a One to One Relation to the customer
I would like to display this exact image on the customer portal, maybe in a new tab like "plan" just like the tabs on the screenshot (for example, you can click on Invoices ("Angebote") and you get an overview of all invoices. I want to do the same with my module).
I dont know how to do to it and I have already searched online but unfortunately not yet found any hint on how to do it.
Help is greatly appreciated.

Prestashop module development: How can we save data from product page?

I'm here for help from those who have real experience in Prestashop module development.
I got stucked while saving data from the product page where I've created the field through the module via hookDisplayAdminProductsExtra.
And I didn't get an idea to save new field data from the admin product page.
So, please help if anyone has a solution for this.
Thank You.
Add a form in your hook returned TPL,
so that you can retrieve and save your custom data in DB by registering and triggering "actionProductUpdate" in the module (this hook is called when a product is saved) by using Tools::getValue() inside the hook on your POST data.
Other solution would be to save data in AJAX with a dedicated AdminController - You can insert a custom button in your TPL + an additional JS file (you can include it with hookBackofficeHeader) to trigger the AJAX call.
You can see more about AdminController in official devdocs.

How to add customize dropdown for selecting country in the header in opencart

I am making a ecommerce website http://www.krushti.com
I want to add a dropdown for country in my header part ,so that a particular user can select the country and the currency should also change as well.
Do we have any option in the admin panel or do we have to code it manually. But i think coding part will be more tedious and also not recommended mostly in opencart.
Please help me in customization.
Thank you.
you would have to code it, or purchase it, opencart doesn't have an admin panel for that
use Drop Down Modification Plugin,it is free and it will help to display currencies in drop down list. For the title (Country Name + Currency) go to
admin>system>localization>currencies
Here you can add or modify according to your need.

Prestashop : Adding a field to choose Shipping carrier in product page front office

I'm using PrestaShop 1.5.5.0.
I want to add a custom check box list to the product page so a customer can choose shipping carrier on the product details page. Can it be possible ? I can add a specific fields in the product details page. As I'm new it's little difficult for me to figure out how can I add other details and carry the values to the order page and that is also dynamically. Is there any module available by which I can accomplish the task ? Please suggest me.
What I want to do is this : Choosing shipping carrier in product page :
http://www.wayfair.com/LifeStyle-Solutions-Zurich-Platform-Bed-LS3-ZUR-X-CP-LF1087.html
Well It's a tough task. You need to work on the controller if you want to carry the values or create a module like shipping estimate and hook it to the product page that might work.

Display featured products on category page PRESTASHOP

I just want to show some featured products on each category page (not home page).
I thought to use features or tags. So in the back, I add to the products I want to show a "featured" tag or feature. And then in the front on each category page I display the products of that category that have that tag or feature.
What do you think is easier? and how can I achieve this? I am so lost, so I'd appreciate any guidance.
Thanks guys
Here is how I would do this:
Create a module (obviously) to extend the product class and add a featured field (as a boolean, you can also use a position field if you want to manage something like that)
Within the module it's easy to override the admin controller to add a checkbox somewhere
On the category page, create a hook to display the featured product, or just override the categoryController to get them.
And voilĂ ! It's really easy. I just give you the steps as I won't write the code for you :) but if you need more advices feel free to ask