Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
While it should be built in to the next SP, if possible, has anyone coded in a Coupon line in the order summary on the checkout page? A lot of customers don't think their coupons are being applied because the only way it shows up on the checkout page is if you do the math and notice the Grand Total has taken the coupon into consideration. There should be a "Coupon Discount" line in the summary. |
|
|
|
|
Rank: Member
Joined: 3/24/2005(UTC) Posts: 311
|
Here you go Joe, I have attached the two files that were modified but, if you made changes to the Checkout One page then you have to manually add this bit of code. Edit BvModules/Checkouts/One Page Checkout/Checkout.aspx Find this code: Code: <tr> <td class="FormLabel" valign="top" align="left"> Handling:</td> <td class="FormLabel" valign="top" align="right"> <anthem:Label ID="HandlingTotalField" runat="server"></anthem:Label></td> </tr>
and add after the </tr> this code: Code: <tr> <td class="FormLabel" valign="top" align="left"> Discounts:</td> <td class="FormLabel" valign="top" align="right"> <anthem:Label ID="DiscountTotalField" runat="server"></anthem:Label></td> </tr>
Next Edit Checkout.aspx.vb Find this Procedure: Code: Protected Sub LoadTotals(ByVal Basket As Orders.Order) If Basket Is Nothing Then Basket = SessionManager.CurrentShoppingCart End If SubTotalField.Text = Basket.SubTotal.ToString("c") SubTotalField.UpdateAfterCallBack = True TaxTotalField.Text = Basket.TaxTotal.ToString("c") TaxTotalField.UpdateAfterCallBack = True ShippingTotalField.Text = (Basket.ShippingTotal - Basket.ShippingDiscounts).ToString("c") ShippingTotalField.UpdateAfterCallBack = True HandlingTotalField.Text = Basket.HandlingTotal.ToString("c") HandlingTotalField.UpdateAfterCallBack = True GrandTotalField.Text = Basket.GrandTotal.ToString("c") GrandTotalField.UpdateAfterCallBack = True End Sub
and replace with this: Code: Protected Sub LoadTotals(ByVal Basket As Orders.Order) If Basket Is Nothing Then Basket = SessionManager.CurrentShoppingCart End If SubTotalField.Text = Basket.SubTotal.ToString("c") SubTotalField.UpdateAfterCallBack = True TaxTotalField.Text = Basket.TaxTotal.ToString("c") TaxTotalField.UpdateAfterCallBack = True ShippingTotalField.Text = (Basket.ShippingTotal - Basket.ShippingDiscounts).ToString("c") ShippingTotalField.UpdateAfterCallBack = True HandlingTotalField.Text = Basket.HandlingTotal.ToString("c") HandlingTotalField.UpdateAfterCallBack = True DiscountTotalField.Text = "-" & Basket.OrderDiscounts.ToString("c") DiscountTotalField.UpdateAfterCallBack = True GrandTotalField.Text = Basket.GrandTotal.ToString("c") GrandTotalField.UpdateAfterCallBack = True End Sub
That should do it for you. File Attachment(s): Checkout.aspx (22kb) downloaded 211 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
I think Discount line should added to:
1. Receipt.aspx page. 2. Order Confirmartion email. 3. To the Order Details admin area.
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
Thanks Jonathan! I'll give that a shot -- we just started running a coupon code in a major industry magazine and the first customer trying to use it noted that it didn't look like it was being applied!
I agree with Michael that it should be listed just about everywhere where there is an order summary. |
|
|
|
|
Rank: Member
Joined: 3/24/2005(UTC) Posts: 311
|
I agree with you guys on that point. I'll see if I can get you guys updated pages on the other ones. |
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
Works great on the Checkout Page! |
|
|
|
|
Rank: Member
Joined: 8/8/2007(UTC) Posts: 298
|
Has this been added to any of the updates? SP3.1? or SP3.2?
Does make sense that this should be included in the e-mails, admin side, and anywhere the customer views totals on the checkout, & reciept! |
Dan |
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Jon, Is it ok if I add this to site about BV as an update to the Checkout page? http://www.acorns.com.au/bv/blog/Thanks, Corneliu. |
|
|
|
|
Rank: Member
Joined: 3/24/2005(UTC) Posts: 311
|
Hello Corneliu,
Sure go right ahead. |
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
|
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
hey corneliu, great little service you're providing with your blog. very generous. |
|
|
|
|
Rank: Member
Joined: 1/3/2004(UTC) Posts: 1,497
|
Corneliu,
Not to throw a wet blanket over this, but did you check with Marcus about posting code snippets? I don't want you to violate any rules and get into trouble. |
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Chris, Good point about posting code snippets. I've dropped Marcus an email. Looking forward to his answer.
Regards Corneliu. |
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
Hey Corneliu, I dropped a comment on your blog post about adding the Contact Us link to the product page. Got a 404 when I hit submit.
I have a product named: Superfly Widget & Controller
email subject line = Superfly Widget
The & cuts off the subject line, how can this add-on handle special characters? |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
The build-in 'contact us' ignors paragraphs (enter key) in emails to the merchant too. Sometimes, a new line helps clarify a break in the question, be nice to have it for the sake of formatting. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Matt, I've tried to post a comment and it worked. Odd. Anyway, I've updated the post. What you need is change the LocalProduct.ProductName to HttpUtility.UrlEncode( LocalProduct.ProductName ). I could not test this but it should to the trick.
Chris, Got an approval from Marcus to place code as long as I don't place too much or code that is not normally publish-able (licence, security...). So I'll stick to simple examples and it should be fine.
Regards, Corneliu. |
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
Thanks C. I'll get this in during the rounds tomorrow. I trust your skills! I'll post if I hit something.
I wrote that post no later than 5 minutes after I experienced the error on your site in case you wanted a time reference to double check anything. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.