HomeHome Product Discus... Product Discus...SmithCartSmithCartCustomized Smith Cart for each eCommerce clientCustomized Smith Cart for each eCommerce client
Previous
 
Next
New Post
4/17/2011 10:20 PM
 
Hello:

In the Smith Cart How To forum, I talked about creating a parallel set of Smith Cart modules using the Smith.BuyNow.Custom type of naming conventions and then creating a Smith.Cart.Custom.dnn manifest file to install the parallel ascx and other UI files.

However, it looks like this method has hit a snag indicated in the following error:

AssemblyVersion: 5.4.1
PortalID: 3
PortalName: Custom
UserID: 1
UserName: host
ActiveTabID: 544
ActiveTabName: Agreement Details
RawURL: /Services/AgreementDetails.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.custom.com/Services/AgreementDetails.aspx
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b4b7663e-6e7a-4af6-8c7d-f02844c31cc9
InnerException: Can't get ModuleId for given module name 'Smith.BuyNow'
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.ProductDetail.ProductDetails.GetModuleIdByName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Can't get ModuleId for given module name 'Smith.BuyNow' ---> System.ApplicationException: Can't get ModuleId for given module name 'Smith.BuyNow' at Smith.DNN.Modules.ProductDetail.ProductDetails.GetModuleIdByName(Int32 tabId, String moduleName) at Smith.DNN.Modules.ProductDetail.ProductDetails.AddToCart(Int32 ProductID, Decimal Quantity, Decimal price, Boolean isRequired, Int32 bundleID, Boolean inBundle, Decimal myWeight, Int32 catID) at Smith.DNN.Modules.ProductDetail.ProductDetails.ibAddtoCart_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:

It looks like the string 'Smith.BuyNow' is hardcoded into the aspx code. Is that correct?

Unless you know of a way around this, (such as changing Smith.BuyNow.Custom to Smith.BuyNow in the DNN Modules table) it limits us to one Smith Cart to one DNN Install. Apart from the different Custom styles for each client, the server certificate for HTTPS is also another constraint that tends to make us use one Smith Cart per DNN Install.

Regards,
Guy

 
New Post
4/18/2011 9:28 AM
 

FWIW, the limitations of https bindings to a single IP has nothing to do with SmithCart, DotNetNuke or IIS.

SSL negotiation (certificate exchange) occurs before HTTP and before the server knows which hostname the client wants.

 

There are no complete workarounds.An ssl certificate can be bound to a specific port. Wildcard certificates can use one certificate with multiple subdomains on one domain. SAN (Subject Alternative Name) certificates can secure multiple domains under one certificate. The last solution is SNI (Server Name Indication) but it is not widely available yet.

 

You can use a single certificate for multiple portals, but the name will be different than the domain.

 

 
New Post
4/18/2011 9:04 PM
 

Guy,
I'm not totally clear on what your trying to do but if you want to host many different carts in a single dnn install you can do that with one install the cart. If you want to style the cart differently by portal here is a "how to" article on it http://www.smith-consulting.com/Forums/forumid/13/threadid/3348/scope/posts.aspx . If make are your styling changes in the portal.css like the article describes when you upgrade your Smith Cart you wont lose any changes. and of course when you upgrade the cart all the data in the sql tables like products and orders is never overwritten and always preserved.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
4/19/2011 10:54 AM
 
Thank you for your answer Scott.

Given that it's difficult to convey context via blog, I'd like to distill my query done to one question.

Does productdetails.aspx.cs use the string 'Smith.BuyNow' in its source code?

Thank you.
Guy
 
New Post
4/19/2011 11:06 AM
 
Scott:

I've found that changing portal.css is insufficient in a lot of cases where clients simply want to remove whole sections (like the tabbed bottomdiv in productdetail.ascx). The other place where customization is not supported are the actual graphic files for the buttons and things. If you would put css classes where ever you use images, then maybe it would be possible to replace/customize those images either with jQuery or css.

Regards,
Guy
 
New Post
4/19/2011 12:43 PM
 

Guy,

What version of the cart are you running?    In cart v4.21 we released button themes so all the buttons are in css now.  In the next version of the cart 4.28 we are moving the "Progress" graphic that display welcome, payment, etc to css so after 4.28 is released all the graphics will be in css.  I will have programming add a css class for the visibility of the tab control so you can turn that on/off via css.  If you have any more suggestions that will make it easier for you to style per portal let me know and I will get those added to the cart.

Thanks for you feedback!

Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
4/19/2011 2:27 PM
 
Scott:

Last time I studied your SmithCart source in any detail was back before your version 4. I am encouraged to hear that you have put CSS flexibility in your source. I will reassess and perhaps revise my approach to customization based on these improvements.

Regards,
Guy
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartCustomized Smith Cart for each eCommerce clientCustomized Smith Cart for each eCommerce client