chahidkhan Posted June 8, 2013 Share Posted June 8, 2013 Hello I need some modifications in order history page , i want to show product names in order reference place , and i want to change color of status text , sp please can you help me ?? Thanks a lot prestashop team Link to comment Share on other sites More sharing options...
vekia Posted June 8, 2013 Share Posted June 8, 2013 you're talking about "order history" in front office? Or maybe about orders list in the back office? additional questions: what ps version you use? it's a default theme? Link to comment Share on other sites More sharing options...
chahidkhan Posted June 8, 2013 Author Share Posted June 8, 2013 Order history in front office ( for customers ) I use Prestashop 1.5.4.0 with default theme .. Thank you Link to comment Share on other sites More sharing options...
vekia Posted June 8, 2013 Share Posted June 8, 2013 you have to edit themes/_YOUR_THEME_/history.tpl file + history controller: controllers/front/historycontroller.php it's not as easy as it seems, because you have to run query for products, because by default list of products aren't included to the smarty. What does it mean? It mean that you have to edit controllers. There is no other way to achieve this. Link to comment Share on other sites More sharing options...
chahidkhan Posted November 18, 2013 Author Share Posted November 18, 2013 Okay Thanks no problem with this , i have another modification to do if you can help me , i want orders don't appear in one page in front , every page will appear 10 orders for example Link to comment Share on other sites More sharing options...
vaperus Posted November 21, 2013 Share Posted November 21, 2013 (edited) Hi Guys seem to have a problem with my customer order history with overlapping address Think I have narrowed it down to the Order template file The address overlaps the products not sure what I need to do to fix it thanks Mark {if isset($followup)} <p class="bold">{l s='Click the following link to track the delivery of your order'}</p> <a href="{$followup|escape:'htmlall':'UTF-8'}">{$followup|escape:'htmlall':'UTF-8'}</a> {/if} <div class="adresses_bloc clearfix"> <br /> <ul class="address item {if $order->isVirtual()}full_width{/if}"> <li class="address_title">{l s='Billing'}</li> {foreach from=$inv_adr_fields name=inv_loop item=field_item} {if $field_item eq "company" && isset($address_invoice->company)}<li class="address_company">{$address_invoice->company|escape:'htmlall':'UTF-8'}</li> {elseif $field_item eq "address2" && $address_invoice->address2}<li class="address_address2">{$address_invoice->address2|escape:'htmlall':'UTF-8'}</li> {elseif $field_item eq "phone_mobile" && $address_invoice->phone_mobile}<li class="address_phone_mobile">{$address_invoice->phone_mobile|escape:'htmlall':'UTF-8'}</li> {else} {assign var=address_words value=" "|explode:$field_item} <li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item|replace:',':''}">{$invoiceAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}</span>{/foreach}</li> {/if} {/foreach} </ul> <ul class="address alternate_item" {if $order->isVirtual()}style="display:none;"{/if}> <li class="address_title">{l s='Delivery'}</li> {foreach from=$dlv_adr_fields name=dlv_loop item=field_item} {if $field_item eq "company" && isset($address_delivery->company)}<li class="address_company">{$address_delivery->company|escape:'htmlall':'UTF-8'}</li> {elseif $field_item eq "address2" && $address_delivery->address2}<li class="address_address2">{$address_delivery->address2|escape:'htmlall':'UTF-8'}</li> {elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}<li class="address_phone_mobile">{$address_delivery->phone_mobile|escape:'htmlall':'UTF-8'}</li> {else} {assign var=address_words value=" "|explode:$field_item} <li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item|replace:',':''}">{$deliveryAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}</span>{/foreach}</li> {/if} {/foreach} </ul> </div> {$HOOK_ORDERDETAILDISPLAYED} {if !$is_guest}<form action="{$link->getPageLink('order-follow', true)}" method="post">{/if} <div id="order-detail-content" class="table_block"> <table class="std"> <thead> <tr> Edited November 21, 2013 by vaperus (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 22, 2013 Share Posted November 22, 2013 it looks like modified theme, so it;'s hard to say what you have to do. well, the problem is with css styles, not with .tpl files. Link to comment Share on other sites More sharing options...
vaperus Posted November 22, 2013 Share Posted November 22, 2013 thanks for that, just send a message to the developer Its the Elation Theme Link to comment Share on other sites More sharing options...
chahidkhan Posted November 22, 2013 Author Share Posted November 22, 2013 Hi Guys ! Any help to make 10 orders in first page in order history ? Thanks Link to comment Share on other sites More sharing options...
sheyooo Posted July 18, 2015 Share Posted July 18, 2015 you have to edit themes/_YOUR_THEME_/history.tpl file + history controller: controllers/front/historycontroller.php it's not as easy as it seems, because you have to run query for products, because by default list of products aren't included to the smarty. What does it mean? It mean that you have to edit controllers. There is no other way to achieve this. i want to edit the query where will i get the queries i have to edit. I want to add extra columns to the order history page Link to comment Share on other sites More sharing options...
chahidkhan Posted November 4, 2015 Author Share Posted November 4, 2015 Hi again !! Can someone help me please to change order statuses colors in order history in front page ? for example Delivered with green and Rejected with Red ?? Im using PS 1.5.4.0 Thanks in advance Link to comment Share on other sites More sharing options...
adau Posted January 27, 2016 Share Posted January 27, 2016 (edited) Hello, I want to display product_name in "history.tpl" ( version:1.6.1) I have put in: HistoryController.php $products = Db::getInstance()->executeS(' SELECT product_name FROM '._DB_PREFIX_.'order_detail WHERE `id_order`= '); $this->context->smarty->assign(array('products' => $products)); history.tpl {foreach from=$products item=product} {$product.product_name} {/foreach} What should I write after “ `id_order`=“ in order to display product_name? Thank you Edited January 27, 2016 by adau (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 29, 2016 Share Posted January 29, 2016 (edited) That's not the proper way I think. Modify getCustomerOrders instead, and get the product name there. You can just use STRING_CONCAT on the product_name field in the first query there Edited January 29, 2016 by Nemo1 (see edit history) Link to comment Share on other sites More sharing options...
adau Posted January 31, 2016 Share Posted January 31, 2016 That's not the proper way I think. Modify getCustomerOrders instead, and get the product name there. You can just use STRING_CONCAT on the product_name field in the first query there Thank you for your reply. I will follow your suggestion. Link to comment Share on other sites More sharing options...
ZMR Posted June 25, 2016 Share Posted June 25, 2016 Hello, How can I edit the order history page? I just want to change "Product" to say "Download Your Product" in the order details tab because I sell digital products. Thanks In advance Link to comment Share on other sites More sharing options...
NemoPS Posted June 27, 2016 Share Posted June 27, 2016 You can dimply edit order-detail.tpl theme folder Link to comment Share on other sites More sharing options...
ZMR Posted June 27, 2016 Share Posted June 27, 2016 Thanks for your reply, I tried to edit the file but couldn't find "Product" in any line, which line should I edit to change the word? Thank you so much for your help Link to comment Share on other sites More sharing options...
ZMR Posted June 27, 2016 Share Posted June 27, 2016 Never Mind, got it!! Thank you so much for your help, this community is GREAT! Best Regards Zm Link to comment Share on other sites More sharing options...
murtaza-vhora Posted July 21, 2016 Share Posted July 21, 2016 (edited) Hello, Can anyone please help me here? How can I add re-order button to order detail page? I just want to allow a user to reorder individual product from placed order I am using PS-1.6.1.6 with default theme, I don't want to change in core files (tpl or controller) Thanks Edited July 21, 2016 by murtaza-vhora (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2016 Share Posted July 21, 2016 it is not possible to reorder selected products only you can reorder whole order at the moment. all other things requries custom development. Link to comment Share on other sites More sharing options...
murtaza-vhora Posted July 22, 2016 Share Posted July 22, 2016 Thanks, Vekia Is there any tutorial available for "Hooking modules to the Category Front Office in Prestashop", I am referring http://nemops.com/hook-modules-prestashop-category-back-office/#.V5Gc01R96Ul Actually, I just want to display the history of last two records on different pages like. - my account page - product listing page Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted July 26, 2016 Share Posted July 26, 2016 For the category page, there is not, you need to add one: http://nemops.com/adding-hooks-to-prestashop-1-5/#.V5cjcvn5jmgFor the account page, where exactly? Link to comment Share on other sites More sharing options...
vitortavares Posted April 23, 2019 Share Posted April 23, 2019 On 11/22/2013 at 4:36 PM, chahidkhan said: Hi Guys ! Any help to make 10 orders in first page in order history ? Thanks hello, all. did you had some sucess doing that? i have a problem with a costumer long history and i think it would help to limit the last 12 or so orders in history.tpl any help is welcome, thanks in advance Link to comment Share on other sites More sharing options...
GJ Tonewood LLC Posted December 27, 2019 Share Posted December 27, 2019 (edited) anyone have any suggestions for fixing the totals in the order history? I've managed to fix the totals (subtotal+tax) on the order confirmation page etc, but I havent' been able to get the order history in the front end to change....mainly because I'm not exactly sure where to change the coding. Prestashop 1.7.6.1 Scott Edited December 27, 2019 by GJ Tonewood LLC (see edit history) Link to comment Share on other sites More sharing options...
Jose Lorenzini Posted July 17, 2020 Share Posted July 17, 2020 hi brothers have you try this {$order.details.details_url} ? <a href='{order.details.details_url}" data-link-action="view-order-details" > {l s='details' d='Shop.Theme.Customeraccount'} </a> is work for me. let me know if works ! saludos Link to comment Share on other sites More sharing options...
giuliowr Posted October 28, 2020 Share Posted October 28, 2020 Hello, I would like a piece of information: I have a problem, I should order my product catalog in descending order according to the code name "reference". The problem is that the products, in addition to a letter, also have the number and I would like the number to be in ascending order. Example I have in my catalog products that start from reference code N111 and go-to reference code P331. I would like the products starting with P to be the first to be displayed in the various categories of the FO. So I would just put the display of the products in order to show the order by "product reference" in the descending method. Here the problem arises. Because I would like the products for P to be shown from the lowest, that is from P101 so to have P101 #### #### P331 N### Etc And not as it comes out now which is P331 #### #### P101 N### I tried to force it by doing the manual reordering through position in the product catalog but, another problem is that these positions that I forced him, are canceled every time the synchronization is done by management through a web service. Can you help me? Is there any way, programming, or module to get it back? I am already late with this client so it is quite urgent. Thank you, Best regards. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now