I've got Onepage and Goodcheckout enabled
I've copied the success.phtml to my active theme folder but it's showing blank success page content. I can see the header but the rest of the page is blank
I activated debug but no errors showing, why would the succcess.phtml not show correctly while using this extension?
You can test by going here -https://www.premiumpetfoodonline.com.au/catalogsearch/result/?cat=0&q=test1-2kg
Checkout and you'll see the success page
This piece of code at the top of the success.phtml had been altered, I removed the title call and block request as it isn't needed as header is already set
<?php echo $this->getMessagesBlock()->toHtml() ?>
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
Related
I am new in magento.I want to change footer part.
my footer file path: D:\wamp\www\magento\app\design\frontend\base\default\template\page\html\footer.phtml.
<div class="footer-container">
<div class="footer">
<?php echo $this->getChildHtml() ?>
<p class="bugs"><?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <strong><?php echo $this->__('Report All Bugs') ?></strong> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?></p>
<address><?php echo $this->getCopyright() ?></address>
</div>
Now I want to remove Help us to keep sentence.
please tell me how to remove this
I have deleted fulll then also it is shown in frontend.
Go to admin section System>Configuration>Advanced>Developer>Debug Then enable Template path hints. After this refresh your site frontend.
You will get the correct information from which theme your file is being loaded.
Then change the correct footer.phtml file.
This message will go.
I think you are new to magento.
For better knowledge read Design Packages
This is a cache issue.
Navigate to your site's cache:
public_html/var/cache //Or where ever the route of your Magento cart is.
Then Delete all the things in the var directory!
Refresh your site and your changes should appear.
i added advanced search option on my home page by placing this code in
/app/design/frontend/default/hellowired/template/page/2columns-right.phtml
<div>
<?php echo
$this->getLayout()->createBlock('catalogsearch/advanced_form')->setTemplate('catalogsearch/advanced/form.phtml')->toHtml()
?>
</div>
when press submit button then it giving me nothing. so result are not showing... please help
Check if you are getting the post url of the form as {{base-url}}/catalogsearch/advanced/result/
I found this very nice tutorial here: http://www.phparrow.com/magento/magento-create-a-simple-module/ on creating a simple Magento Module. I was hoping I could figure out how to put Magento's default welcome message into a module. See, it appears Magento's default welcome message is part of the header because when you look at the layout with template paths turned on the welcome message doesn't have a template of it's own.
The reason I want to add the welcome message to a module is because my page cache caches the header and along with it the welcome message. The welcome message has "Welcome..." then "Welcome...(Customer Name)" then "Welcome...(not Customer Name?)" etc.
The page cache will cache what ever it happens to cache! I mean it might cache a customers name on one page and some other state on another page.
The code in the header.phtml is:
<p class="welcome-msg"><?php echo $this->getWelcome() ?> <?php echo $this->getAdditionalHtml() ?></p>
I need to somehow add this to a "module block" so I can tell my page cache not to cache this block. Understand?
The tutorial above explains how to create a module very well but it creates a "new page" and I need to some make a module for this welcome message.
Thank you
I'm currently working on making a login form in home page.
but after each invalid attempt the messages are not showing in proper place
i.e
The "invalid email and password " message showing in account dashboard and forgotpassword page.
This means that you have forgot to call group messages block in your template
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
I added the following line in my template and it works:
<?php $message1=Mage::app()->getLayout()->getMessagesBlock()
->setMessages(Mage::getSingleton('customer/session')
->getMessages(true))->getGroupedHtml() ; ?>
thanks for the help.
This means that you have forgot to call messages block in your template. add this code , its work for me
<?php echo $this->getMessagesBlock()->toHtml() ?>
I'm trying to do something that should be quite easy, but after a while I realize that can be tricky in Magento.
So, my goal is pop-up (or pop-down) an windows that display information for the client that just logout. In my logout Success it just redirect to main page after 5 seconds.
The correct place to do it in the code/file I suppose that will be here (logout.phtml):
<div class="page-title">
<h1><?php echo Mage::helper('customer')->__('You are now logged out') ?></h1>
</div>
<p><?php echo Mage::helper('customer')->__('You have logged out and will be redirected to our homepage in 5 seconds.') ?></p>
<script type="text/javascript">
//<![CDATA[
setTimeout(function(){ location.href = '<?php echo $this->getUrl() ?>'},5000);
//]]>
</script>
Thanks in advance for any help.
You should be able to do what you are trying to do by editing that template. Does your JS code not end up being output? If not, make sure you are editing the right logout.phtml, depending on how your themes are setup there could be several. There's a developer setting to show the full path to blocks when viewing a page, that can be very helpful in making sure you are editing the correct template.
Also, I'm not sure if your JS code is just a test to see if it's being output, but it doesn't look like it would popup a window even if it were correctly output. The code looks like it would just redirect the user back to the main page of your site.
If you're looking for the JS code to create a popunder window, then something basic like this should work:
window.open('http://yoursite.com/popunder.html','Pop Under Window','').blur();
window.focus();
You can set the window attributes as you see fit by using the 3rd parameter of the open function.