Magento product not saving - magento

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

Related

Prestashop cart not updating with ajax but updates after a refresh

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!

Template issue - Halogy

I have just installed Halogy on my MAMP localhost. I've followed the instructions here to set up all my folders and this is working fine. Dashboard looks good. However, my default template is empty. And, no matter what I put in it, after editing and saving - the markup is still empty. So I cannot get any editable fields in my pages whatsoever. When I edit my page content its just empty. I have also tried creating a new template and applying that to a new page. Same results. I am scratching my head here. Does anyone have any ideas as to what's gone wrong?
I could help you, since I've been working exclusively with and extending Halogy for about 8 months now. But, I need more details, since this behavior could be attributable to any number of issues. For example, what does the page source look like? Also, please note that, if you're not logged into Halogy, unpublished pages will not appear. However, your default home page should be visible. Have you searched the Halogy forum and/or posted your question there?

Joomla! 1.5 Category Blog Layout parameters update in database but not when displayed

I apologize if this is an easy question and I was just googling the wrong keywords. It's been a few years since I've used Joomla! but got handed a site to make some changes to, that someone else originally developed and can't seem to figure out what's going on. I'm running Joomla! v1.5.26.
I'm trying to add a blog section to the site, so I created a blog section and category and then I created a new "Category Blog Layout" in my menu and set the Columns value to 3:
However, whenever I view the page, it keeps showing 2 columns. So I went to phpMyAdmin and found the menu in jos_menu and confirmed that the database did in fact get updated:
So next I opened up /components/com_content/views/category/tmpl/blog.php and added this to to the top of the PHP file to see what values were being loaded:
<?php
print '<pre>';
print_r($this->params);
print '</pre>';
?>
Which produced the following results on the front end:
...
[num_leading_articles] => 1
[num_intro_articles] => 4
[num_columns] => 2
[num_links] => 4
...
So for some reason, even though I've set the values to update, and they do in fact update in the database, they are not updating on the front end. I've tried clearing the cache and all that fun stuff, without much luck. If it was just "num_columns" having an issue I could probably just override that functionality. However, it appears to be doing the same thing with all of the parameters, not just number of columns. I'm just using that as an example.
I haven't ruled out the possibility that it's a conflict with some third-party plugin yet, but am trying to see if maybe I'm missing something obvious and someone can point me in the right direction.
--UPDATE: 12/4/12--
So it appears to be a conflict with the sh404sef plugin. I'm not exactly sure what the deal is quite yet, but when I disable the plugin it works fine, but it happens again once I re-enable it. Now to see if I can figure out what's wrong with the plugin.
In Joomla! 1.5 while the parameters are being saved the implementation is effected/affected(?) by the template in use at the time.
Check your templates index.php, or if present the override for com_content's Blog layout (usually found in yourSite/templates/yourtempalte/html/com_content/category/blog.php
You will probably find the override either doesn't handle the columns or has a bug in it.
Okay so I figured out my own problem. As I stated above, I discovered the problem was with the sh404sef plugin. Apparently anytime you make changes to the menu layout settings, you have to purge your entire SEF URL list and then rebuild it. It seems quite strange that we'd have to do that every time, but I guess that was intentional for some reason. Anyway, it's working now. I just wanted to make sure I posted a solution for anybody else who may stumble across this.

mouse over zoom not working in magento

I want to install a jquery zoom box on my magento website, I have tried almost every thing found on the internet. am I doing something wrong? But I cannot seen to get jquery mouse over zoom to work on my magento site, I have put in jquery noconflict in my jquery files as well. I am using magento 1.5.1 , I have even tried installing magento extensions of magic zoom, cloud zoom , jqzoom but nothing is working.
Any help will be appreciated
thx in advance
First you may please check whether there is any js error.
Sometimes the extension you installed may be in the default directory of the template.So please check view source of the product detail page, whether there exits the content. Otherwise please copy that template and layout from the default folder to your theme folder.
If your browser is Chrome, CTRL+SHIFT+J will open the javascript console.
In my case, it told me that the magento /js/scriptaculous folder was missing, which seems to be a bug in Magento Connect for 1.8.1.0. Copying that folder from an archived earlier version on the Magento website fixed this.
The original question was about a different version of Magento so may not have the same cause.
Have you had a look at this: http://leveluptuts.com/tutorials/magento-community-tutorials/53-theming-magento-23-better-product-zoom.
I've used it and it works like a charm!

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

Resources