close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order Details

Thread began 10/09/2012 9:39 am by Patrice | Last modified 10/09/2012 12:16 pm by Patrice | 2298 views | 8 replies |

PatriceWebAssist

Order Details

When a customer makes a gift purchase, the billing information is correctly showing up in the emailed receipt. However, on the Order Details page, the "purchased by" name and address is not the person doing the purchasing but rather the person to whom it is being shipped to. The ship to is accurate.

My client wants to be able to have the person making the purchase to be on the order page. This cart has the option of using paypal or staying on the site to complete the purchase.

I tested both ways, as a logged in user and as a guest (special set up for this cart).

Can this be changed? Thanks, as always.

I forgot to ask the client why they needed it but I am guessing that in case there is a size / color issue they will need to contact the purchaser and will only have their address on the receipt and no phone number. And by looking just in the order page will not realize it is a gift and will call the recpient instead of the purchaser. Christmas season coming up so many gifts will be ordered.

Customer confirmed reason:

If a customer orders a gift to have shipped to someone else and we are sold
out of the item(s) they want, we need to be able to contact them to let them
know. We don't want to ruin the surprise by contacting the gift recipient.
Also, if I have to process a refund, I want to credit the right person. I
have to search Paypal for the name of the person who is on the order. If
what we have is the gift recipient, I won't be able to find them on Paypal
because they didn't pay for the order

Sign in to reply to this post

PatriceWebAssist

Using your demo store, the person receiving the gift is listed as the purchaser there too. See screenshot.

Sign in to reply to this post

Jason ByrnesWebAssist

in the admin/order_details.php page, change:

php:
<p class="nobottom">

                <label class="readonly-bottom">Address:</label>
                                <?php echo($row_WADAorders['OrderShipName']); ?>
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                                <?php echo($row_WADAorders['OrderShipAddress']); ?> <?php echo($row_WADAorders['OrderShipAddress2']); ?>
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                                <?php echo($row_WADAorders['OrderCity']); ?><?php echo($row_WADAorders['OrderState']); ?> <?php echo($row_WADAorders['OrderZip']); ?> (<?php echo($row_WADAorders['OrderCountry']); ?>)
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                                 <?php echo($row_WADAorders['OrderPhone']); ?>
              </p>




to:

php:
<p class="nobottom">

                <label class="readonly-bottom">Ship Address:</label>
                                <?php echo($row_WADAorders['OrderShipName']); ?>
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                                <?php echo($row_WADAorders['OrderShipAddress']); ?> <?php echo($row_WADAorders['OrderShipAddress2']); ?>
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                                <?php echo($row_WADAorders['OrderCity']); ?><?php echo($row_WADAorders['OrderState']); ?> <?php echo($row_WADAorders['OrderZip']); ?> (<?php echo($row_WADAorders['OrderCountry']); ?>)
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                                 <?php echo($row_WADAorders['OrderPhone']); ?>
              </p>
              <p class="nobottom">
                <label class="readonly-bottom">Order Address:</label>
                            <?php echo $row_WADAorders['UserFirstName']; ?> <?php echo $row_WADAorders['UserLastName']; ?></p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                            <?php echo $row_WADAorders['UserAddress']; ?> <?php echo $row_WADAorders['UserAddress2']; ?> </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                            <?php echo $row_WADAorders['UserCity']; ?><?php echo $row_WADAorders['UserState']; ?> <?php echo $row_WADAorders['UserZip']; ?> (<?php echo $row_WADAorders['UserCountry']; ?>) </p>
              <p class="nobottom">
                <label class="readonly-bottom">&nbsp;</label>
                          <?php echo $row_WADAorders['UserPhone']; ?> </p>
Sign in to reply to this post

PatriceWebAssist

Thanks Jason. I did a

orders_detailTEST2.php

everything good except the name as the purchaser at the top of the order page... Where it says

Purchased By:

That still contains the recipient. Which line should I change for that, please?

Sign in to reply to this post

PatriceWebAssist

Never mind... I spotted it. Thanks again!

Sign in to reply to this post

Jason ByrnesWebAssist

php:
<label class="readonly-bottom">Purchased By:</label>

                                <span id="OrderShipName"><?php echo $row_WADAorders['OrderShipName']; ?></span>




to:

php:
<label class="readonly-bottom">Purchased By:</label>

                                <span id="OrderShipName"><?php echo $row_WADAorders['UserFirstName']; ?> <?php echo $row_WADAorders['UserLastName']; ?></span>
Sign in to reply to this post

PatriceWebAssist

:-) Yep! I was able to find it. Thanks again.

I am guessing that the update order page will be on their list next. We can only update the shipping records, not the user. Maybe it won't be an issue. I'll make a test page and see if I can figure it out based on this information.

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

the user information is stored in the Users table. to update the User information go to the mange users section to update the user associated to the order.

Sign in to reply to this post

PatriceWebAssist

Ah... good point. No sense in doing it in the order update then. Thanks for heading me off the wrong path.... :-)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...