ajay21 Posted June 11, 2014 Share Posted June 11, 2014 i am using prestashop 1.5.3.1 how to remove order Id from contact form. Link to comment Share on other sites More sharing options...
PSfever.com Posted June 11, 2014 Share Posted June 11, 2014 Hi, if I recall correctly, this field is not requiered, therefore comenting it out in the contact-form.tpl file should be enough. Link to comment Share on other sites More sharing options...
NemoPS Posted June 11, 2014 Share Posted June 11, 2014 As PSfever said, simply get rid of this <p class="text select"> <label for="id_order">{l s='Order reference'}</label> {if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} <select name="id_order" > <option value="0">{l s='-- Choose --'}</option> {foreach from=$orderList item=order} <option value="{$order.value|intval}" {if $order.selected|intval}selected="selected"{/if}>{$order.label|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {elseif !isset($customerThread.id_order) && empty($isLogged)} <input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order|intval > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order) && !empty($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" /> {elseif $customerThread.id_order|intval > 0} <input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" /> {/if} </p> In contact-form.tpl 2 Link to comment Share on other sites More sharing options...
ajay21 Posted June 11, 2014 Author Share Posted June 11, 2014 Thank you soooo much for your reply.... It works.....You guys rock..... Link to comment Share on other sites More sharing options...
ajay21 Posted June 13, 2014 Author Share Posted June 13, 2014 hey nemo1..... when i comment the code as per ur suggetion i seen that the data will not be stored in database. i think th field order_id is menadatory. Waiting for ur reply nemo1. Link to comment Share on other sites More sharing options...
NemoPS Posted June 14, 2014 Share Posted June 14, 2014 Then try hardcoding a hidden input field with id_order as name and value = 0 1 Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2014 Share Posted June 14, 2014 smthing like: <input type="hidden" name="id_order" id="id_order" value="0" /> 1 Link to comment Share on other sites More sharing options...
abolfazl-m Posted August 7, 2014 Share Posted August 7, 2014 hi allplease help me , remove id order in contact form prestas 1.6.0.6 Link to comment Share on other sites More sharing options...
vekia Posted August 7, 2014 Share Posted August 7, 2014 have you tried code that i suggested above? 1 Link to comment Share on other sites More sharing options...
NemoPS Posted August 9, 2014 Share Posted August 9, 2014 Remove? what do you mean exactly? Did you do what vekia wrote above? Link to comment Share on other sites More sharing options...
iroption Posted August 14, 2016 Share Posted August 14, 2016 hi friends i user PS 1.6.1.5, i want to remove or hidden , order id from contact form, please help me Link to comment Share on other sites More sharing options...
NemoPS Posted August 15, 2016 Share Posted August 15, 2016 Did you try what I suggested above? It shouldn't be much different in terms of code, it's still with the same name attribute Link to comment Share on other sites More sharing options...
viktor123 Posted August 15, 2016 Share Posted August 15, 2016 Did you try what I suggested above? It shouldn't be much different in terms of code, it's still with the same name attribute Hi, I am trying unsuccessfully to remove the OrderIDs column from ORDERS page in BO. Any change you help me out on PS 1.5.6.0. Thanks Link to comment Share on other sites More sharing options...
Prestachamps Posted August 15, 2016 Share Posted August 15, 2016 Hi, If you want to remove the ID field from the orders listing page in BO , then go to file: /controllers/admin/AdminOrdersController.php Find the following lines: " $this->fields_list = array( 'id_order' => array( 'title' => $this->l('ID'), 'align' => 'center', 'width' => 25 ), 'reference' => array( " and remove the ID_order from the array, so it will look like: " $this->fields_list = array( 'reference' => array( " Regards, Leo Link to comment Share on other sites More sharing options...
viktor123 Posted August 16, 2016 Share Posted August 16, 2016 (edited) Hi Leo, if I remove it, then no ID is passed to the link in the order, therefore Error. Any chance I hide it with css. Vik Edited August 16, 2016 by viktor123 (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted August 16, 2016 Share Posted August 16, 2016 Hi for hiding the column you could try to add a hidden class to ID field, but in presta 1.5 is not yet defined. For a workaround you could add the class "input-error"(this class already has display:none in ps1.5) to the align property of ID (highlighted in red) like this: $this->fields_list = array( 'id_order' => array( 'title' => $this->l('ID'), 'align' => 'center input-error', 'width' => 25 ) Regards, Leo Link to comment Share on other sites More sharing options...
Recommended Posts