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
Related
So I'm using Prestashop 1.7.7.4 for a client's project and It's my first e-commerce site. I was planning on using WooCommerce but the client asked for Prestashop specifically so here we are.
Here's my issue: I order something on the store, the product is added to the cart, but the cart visually doesn't show that. It used to, but at some point it stopped automatically updating the cart's information unless I refresh the page.
I looked around some forums and they mentioned checking the debugger and hook positioning but I think I got those two checked because the debugger is only showing warnings regarding some missing translations, and the Cart module is positioned on the displayTop hook which is what it was by default.
The only thing I remember doing that might be related is that, while testing, I did move some modules around but then I put them back in place. So at least in the case of the displayTop hook, everything is as it was. Can't guarantee the same for other hooks, but would it matter?
Since I'm not really very savvy with programming yet, nor Prestashop, I can't figure out where I should be looking for clues.
Any ideas about what I can do to get to the bottom of this? Thanks!
Problem was solved by using the reset button for the cart module on the Modules page. Then you have to make sure the module is on the hook you want and it should be working. Thanks!
Bit of a strange one but when I go to add products to the cart on my Magento website (I'm using 1.9.3.8) the product information (image, name, etc) no longer shows up in the cart, either the preview when you hover over it or when in the cart itself. (Images in links)
The product is in there as the prices are there and customers have still been able to checkout and go ahead with their orders. But obviously, not having the product information there may confused some so it would be great to get it fixed.
The website has been targeted in a couple of phishing attacks recently so I have password protected some folders and added htaccess files to the affected folders denying access, I don't know if my above problem is anything to do with this but my worry is that in doing this I have accidentally broken the cart and have no idea how to fix it. I have gone back and removed some of the htaccess files but nothing has seemed to fix it.
Any help pointing me in the right direction would be extremely appreciated.
Some time ago, I met the same case, the information about the product has disappeared on the cart. I changed the base theme to test. I compare the current version with a fresh one. I see some code gone. So, you need to enable the Magento's path hint to correctly check the PHP code in Phtml files. Maybe they are gone.
I'm trying to add some extra row after product image in prestashop 1.7 product list page.
I want to add manufacturer title above product title.
Already tried:
Change product-list.tpl code.
.../themes/theme_name/templates/catalog/listing/
but nothing happened.
Here is product image with some info about my problem:
Maybe some one know how to achieve this? Thanks.
You have to edit this file:
prestashop/themes/theme_name/templates/catalog/_partials/miniatures/product
Under the block named product_thumbnail (also external to block if you want)
Ok, I found something by my self. I'm not so sure why it happened but it was some of ".../app/cache/dev/..." - files.
Step by step:
1. Download website file
2. Search for specific classes
3. Found those classes on two files product.tpl and f33as2f1a2sf5asfa2sfasf20132.file.product.tpl.php
4. Then back to my ftp found that second file with long name and change a code there...
5. It works
Maybe its nasty work-around, so that's why I'm asking for more information for those who know more about things like this. Maybe there is something in back office (prestashop dashboard) settings... Developer/production mode or something? because by my opinion is just a nasty work around and I want to know more and learn more about it. Thanks. <- UPDATE: -> its useless to edit cache files, you need to make changes ant clear cache from terminal || or admin dashboard.
UPDATE BELOW (in comments)--->>>
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
I have come across very different kind of problem. Suddenly in Magento products uploaded not updating anymore.
In detail, when we open products to update and click save button, nothing happens. It started happening suddenly, everything was working fine before.
Please help, its a big problem. I dont know what to do and which files to check.
May be you missed some mandatory field to fill. Check every tab if you have any error asking to fill the fields.
Or, there will be some javascript errors. Check if any JS errors are there, and post it here.
I found where it was gone wrong.
in js/prototype/validation.js
This file used by admin product option validation, which I have changed and didn't realize to check for admin validations.
Small change like this solved the problem.
if(!admin){
// put your code for front-end validation
}
Thanks to all.
I came here after having the same problem. "Save" suddenly stopped working on the product page. The only thing I had done was update prototype.js from 1.7 to 1.7.1 to support fade() in IE10 b/c I have a custom fade on thumbnails.
Well prototype.js 1.7.1 responds with TypeError: value.gsub is not a function when you click save.
Had to revert back because I dont know how to fix it.
if magento is configured to work with elasticsearch and elasticsearch is unreachable it also results in this error