How to add Custom error message in magento

Softwares, CDs & DVDs.
Tell us about updates, SEO softwares, Microsoft Windows, website creation and development software, Adobe CS, converter CDs, etc
Information on training, manuals, Journals, Transcripts, etc. Please note that piracy or any form of intellectual property theft is recognized to be illegal here and will always not be tolerated in this forum.
Forum rules
Softwares, CDs & DVDs.
Tell us about updates, SEO softwares, Microsoft Windows, website creation and development software, Adobe CS, converter CDs, etc
Information on training, manuals, Journals, Transcripts, etc. Please note that piracy or any form of intellectual property theft is recognized to be illegal here and will always not be tolerated in this forum.

How to add Custom error message in magento

New postby Jack Hard » Thu Apr 25, 2013 6:15 am

I included a link named track your order in footer. If user click this link without logged in, it should show error message like please login to track your order.
Jack Hard
 
Posts: 6
Joined: Fri Dec 14, 2012 5:29 am
Location: Ahamedabad(Gujarat)

Re: How to add Custom error message in magento

New postby MikeTaylor » Mon Feb 27, 2017 6:19 am

Unfortunately in any store things once in a while don't fill in as planned. When it happens you need to ensure that the client gets the opportunity to see a valuable blunder message which permits him/her to keep shopping. All the more significantly you likewise need to guarantee that the blunder messages are marked accurately to not befuddle the client encourage.

Magento is mostly use for eCommerce site. it is easy for it.
you can use addError() function to include your error message in session
Insert this code in your controller file

$session = Mage::getSingleton('customer/session');
if (!$session->getCustomerId()) {
Mage::getSingleton('customer/session')->add-error('You are not logged in');
}
Hire Magento developers from Brainvire.
Visit : https://www.brainvire.com/hire-magento-developers/
MikeTaylor
 
Posts: 1
Joined: Mon Feb 27, 2017 6:04 am

Re: How to add Custom error message in magento

New postby Trista » Tue Oct 03, 2017 8:41 am

I guess you will need a developer help to build you a custom error page there is some backhand coding you need to do. Even on my website of this page http://www.writing-victors.co.uk/assignment-services/ i needed to build a custom 404 error page and to do that we need to fix thing from wordpress coding without it we can't make a custom error page.
Last edited by Trista on Sat Jan 20, 2018 9:24 am, edited 1 time in total.
Trista
 
Posts: 1
Joined: Tue Oct 03, 2017 8:37 am

Re: How to add Custom error message in magento

New postby ameliyawi » Thu Oct 19, 2017 7:44 am

I think without the help of the developer http://corevalue.net/[quote="Trista"]I guess you will need a developer help to build you a custom error page there is some backhand coding you need to do. Even on my website of this page http://www.writing-victors.co.uk/assignment-services/ i needed to build a custom 404 error page and to do that we need to fix thing from wordpress coding without it we can't make a custom error page.[/quote] you do not go
I think without the help of the developer http://corevalue.net/ you do not go
ameliyawi
 
Posts: 1
Joined: Thu Oct 19, 2017 7:37 am


Return to Softwares, CDs, DVDs & Training

Who is online

Users browsing this forum: No registered users and 1 guest

Banner Advertisement

Click here to upload banner advert
 

cron