I'd like to create a shopping cart price rule that gives a user 10% off their order when and if they complete a process on my Magento site.
There's a method here that inserts the rule directly to the database. That's a bit invasive for my tastes.
How would I go about this using Magento methods?
...
pleas help guys, my custom model binder which has been working perfectly
has starting giving me errors
details below
An item with the same key has already been added.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where...
Hi Guys,
I'm having a bit of trouble with knowing how I can save items from a list I have in Application state in the global.asax as- Application[""].
My controller basically takes in some user input, I then pass this to another classes Method as parameters it gets added to a list all the time. This data thats getting added to the list...
It's a MVC question.
Here is the situation:
I am writing an application where I have "groups".
You can invite other persons to your groups by typing their email and clicking "invite".
There are two ways this functionality can be called: a) web interface and b) API
After the mail sending is over I want to report to the user which mails ...
http://www.freeimagehosting.net/image.php?27ea0a7e6d.png
I want to Develop a similar sort of wizard mechanism for the design like in the picture above .How would I do that. Please reply how would i code the above mechanism . At this time I am completely blank so any idea will be great.
...
Can i create a gridview control in Asp.net MVC,and set its DataSource propertie and DataBind method,mormally as in web forms?
...
Hello,
I am using mvc and jQuery and I am trying to display someone's profile with some additional institutions that the person belongs to. I am new to this but I've done something like this in ProfileControler:
public ActionResult Institutions(int id)
{
var inst = fr.getInstitutions(id);
return Json(inst);
}
...
Hello everybody,
I have to populate javascript code in html layout (hidden fields, method params) with string data from model.
Html.Encode is not appropriate for my task because it encodes ' symbol, bypass : (that ruines object attributes declaration) and so on.
I wrote static helper class that is used from View like this:
alert('...
I'm using a very simple Ldap query in my asp.net mvc 2.0 site:
String ldapPath = ConfigReader.LdapPath;
String emailAddress = null;
try
{
DirectorySearcher search = new DirectorySearcher(ConfigReader.LdapPath);
search.Filter = String.Format("(&(objectClass=user)(objectCategory=perso...
Hi
I have ArrayList in my Model and want to iterate through it in my javascript. I am using following code but its giving me error : CS0103: The name 'i' does not exist in the current context
for(var i=0; i <= <%=Model.KeyList.Count%>; i++)
{
alert('<%=Model.KeyList[i]%>');
}
How to get rid of this. its ...
I have a project which upload multiple files so kindly if any one have the code of file upload then please share the code.
...
is there any way in jquery dynatree plugin to prevent parent node from deselecting when unselecting the child node?( in the persistance checkbox example dynatree checkbox example
...
Hi, I have a couple of controllers on my site which are handling form data. The forms use AJAX and I have quite a few methods across different controllers which are having to do some specific processing to return errors in a JSON encoded format - see code below. Obviously this isn't DRY and I need to move this code into a single helper f...
How build ASP.NET MVC View page from XML file?
<?xml version="1.0" encoding="utf-8" ?>
- <TecajnaLista>
- <Valuta>
<Drzava>Australija</Drzava>
<Oznaka>AUD</Oznaka>
<Sfr>036</Sfr>
<Jedinica>1</Jedinica>
<Iznos>4.385692</Iznos>
</Valuta>
- <Valuta>
<Drzava>Japan</Drzava>
<Oznaka>YPY</Oznaka>
<Sfr>392</Sfr>
<Jedinica>100</Jedinica...
What is the best logging pattern for asp.net mvc 2 using log4net? When should I initialize logger how should I access logger instance?
...
Which Javascript Framework do you recommend me to create a medium-large size Single-Page web application?
These are some alternatives I'm considering at this point:
JavascriptMVC
Sammy
SproutCore
Make my own customized implementation on top of jquery
I plan to make use with ASP.NET in the server side, in case it matters.
...
what is below codes for?(in Zend Framework)
i mean what is the job of these?
$this->view->default
$this->view->action
...
Hi,
I have a REST-service exposed through Spring-MVC. I have a particular method which is correctly mapped and called through a HTTP-call. My Spring application contains the HibernateTransactionManager and transactions are configured through @Transactional-annotations. I annotated the method like this:
@Transactional(readOnly = true)
@...
I am a Qt C++ programmer with some interest in Gtk+. I wonder how Gtk+ has implemented Model-View-Controller. In Qt they basically screwed it up, and have basically admitted that themselves. I can try to explain the flaws in Qt and for those who know Gtk+ perhaps you can answer whether Gtk+ has the same or worse problems:
Access to any ...
I checked out MVC months ago and didn't really get it.. but recently as I have become a better programmer I think it is making sense.. Here is my theory.. tell me if I got it Right
In the 90s for Microsoft Devs we had Classic ASP. This mixed VBscript and HTML on the same page. So you needed to create all the HTML yourself and mix HTML a...