| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Detailed Order Management Mod | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#41
|
|||||||
|
|||||||
![]() I applied posts 2 and 22, very nice!
Stupid question maybe (after all, I am a newbie) - regarding the clickable entries mentioned - I didn't look at post 26, yet the order number and date are already clickable - is that because the code in post 22 was changed to include these, or was something else meant by clickable entries? Thanks, Miri
__________________
X-cart Gold 4.1.12 One Page Checkout CDSEO Pro Smart Search PHP 5.2.5 FreeBSD |
|||||||
#42
|
|||||||
|
|||||||
![]() is there an image I can see this? Because the pictures no longer work.
__________________
X-Cart Gold v. 4.1.9 |
|||||||
#43
|
|||||||
|
|||||||
![]() Quote:
Yea Id like to know too.
__________________
Version 4.1.9 |
|||||||
#44
|
|||||||
|
|||||||
![]() I applied this mod today, having planned to do it for months and months, I followed the main post and all went well, all the colours work, although I may change a few, the links all worked out of the box.
For those of you who use the copy address functions you should check the js and the address sections added as they don't cater for 2nd address lines, and the js could also do with tidying to break each line onto a new line of it's own. Now this is installed it is GREAT, one of those must have mods, well done to the author. I'm not sure if anyone has explored this yet but it would be really cool to have an expand all/contract all to show and hide this data.
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#45
|
|||||||
|
|||||||
![]() Quote:
OK, so I wanted to be able to do this and with a little bit of help from xcart, I now have this mod setup so that at the top of the list there is a set of radio buttons to show or hide the detail, images are available at the end of this post. Step 1.0 install the mod as per existing instructions, as always, backup backup backup before you start. For those of you who don't want a client to see any of the extra items you add, simply wrap them in the following way: {if $usertype eq 'A'} Relevant part of code here {/if} I didn't want them to see the stock levels either so I wrapped the code like this: {if $usertype eq 'A'} <td align=center>Stock</td> {/if} and {if $usertype eq 'A'} <td width="10%" nowrap="nowrap" align=center>{$item.avail}</td> {/if} This hides the stock title and levels from the customers. Ok so onto how to turn it on or off. First create a file called ExpandOrdDet.tpl in the /skin1/main folder. Copy and paste the following into the empty file. {if $usertype eq 'A'} <form action="" name="OrdDetExpand" method="post"> <b>Ordered Product Details:</b> <input type="hidden" value="{if $expand_list eq 'Y'}{else}Y{/if}" name="expand"> <INPUT type="radio" name="show" id="radio-show" value="{$expand_list}" {if $expand_list eq 'Y'}checked{else}onclick="OrdDetExpand.submit()"{/if}> <label for="radio-show">Show</label> <INPUT type="radio" name="hide" id="radio-hide" value="{$expand_list}" {if $expand_list eq ''}checked{else}onclick="OrdDetExpand.submit()"{/if}> <label for="radio-hide">Hide</label> </form> {/if} save and exit Then open the orders_list.tpl file from the same folder and add {include file="main/ExpandOrdDet.tpl"} after {assign var="total_paid" value=0.00} which is about line 4. then in the same file add {if $expand_list eq 'Y'}, I placed this into the text as below, be sure to add {/if} at the end as shown: {* genbilim *} {if $usertype eq 'A'} <td align=center {include file="main/orders_colors.tpl"}><a href="javascript:void(0)" ship_to="{$orders[oid].s_title} {$orders[oid].s_firstname} {$orders[oid].s_lastname}" ship_address="{$orders[oid].s_address}" ship_address_2="{$orders[oid].s_address_2}" ship_city="{$orders[oid].s_city}" ship_state="{$orders[oid].s_statename}" ship_country="{$orders[oid].s_country}" ship_zipcode="{$orders[oid].s_zipcode}" onclick="copyShipAddr(this, false);return false;"> <img src="{$ImagesDir}/copy.gif" border=0 align=absmiddle></a></td> {/if} </TR> {if $expand_list eq 'Y'} <tr> <td colspan=3></td> <td colspan=4> <table width=100% cellpadding=5 style="border-collapse:collapse" border=0> <tr bgcolor=#DDDDCC> <td>Product</td> <td>Code</td> <td align=center>Amount</td> {if $usertype eq 'A'} <td align=center>Stock</td> {/if} </tr> {foreach item=item from=$orders[oid].item_list} <tr bgcolor=#CCCCDD> <td width="70%" nowrap="nowrap">{$item.product}</td> <td width="10%" nowrap="nowrap">{$item.productcode}</td> <td width="10%" nowrap="nowrap" align=center>{$item.amount}</td> {if $usertype eq 'A'} <td width="10%" nowrap="nowrap" align=center>{$item.avail}</td> {/if} </tr> {/foreach} </table> </td> </tr> <TR> <TD style="padding-top:3px;border-bottom:1px solid black" colspan=12> </TD> </TR> <TR> <TD style="padding-top:3px;" colspan=12> </TD> {/if} {* genbilim-end *} Once you have made that change, save and exit the file. You now need to edit the /admin/auth.php file Add //------ RADIO BUTTONS FOR PROUCT LIST EXPANSION ------ x_session_register('expand_list'); if ($HTTP_POST_VARS['expand'] == 'Y') { $expand_list = 'Y'; } elseif(isset($HTTP_POST_VARS['expand']) && $HTTP_POST_VARS['expand'] != 'Y') { $expand_list = ''; } $smarty->assign("expand_list", $expand_list); //------ end Radio Buttons ------ to the end of the file but before the ?> Save the file and exit That's it you should be good to go. Images to show results below. ![]() ![]() I hope you find this addition useful, it has only been applied to and is running on 4.1.9, use on other versions has not been tested and cannot be guaranteed. Thanks Chris
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#46
|
|||||||
|
|||||||
![]() I find this mod really really useful but sometimes I want to go to the product that the customer has ordered, either because when we get it from the supplier, it actually weighs more or less than we had been told, usually this means going into the order to click the product to open a new window to modify it.
So I thought it would be nice if the product name was clickable to be able to get to it from this view. so I made it so. just replace <td width="70%" nowrap="nowrap">{$item.product}</td> with <td width="70%" nowrap="nowrap">{if $current_membership_flag ne 'FS'}<a href="product_modify.php?productid={$item.producti d}" target="viewproduct{$item.productid}">{/if}#{$item.productid}. {$item.product}{if $current_membership_flag ne 'FS'}</a>{/if}</td> I have this formatted to show the product id too but you could amend accordingly. I also changed the actual title to match from <td>Product</td> to <td>Product Id and Title</td> I hope someone finds this useful. Watch out for extra spaces that seem to get added sometimes, there seems to be one in one of the ={$item.productid}" but it is not there when I edit.
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#47
|
|||||||
|
|||||||
![]() works great! Thanks.
But how to show the "ship to customer"? Currently, it only show the name of the buyer.
__________________
www.ChiMassager.com X-cart Version 4.44 www.SEOMarketing30days.com --> Download FREE SEO marketing Ebook (valued $50) Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic! |
|||||||
#48
|
|||||||
|
|||||||
![]() The line that shows the ship to is the one below, the fact that it is using s_ means it is looking at the shipping name, or are you talking about the views shown in post #45, as thse are showing the standard customer details as per xcart config?
ship_to="{$orders[oid].s_title} {$orders[oid].s_firstname} {$orders[oid].s_lastname}"
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#49
|
|||||||
|
|||||||
![]() your_xcart_dir/skin1/main/orders_list.tp
i cant find the skin1 folder anyone or do i have wrong version? X-Cart version 4.1.10 thanks ppl
__________________
solotiger |
|||||||
#50
|
|||||||||
|
|||||||||
![]() All versions of x-cart have a skin1 folder. It is in the main directory where x-cart resides... right after "shipping"
![]()
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
|
|||
X-Cart forums © 2001-2020
|