Product Summary in Checkout - need to customize

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
chemistrudy
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Thu Oct 25, 2012 9:26 am

Product Summary in Checkout - need to customize

Post by chemistrudy » Wed Jan 16, 2013 4:56 pm

Hi All,

Item #1:
I have added customized shipping methods with a fixed amount. When added to the Product Summary on the Payment form, the Shipping Method is added as a product in the basket with the summary being the shipping method name.

Depending on the shipping method choosen, I would like to add text to the summary instead of just using the method name.

Does anyone know what object stores this summary information? I figured to add my text (which will always be the same for a given shipping method) on the Payment.aspx Page_Init

Item #2:

Does anyone know of a way to allow customers to enter a note during the checkout process, instead of them waiting until after checkout?

EDIT: In the abandoned onepagecheckout, I found "shipmessage". This looks like the functionality I would like. Any help on adding this to the current checkout process would be great.

Thanks in advance.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Summary in Checkout - need to customize

Post by mazhar » Mon Jan 21, 2013 8:27 am

chemistrudy wrote: Item #1:
I have added customized shipping methods with a fixed amount. When added to the Product Summary on the Payment form, the Shipping Method is added as a product in the basket with the summary being the shipping method name.

Depending on the shipping method choosen, I would like to add text to the summary instead of just using the method name.

Does anyone know what object stores this summary information? I figured to add my text (which will always be the same for a given shipping method) on the Payment.aspx Page_Init
You may need to hard code the text depending upon name of ship method. Try to look through the payments page shipment section code in aspx and aspx.cs file.
chemistrudy wrote: Item #2:

Does anyone know of a way to allow customers to enter a note during the checkout process, instead of them waiting until after checkout?

EDIT: In the abandoned onepagecheckout, I found "shipmessage". This looks like the functionality I would like. Any help on adding this to the current checkout process would be great.
Regarding this one it seems like we are missing ShipMessage control on ShipMethod.aspx page. You can quickly fix it by first locating the following code in Website/Checkout/ShipMethod.aspx

Code: Select all

<asp:PlaceHolder ID="phNoShippingMethods" runat="server" EnableViewState="false" Visible="false">
                                        <p>
                                            <asp:Localize ID="ShipMethodErrorMessage" runat="server" Visible="false" EnableViewState="false" Text="There are no shipping methods available for the specified shipping address."></asp:Localize>
                                            <asp:Localize ID="ShipMethodUPSErrorMessage" runat="server" Visible="false" EnableViewState="false" Text=" Remember that UPS cannot ship to PO boxes."></asp:Localize>
                                        </p>
                                    </asp:PlaceHolder>
and then update it like

Code: Select all

<asp:PlaceHolder ID="phNoShippingMethods" runat="server" EnableViewState="false" Visible="false">
                                        <p>
                                            <asp:Localize ID="ShipMethodErrorMessage" runat="server" Visible="false" EnableViewState="false" Text="There are no shipping methods available for the specified shipping address."></asp:Localize>
                                            <asp:Localize ID="ShipMethodUPSErrorMessage" runat="server" Visible="false" EnableViewState="false" Text=" Remember that UPS cannot ship to PO boxes."></asp:Localize>
                                        </p>
                                    </asp:PlaceHolder>
                                    <br />
                                    <asp:Label ID="ShipMessageLabel" runat="server" Text="Delivery Instructions?" SkinID="FieldHeader"></asp:Label>&nbsp;
                                    <asp:TextBox ID="ShipMessage" runat="server" Text="" MaxLength="200" Width="200px"></asp:TextBox>
save the file and thats it. Now try palcing test order and you will see ship message text box.

chemistrudy
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Thu Oct 25, 2012 9:26 am

Re: Product Summary in Checkout - need to customize

Post by chemistrudy » Mon Jan 21, 2013 10:57 am

Mazhar,

Thank you. I now have a textbox for the customer to enter shipping/Delivery notes! Yeah!

Rudy

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Product Summary in Checkout - need to customize

Post by sfeher » Thu Mar 28, 2013 10:14 am

Mazhar -

I'm using GOLD R3 (build 5078) here.....

I've added the ShipMessage field into our ShipMethod.aspx page as you recommend.
One piece that I've noted, however, is that the value submitted is not included anywhere else in the administration of the order.
Whatever information our customers place into the 'Ship Message" field is lost when the order submits.

The data doesn't get stored in the Shipments table (because a shipment is created by the admins later, when the order is pulled for shipment)

I don't see a place in the actual Order table for the message to be included. Where does that ShipMessage go? How can we access it on the Admin side?

We need to capture delivery details from our customers when they place the order...

Thanks!
Steve

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Summary in Checkout - need to customize

Post by mazhar » Fri Mar 29, 2013 7:34 am

I don't see a place in the actual Order table for the message to be included. Where does that ShipMessage go?
The message is specific to shipping means if multiple shipments then you will be able to add mulitple messages one per shipment. its stored in ac_OrderShipments table after checkout. In order administration you can access the message on Administration > Manage > Orders > View Order #--- > Shipments screen under shipment section where it says Customer Comment.

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Product Summary in Checkout - need to customize

Post by sfeher » Fri Mar 29, 2013 7:39 am

Mazhar --

That's where I expected the information to appear, yes.
Unfortunately the data doesn't survive the checkout process and is never added to the shipment details.
The only way I can add content to that field is from the Admin side where "Customer Comment" can be edited in the admin screens that you recommend above.

The Customers' input is not being stored......

Any thoughts as to why?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Summary in Checkout - need to customize

Post by mazhar » Fri Mar 29, 2013 7:56 am

Before checkout completion the message is kept in ac_BasketShipment.ShipMessage. When order is generated we convert BasketShipments to OrderShipment and copy over the contents. In theory one reason it can be lost is if you create new basketshipment at some later point before completing checkout.

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Product Summary in Checkout - need to customize

Post by sfeher » Fri Mar 29, 2013 8:30 am

Mazhar --

In my Checkout Process, we go from ShipMethod.aspx to Payment.aspx to Receipt.aspx
There's no other place where the basketShipment would be re-created.

I am running Gold R3 and I just reviewed the change log from Gold R4 and there doesn't appear to be any mention of this error of whether the ShipMessage is carried forward. I've not introduced any further steps into the Checkout process, so I'm not sure how I could have created a new basketshipment that would have disposed of the contents.

This smells like a bug!

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Product Summary in Checkout - need to customize

Post by sfeher » Tue Apr 02, 2013 7:51 am

Mazhar --

Any thoughts as to why this isn't working correctly?

I need this functionality to work for our launch.

Thank you!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Summary in Checkout - need to customize

Post by mazhar » Tue Apr 02, 2013 9:14 am

I tried the workaround I posted here in this thread in my R3 development copy and it worked as expected. Maybe you need make sure you made the change as I suggested above like textbox id etc. Also after adding the code change try checkout and provide the comment on shippment. Then before completing the checkout on payment screen go to database and confirm the message you entered is in ac_BasketShipments.ShipMessage. If its there then complete checkout and see if same information is now saved in ac_OrderShipments.ShipMessage. If you don't see any thing in ac_BasketShipment.ShipMessage then may try placing some value directly in ShipMessage column and try to complete checkout to see if it survives the checkout. If this is the case then maybe some is wrong where we take and dump the value in ac_BasketShipments.

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Product Summary in Checkout - need to customize

Post by sfeher » Tue Apr 02, 2013 9:34 am

Mazhar --

I had previously attempted the change that you're recommending and it did not work for me.
I've gone back, recopied the code changes you have above and reviewed them line by line..... and added them into my code anyway.
I surely made some mistake on the first attempt, because now its working correctly....

Thank you!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Summary in Checkout - need to customize

Post by mazhar » Tue Apr 02, 2013 9:58 am

OK great!

Post Reply