Page 1 of 1

Kit Assemblies & Migration Utility

Posted: Wed May 28, 2008 6:15 pm
by brennan1313
Hello, my name is Brennan and I am looking to migrate a client off another shopping cart to AbleCommerce. I have tried the online demo and love it. My only concern is how the kit assemblies are displayed on the invoice and packing slips. Does anyone know if the components of a kit product are populated in ac_OrderItems table in column ParentItemId? The packing slip lists the components from the kit assemblies as separate line items. My client would require the products be grouped together on a single line item. I would need to modify the following files to display the product correctly for my client:

PackSlips.aspx and Invoices.aspx.

Previously, has anyone modified these pages? Also, is there a place for documentation on the order items data structures(OrderItemCollection)?

Secondly, has anyone used the migration utility? Is there any documentation available for the migration utility?

Any insight would greatly be appreciated.

Thanks,
Brennan

Re: Kit Assemblies & Migration Utility

Posted: Thu May 29, 2008 2:18 am
by m_plugables

Re: Kit Assemblies & Migration Utility

Posted: Fri May 30, 2008 11:43 am
by brennan1313
Thanks! :D

Re: Kit Assemblies & Migration Utility

Posted: Fri May 30, 2008 5:29 pm
by Logan Rhodehamel
brennan1313 wrote:I would need to modify the following files to display the product correctly for my client:

PackSlips.aspx and Invoices.aspx.
Let's start with Invoices.aspx.... this might be simple and appears to be a bug in the file. We have the items sorting by name, but actually they need to be sorted according to other rules that factor in relationships between items (e.g. kit items).

On Line 81 of Admin/Odrres/Print/Invoice.aspx is this code:

Code: Select all

products.Sort("Name");
That line should actually be this:

Code: Select all

products.Sort(new OrderItemComparer());
With this change, items that are in kits will group together. The same code change can be made on line 123 of Admin/Orders/Print/PackSlips.aspx.

This change won't make the items group onto a single line item though. Is the change above sufficient or are you looking for something more like what the customer sees when they view their own invoice? On the customer invoice, the kit is not broken out by each item but rather the items are shown in a bulleted list.

Re: Kit Assemblies & Migration Utility

Posted: Sat May 31, 2008 12:03 am
by compunerdy
It should display on the admin the side the same way it does on the customer side in my opinion.