Magento - template displays correctly once Layouts in Cache Storage is Disabled - magento

I have created a custom mini-header & mini-footer phtml file that I use within a Magento installation but only on the checkout pages. (These are basically very minimal header/footers with very little content)
e.g
IF (any CHECKOUT page)
Use mini-header & mini-footer
ELSE
Use the default header/footer files for that theme.
I have a CMS static block called 'Footer Links' that will sometimes seem to override my own 'mini-footer.phtml' - it is inconsistent, sometimes on a checkout page I will see my mini-footer and another times it obvious that the 'Footer Links' static block is appearing (with 15+ html links).
At the moment the only I way I can force Magento to use my custom mini-footer.phtml is to DISABLE the 'Blocks HTML output' Cache Storage Management within the Magento Admin, however I want to have this option ideally turned on for a live site for extra speed performance.
Can anyone suggest what to do?

File this one under Works as Designed, although your question is a little unclear. Using stateful information within a cached block or the template of a cached block will lead to one state being added to the cache, and your conditional won't run again until the cache expires the entry.
As for a solution, it's not 100% clear from your question how you've set this up. You say you have a
mini-header.phtml
mini-footer.phtml
Then you have some conditional logic, but you don't mention where this conditional logic is.
Then you say you have a CMS static block called Footer Links.
You don't mention how mini-header.phtml or mini-footer.phtml are added to your layout.
You don't mention how you're adding the CMS static block.
All these details will matter if you want to find a solution to your question.

I have the same issue here. After installing a theme extension, I have come to notice that things go haywire when I click on a category: Static blocks appear in random locations. To sum it up, I got better results by disabling "Blocks HTML Output" cache.
I am tempted to try to install a different cache implementation.

My theme designer mentioned to me that this is a well known bug and that patching would help solve the problem. Although I was not able to solve the problem with a patch, I was able to solve the problem by upgrading C.E. from 1.9.2.0 to 1.9.2.1

Related

Magento showing different product quantities on different pages

We have a Magento site running on version 1.7.0 on the Argento theme that seems to be having intermittent issues with products not appearing. This appears to happen on certain pages and not others.
For example, if you add a product from the homepage or single category pages, it will show immediately as being part of the cart (note, Argento uses AjaxPro for the cart). However, once you navigate to another page, say "My Cart" or "Checkout" the total will show as zero. Doing a hard-refresh on the browser will update the total.
Additionally, if you open the Chrome Dev tools, navigate to "Network" and then check "disable cache" everything runs perfectly.
Things we have tried to resolve this:
Flushing/Clearing/Disabling the Magento cache. Seems to make things slightly better but doesn't clear up the issue.
x-cache-control meta tag. Same as above, issue seems to be less frequent but still definitely appearing.
Turn off AjaxPro. Our initial belief was that this plugin was causing issues, but turning it off has no effect.
Re-Index. Has no effect.
Added $.ajaxSetup({"cache" : false}) at the top of our scripts. This also has no effect.
Any advice or tips on where to look next would be appreciated.
It turns out that our hosting provider had set up the installation with the sessions stored in memcache. We switched this over to file storage in our local.xml and it fixed the issue.

Magento Page Pagination Sort By Is Missing (Gone all of sudden)

I don't see any more sort by (best match etc) or page numbers It's gone and I have no idea why or how I have checked all .xml files they are all correct it's not the issue. What can I check more to fix this? Html files also seem fine I have reindex all nothing!
So you have disabled layered navigation module in admin area. It's not the real "disable", but disable of the module output. All module blocks becomes "hidden". The module rewrites the toolbar block with the sorter and pager, so it also has became invisible.
To restore the block display please enable modules output back.
If you have questions regarding the module, please contact us via support, as this site denies discussion of paid modules.

Lost Pagination Toolbar in Magento 1.8.1

Hello
I have a live Magento 1.8.1 site where pagination was working on product list pages (such as category pages) but I’ve been adding and removing a number of extensions / plugins and I’ve lost all pagination. Unfortunately, I can’t remember the last time it was working so I can’t think precisely what extension might have caused the problem.
I’ve checked all the usual fixes such as here but my catalog.xml is fine (and all problems seem to only relate to 1.4 - 1.6). I am reluctant to upload new files which I actually think might fix it but I also know how temperamental Magento is! Everything else is working perfectly for the first time after a month of serious hard work including a couple of reinstalls!
The website is next2new.net and although you can see a custom theme, there is also no pagination on the default magento theme which indicates to me it’s a core problem somewhere.
Any thoughts on any files I could check / change before I do a big overwrite?
Many thanks
Following things you can try in order to Cope-up with this situation :
1) Disable those modules which is overriding Catalog module and check once again.
2) Check whether Toolbar block is calling or not using Template and Block Path hints using Magento Admin.
3) If you are using any template, possibly there could be a setting in Admin section to Manage toolbar.

Google Checkout button not appearing on cart page

Hope you guys don't mind me asking this question, but I find myself at a loss to why this is happening and need some suggestions on how I might resolve the issue. If I shouldn't ask these kinds of questions, please let me know.
Currently I am working on a Magento 1.9 site that was upgraded from 1.8 and when I enabled Google Checkout, the button doesn't appear on the cart page (/checkout/cart/). I went back to the default template that Magento uses and it still didn't work.
I then tried enabling Google Checkout on a clean copy of Magento 1.9 and it worked. Then I tried replacing the core mage checkout folder with the ones from the clean copy of Magento and that didn't work.
So I have test the layout, template and core mage checkout files and nothing happens.
I also tried accessing Google Checkout directly with this piece of code:
<?php echo $this->getLayout()->createBlock('googlecheckout/link')->setTemplate('googlecheckout/link.phtml')->toHtml(); ?>
Does anyone have any suggestions? Thanks so much!
First, turn the default template on for testing, just to be sure. Clear all your caches and try again. Make sure that there aren't any "hidden" elements on the page displaying it. It may be helpful to turn on template hints to see if the block exists as anticipated but does not render any content, or if the block actually does not exist as anticipated.
If no joy, check to make sure that Google's critera are met. Taking a look at that template and block, there are a few checks that need to pass to get checkout:
Mage::getModel('googlecheckout/payment')->isAvailable($quote)
$quote->validateMinimumAmount()
Every single product in the cart must return false to $item->getProduct()->getEnableGooglecheckout() (otherwise, ti looks like the template wants to display an image)
Report back if you still have problems :)
Thanks,
Joe

No Magento Header & Custom Navigation

I can't seem to figure out how to disable the header as a whole. I have installed the blank theme, and have been playing in the page XML, but to no avail. I also cannot seem to switch from 2columns-right to 2columns-left, even though i've run searches for every damn file that includes the phrase and swapped it. I'm wondering if it's just not displaying to me, but I've disabled my catch, repeatedly clear it, and have even tried disabling cookies. Anyway, once all this is done, how do i add static pages and my own navigation.
Sorry I know this covers several questions, but I have been tirelessly searching and experimenting on my own to no avail.
thanks!
I can answer the part about adding new static pages.
Go to Admin , Under CMS->Manage Pages ... choose add new Page
Well, I have some of the problems. I did lots of modification to default/mystore/layout/something.xml but saw nothing happen in the frontend.
Then I did the same modification in default/default/layout/something.xml and now changes where done.
For now for me it seems that I can only modify template files in default/mystore/template but not layout files in default/mystore/layout.
Maybe your issue is the same, that Magento is using the default files and not your theme files?

Resources