Giter Site home page Giter Site logo

ecommerce's Issues

Dialect does not support DbType.Double Parameter name: typecode

Hello everybody,

by installation with mysql I get an ArgumentException with this Stacktrace:
at NHibernate.Dialect.TypeNames.Get(DbType typecode)
at NHibernate.Dialect.TypeNames.Get(DbType typecode, Int32 size, Int32 precision, Int32 scale)
at NHibernate.Dialect.MySQLDialect.GetCastTypeName(SqlType sqlType)
at NHibernate.Criterion.AvgProjection.ToSqlString(ICriteria criteria, Int32 loc, ICriteriaQuery criteriaQuery, IDictionary2 enabledFilters) at NHibernate.Loader.Criteria.CriteriaQueryTranslator.GetSelect(IDictionary2 enabledFilters)
at NHibernate.Loader.Criteria.CriteriaJoinWalker..ctor(IOuterJoinLoadable persister, CriteriaQueryTranslator translator, ISessionFactoryImplementor factory, ICriteria criteria, String rootEntityName, IDictionary2 enabledFilters) at NHibernate.Loader.Criteria.CriteriaLoader..ctor(IOuterJoinLoadable persister, ISessionFactoryImplementor factory, CriteriaImpl rootCriteria, String rootEntityName, IDictionary2 enabledFilters)
at NHibernate.Impl.MultiCriteriaImpl.CreateCriteriaLoaders()
at NHibernate.Impl.MultiCriteriaImpl.List()
at NHibernate.Impl.FutureCriteriaBatch.GetResultsFrom(IMultiCriteria multiApproach)
at NHibernate.Impl.FutureBatch2.GetResults() at NHibernate.Impl.FutureBatch2.get_Results()
at NHibernate.Impl.FutureBatch2.GetCurrentResult[TResult](Int32 currentIndex) at NHibernate.Impl.FutureBatch2.<>c__DisplayClass11.<GetFutureValue>b__0() at NHibernate.Impl.FutureValue1.get_Value()
at MrCMS.Web.Areas.Admin.Services.Batching.BatchRunUIService.GetCompletionStatus(BatchRun batchRun) in C:\Users\Richard\Documents\Visual Studio 2015\Projects\ECommerce\MrCMS.Web\Areas\Admin\Services\Batching\BatchRunUIService.cs:line 86
at MrCMS.Web.Areas.Admin.Events.UpdateBatchRunResult.Execute(OnUpdatedArgs`1 args) in C:\Users\Richard\Documents\Visual Studio 2015\Projects\ECommerce\MrCMS.Web\Areas\Admin\Events\UpdateBatchRunResult.cs:line 24

Recurring billing for subscription based products

Hello,

I want to sell a monthly subscriptions for various services and would like to manage this through MrCMS Ecommerce.

Do you have anything in the pipeline for recurring billing for subscription based products?

Thanks

Chris

Admin bar with ACL enabled

The default base ecommerce layout view (_BaseEcommerceLayout.cshtml) uses the following code to determine if the admin bar should be shown:

@if (CurrentRequestData.CurrentUserIsAdmin && SiteSettings<SiteSettings>().EnableInlineEditing)
    {
        Html.RenderAction("InPageEditor", "InPageAdmin", new { id = Model.Id, area = "Admin" });
    }

The problem with this is that it doesn't appear to pickup the ACL rules. To fix this, in my themes I now do the following:

@using MrCMS.ACL.Rules
...
@if (CurrentRequestData.CurrentUser != null && CurrentRequestData.CurrentUser.CanAccess<AdminBarACL>("Show") && SiteSettings<SiteSettings>().EnableInlineEditing)

    {
        Html.RenderAction("InPageEditor", "InPageAdmin", new { id = Model.Id, area = "Admin" });
    }

I copied this code from the core base layout view (_BaseLayout.cshtml).

Chris

Braintree account - 3D Secure issue

I ran into a problem with Braintree and the default Braintree sandbox account. Because the default account wasn't 3DS enabled (I did request one that was) I kept getting the following message:

Merchant account not 3D Secure enabled

I fixed this by putting in a check for if 3DS is required and now call a tokenizeCard method instead of check3DSecure if 3DS is not required.

Braintree support offered a couple of suggestions like specifying the merchant ID in the setup or making the 3DS account default but I think this change handles the "3D Secure Required?" option in MrCMS.

I will create a pull request for your consideration.

Thanks

Chris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.