HomeHome Product Discus... Product Discus...SmithCartSmithCartCritical Error with Mini CartCritical Error with Mini Cart
Previous
 
Next
New Post
3/29/2011 4:23 AM
 

DNN: 5.5.1

SC: 4.24

Issue: I am using the mini cart module seperately from the buynow module.

I have the mini cart module set to display on all pages of my site, so that my user can access this and checkout from anywhere in the site. However, when I click on the Checkout button in the minicart module when I am on any other page in the site except the assigned buynow page, I get the following error:

A critical error has occurred.
Unable to cast object of type 'System.Web.UI.WebControls.Button' to type 'System.Web.UI.WebControls.ImageButton'.

I get this error when I am on the product details page as well ...

The minicart module is setup correctly (ie. it has been assigned the buynow page detail).

 

 
New Post
3/29/2011 6:05 AM
 
Is the mini cart enabled in both the BuyNow and Product Details modules' settings?

Thanks,
Christian
 
New Post
3/29/2011 6:09 AM
 

Hi Christian

Yes it is enabled in both.

 
New Post
3/30/2011 6:46 AM
 
any further assistance with this Christian?
 
New Post
3/31/2011 6:31 PM
 

If you go into the mini cart settings and configure the "BuyNow Page Name" from the dropdown list it wont cause an error.  We were able to confirm that when you dont configure  the "BuyNow Page Name" in the settings it does cause an error.  We have fixed the issue and post will post a hotfix to the cart downloads page today.  Thanks for reporting the issue!

 


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
4/1/2011 1:44 AM
 
For the record - I HAD configured my minicart settings with a buynow page name, and still got the error. Check my first post on this issue (last sentence).

Will watch for the hotfix, and report back once I have updated.
 
New Post
4/2/2011 7:29 AM
 

FWIW, should it be set to the BuyNow page instead of the detail page?

EDIT: Scratch that, I did not read far enough.

 
New Post
4/18/2011 3:26 AM
 
UPDATE: I have just installed 4.26, and now the following happens :

1. I add the mini-cart module to my buynow page (shop.aspx)
2. I configure the mincart settings with buynow page and theme and update
3. I access mc settings again and set minicart module to show on all pages

If I am on my buynow page, I have no worries with the mini-cart working.

However, if I access it from any other page in my site (bear in mind I configured it to show on all pages), then the module appears to "lose" its setting for the buynow page and theme ... its weird that it loses these - I have to basically go to all other pages in my site to configure the module - which kind of makes the "add module to all pages" unuseable - I should only have to set this once, and set the mini cart module settings once ...

Please look into this and see if you can replicate it as it is definitely a bug.
 
New Post
4/18/2011 7:29 AM
 

You may be the first to use the minicart on every page of your website. Note that the DotNetNuke core has many unresloved issues with positiong, performance and caching when using display on all pages.

In any case, I agree that it should work if you want to use it..

 

 
New Post
4/18/2011 9:32 PM
 
Sounds like when you check the box for "display module on all pages" the settings for the mini cart module are not being copied with the module to all the other pages. I googled it a bit and read a few posts that pointed to caching being the issue and they recommended lowering your caching setting in dnn. Also here is a good post in the dnn forum that may help http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/198/threadid/388081/scope/posts/Default.aspx . Does the mini cart work fine for you if you add it to each page using the dnn control panel and configure the settings?

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartCritical Error with Mini CartCritical Error with Mini Cart