Model.MerchProduct is my Merchello product picker on my DocumentType.
Do I need to create my own controller for doing that?
In the demo project Fasttrack I saw this action wrote down inside the .cshtml file:
@Html.Action("BasketForm", "StoreBasket", new { area = "Merchello" })
When I added the logic from The Merchello.Web.Store project (from Github) to my Visual Studio solutiond and try to build it.
It said that I allready have the models and controllers (with are inside an Merchello.dll).
Could't find more information inside the documentation about this.
So my question are:
Do I need to create my own controllers for posting products and so
on?
Is there some kind of public action where I can hoop in from my
views (posting to)
You can create your own controllers which extend from the current ones - in this case, I have an extension controller for the basket form which reads as:
@Html.Action("BasketForm", "StoreBasketExtend")
It uses all the existing models, but with this I've copied the existing logic from Merchello and then added in some bespoke code I need. You can do the same thing for adding products to your basket, applying coupons etc.
Thanks for your reply! We extended the basket controller and it works fine right now.
An other question:
Right now i'm using Fastrack for rendering the Checkout (fine for now), but got an error on using this reference: Merchello.FastTrack.Ui
I've builded my project (and the models, Models namespace is Umbraco.Web.PublishedContentModels)
Do I need to change someting, for example I can't use: ExampleUiHelper?
Also;
I saw that the checkout is devided into serveral pages, could we also make this as one page (do you have an axample of what to change).
It's been a while, but I'm sure I stripped out all references to ExampleUiHelper as they were also throwing errors for me.
In terms of having a one page checkout, I can tell you from experience it's not easy - it's doable, but you are making a lot of changes to Merchello to get it up and running. An issue I ran into was creating a "fake" (or blank) Invoice at the start of the process, when this can normally only be created once shipping details have been entered (someone may correct me here with a nice workaround!).
It would be easier to create it as a multi-stage checkout and loading the next section through Ajax.
Try without the area = "FastTrack", in your action. That is reserved for action methods decorated with an area attribute of "FastTrack", so they can be separated from other Plugins and custom code.
If you have writting your own Action Method in the MolliePaymentController you should not need to specify area at all (or possible area = "")
First website with Merchello
Hi,
I'm very new to Merchello and would like to use it in an website i'm creating right now.
I've added the Package trough the dashboard and installed the Merchello.Core NuGet package (version 2.6) in Umbraco 7.10.2.
Inside my view I saw I had an helper like:
Model.MerchProduct is my Merchello product picker on my DocumentType.
Do I need to create my own controller for doing that? In the demo project Fasttrack I saw this action wrote down inside the .cshtml file:
When I added the logic from The
Merchello.Web.Store
project (from Github) to my Visual Studio solutiond and try to build it. It said that I allready have the models and controllers (with are inside anMerchello.dll
).Could't find more information inside the documentation about this.
So my question are:
Could you please point me in the right direction?
You can create your own controllers which extend from the current ones - in this case, I have an extension controller for the basket form which reads as:
It uses all the existing models, but with this I've copied the existing logic from Merchello and then added in some bespoke code I need. You can do the same thing for adding products to your basket, applying coupons etc.
Hope this helps!
Thanks for your reply! We extended the basket controller and it works fine right now.
An other question: Right now i'm using Fastrack for rendering the Checkout (fine for now), but got an error on using this reference:
Merchello.FastTrack.Ui
I've builded my project (and the models, Models namespace is
Umbraco.Web.PublishedContentModels
)Do I need to change someting, for example I can't use:
ExampleUiHelper
?Also; I saw that the checkout is devided into serveral pages, could we also make this as one page (do you have an axample of what to change).
It's been a while, but I'm sure I stripped out all references to
ExampleUiHelper
as they were also throwing errors for me.In terms of having a one page checkout, I can tell you from experience it's not easy - it's doable, but you are making a lot of changes to Merchello to get it up and running. An issue I ran into was creating a "fake" (or blank) Invoice at the start of the process, when this can normally only be created once shipping details have been entered (someone may correct me here with a nice workaround!).
It would be easier to create it as a multi-stage checkout and loading the next section through Ajax.
Thank you, will look into it.
Currently in my ResolvePayment.cshtml I have added the following line:
case "Mollie": @Html.Action("PaymentForm", "Mollie", new { area = "FastTrack", view = "~/Views/Merchello/Checkout/Mollie/PaymentForm.cshtml" }) break;
The websites gives me the folowing error:
My logic:
And:
And the view that i would like to render:
What is missing? Tried the Name 'Mollie', 'MolliePayment' inside my html.Action.
Hi Runnic
Did you end up resolving this?
I'm stuck at the same point.
Runnic,
Try without the area = "FastTrack", in your action. That is reserved for action methods decorated with an area attribute of "FastTrack", so they can be separated from other Plugins and custom code.
If you have writting your own Action Method in the
MolliePaymentController
you should not need to specify area at all (or possible area = "")is working on a reply...