• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

rv
#1 Posted : Tuesday, March 12, 2013 5:28:14 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
HI

When i add item to cart on my site the popup is shown for 1) continue shopping 2) checkout button

when i press checkout button nothing happens and if i see to console of the chrome it gives following lines.

Refused to set unsafe header "Accept-Encoding" WebResource.axd:323
Anthem_CallBack WebResource.axd:323
Anthem_FireEvent WebResource.axd:426
Anthem_FireCallBackEvent WebResource.axd:756
onclick Gill-i3-Zip-Neck__GL1321.aspx:489

XHR finished loading: "http://smu.ibcnet.com/Products/Gill-i3-Zip-Neck__GL1321.aspx?Anthem_CallBack=true". WebResource.axd:352
Anthem_CallBack WebResource.axd:352
Anthem_FireEvent WebResource.axd:426
Anthem_FireCallBackEvent WebResource.axd:756
onclick


if i use ie9 with ie7 standards then it works only in ie but not in ff or chrome.

i have also put this code on head tag

<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible" />

Edited by user Tuesday, March 12, 2013 5:28:48 AM(UTC)  | Reason: Not specified

Aaron
#2 Posted : Tuesday, March 12, 2013 8:07:26 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Offhand I'm not sure what would cause that. Since this functionality appears to be custom, can you post your code? That would aid in debugging.

Is there a reason that you're using an Anthem button for the checkout button rather than a simple link?
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
rv
#3 Posted : Tuesday, March 12, 2013 8:13:08 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
HI Aaron,

Thanks for the reply.

I have mailed to client for the code as in my local site when i view the source of the checkout page it looks like
<a id="ctl00_MainContentHolder_AddToCartButton1_lnkCart" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContentHolder$AddToCartButton1$lnkCart", "", true, "", "../Cart.aspx", false, true))'>
<img src="/BVModules/Themes/ABC/images/Checkout.gif" width="220" height="39" alt="">
</a>

but on server it looks like

<a onclick="javascript:Anthem_FireCallBackEvent(this,event,'ctl00$MainContentHolder$AddToCartButton1$lnkCart','',true,'','','',true,null,null,null,true,true);return false;" id="ctl00_MainContentHolder_AddToCartButton1_lnkCart" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContentHolder$AddToCartButton1$lnkCart", "", true, "", "../Cart.aspx", false, true))'>
<img src="http://abc.abc.com/BVModules/Themes/abc/images/Checkout.gif" width="220" height="39" alt="">
</a>


so i have asked my client for the code.

Thanks for the reply

Edited by user Tuesday, March 12, 2013 8:13:41 AM(UTC)  | Reason: Not specified

rv
#4 Posted : Thursday, March 14, 2013 5:55:12 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
Hi Aaron,

i have checked the code in the control ascx
here is code:

<div id="dialog-modal-Cart" style="display: none" class="popup centerPopupContent">
<br />
<h1>
This item has been added to your cart.<br />
What would you like to do?</h1>
<br />
<a href="javascript:" onclick="javascript:CloseShoppingDialog();">
<img src="<%= BVSoftware.Bvc5.Core.WebAppSettings.SiteStandardRoot %>BVModules/Themes/SMU/images/ContinueShopping.gif" width="220" height="39"
alt="" /></a><br />
<asp:LinkButton runat="server" PostBackUrl="~/Cart.aspx">
<img src="<%= BVSoftware.Bvc5.Core.WebAppSettings.SiteStandardRoot %>BVModules/Themes/SMU/images/Checkout.gif" width="220" height="39" alt="" />
</asp:LinkButton>
</div>


there is no anthem on the checkout link then also this is hapaning.

i have one quesiton. i have migrate my site from bvc5.4 to bvc5.7

when i attached my another bvc5.7 db this is not happening but when i attached converted db this onclick event is added to linkbutton so is there any setting related to this in database?

Edited by user Thursday, March 14, 2013 6:27:08 AM(UTC)  | Reason: Not specified

Aaron
#5 Posted : Thursday, March 14, 2013 7:52:00 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Even know you're not using an Anthem button it looks like your LinkButton control is wrapped by an Anthem panel, so when you click the LinkButton and cause a postback, the Anthem panel is making it an AJAX postback. Without seeing your code (i.e. your VB.NET code for the page and any related controls) it's difficult to debug.

If you're seeing a different behavior between two databases then it could be related to your settings, though the different setting is only hiding the problem in the code. Anyway, take a look at the Cart Settings section of the Orders option page in the admin (Options >> Orders). Specifically compare your settings for the following:

  • Redirect to Shopping Cart After Item Is Added
  • Display Up Sells When Adding Item to Cart
  • Display Cross Sells When Adding Item to Cart
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
rv
rv
#6 Posted : Thursday, March 14, 2013 7:59:48 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
Redirect to Shopping Cart After Item Is Added is checked
Display Up Sells When Adding Item to Cart is unchecked
Display Cross Sells When Adding Item to Cart is unchecked

which file should i sent you?
rv
#7 Posted : Thursday, March 14, 2013 8:08:20 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
i have found one thing i am using same bvc application code for 2 different database of the same version in one the anthem panel and when i use 2nd db it is not happening.
Aaron
#8 Posted : Thursday, March 14, 2013 8:12:29 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: rv Go to Quoted Post
Redirect to Shopping Cart After Item Is Added is checked
Display Up Sells When Adding Item to Cart is unchecked
Display Cross Sells When Adding Item to Cart is unchecked

Are these settings the same in both databases?

Originally Posted by: rv Go to Quoted Post
which file should i sent you?

  • Product.aspx
  • Product.aspx.vb
  • .ascx for your modal control
  • .vb for your modal control
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
rv
#9 Posted : Thursday, March 14, 2013 8:22:09 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
yes settings are same in both database

there are 3 folders where product.aspx is exist which one i will sent you.

Edited by user Thursday, March 14, 2013 8:23:18 AM(UTC)  | Reason: Not specified

File Attachment(s):
bvc.rar (3kb) downloaded 2 time(s).

You cannot view/download attachments. Try to login or register.
rv
#10 Posted : Thursday, March 14, 2013 8:36:43 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
here is the product.aspx

i have attached all 4 folders which contains it.
but the current product template is bvc5.

before there the product template is BVC 2004 Layout
File Attachment(s):
bvc product.zip (34kb) downloaded 2 time(s).

You cannot view/download attachments. Try to login or register.
rv
#11 Posted : Thursday, March 14, 2013 8:52:31 AM(UTC)
rv

Rank: Member

Joined: 2/21/2013(UTC)
Posts: 18
Location: Ahmedabad

Thanks: 4 times
Hi Aaron,

I think i found the problem.

In bvc 2004 layout the add to cart button is wrapped by anthem panel.
so that's why it's not working.

thanks for your help.
Aaron
#12 Posted : Thursday, March 14, 2013 8:58:53 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Great!
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
rv
Steve95
#13 Posted : Thursday, March 14, 2013 1:52:13 PM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 256

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
Glad you managed to get this resolved. I have seem a similar issue on themes which have updated the meta http-equiv within the BV theme

for instance if your theme includes something like the tag below

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

Instead of the usual

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

You will see some ajax related errors, however they are very hard to replicate outside of the add button such as the checkout screen for instance.
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012