Back to Top

How dialog error message works in xCart?

To display message and redirect on xCart

Here I come with one more new quick and little article and This is about xcart.Well, How dialog error message works in xCart and how you redirect to next page like header function in PHP.

The message is important to say which action done on the page and sometimes you are doing customization and you want to display error, warning or information, you need to display the message which inform user about action.

so,Let’s understand the code:

you can write error message like following code:

Here,content is the message you want to display and type is the type of message and type can be:

Dialog message will display only one time on next page after the first redirect.

After displaying message, if you want to redirect the other page, you can write below line of code:

Further Read:

Enable Console in X-cart
To add Signup Bonus in X-Cart

That’s it.I hope this article is useful to someone.

Don’t hesitate to use this code in your xCart projects and post your comments if you need help. As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to create Custom regions in Drupal

Posted on 5 years ago

Bhumi

Static Methods and Properties in PHP

Posted on 6 years ago

Bhumi

How to use Change DB Prefix Plugin

Posted on 5 years ago

Bhumi

Branching and Merging in Git

Posted on 1 week ago

Bhumi

How to Count Number of Columns in MySQL

Posted on 5 years ago

Zinal

Overview of ECMAScript 6 new Features

Updated 18 years ago

Bhumi

Getting started with Amazon Web Services

Updated 18 years ago

Bhumi

Facade implementation in Laravel

Updated 18 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi