Questions tagged [magento-1.8]

Magento Community version 1.8

Filter by
Sorted by
Tagged with
6
votes
1answer
15k views

How to create forms for a custom adminhtml module?

Synopsis I have a custom module where I would like to upload files to products and optionally store a name/label, description and visibility options for each file. I am stuck at creating my own form,...
6
votes
3answers
1k views

Magento getFirstItem and getLastItem not working on collection

My code is as below but it won't work with loading first or last item. $shipidarr[0] = 100007536; $shipModel = Mage::getModel('orderstatus/orderstatus')->getCollection(); $shipModel->...
6
votes
2answers
2k views

Customer created / logged in timestamps in Admin

Over the weekend (2014-10-04 midnight through 2014-10-06 noon) I noticed that the customer created and last logged in dates were incorrect in the Admin. Last Logged In: Oct 6, 8295 10:12:43 AM (...
6
votes
1answer
603 views

Which, if any, MySQL / InnoDB (strict) modes to use?

I am using Percona Server 5.6 with Magento CE 1.8. I originally used the percona tool to generate the my.cnf file that I am currently using. It's been in play for 3-4 weeks now, and I haven't ...
6
votes
2answers
125 views

Keep URL's in a place

In my magento 1.8 project, I have some URL's which are calling some other sites like blogs, youtube videos etc. I want these URL's to keep in admin so that the client/store owner can change them later ...
6
votes
2answers
6k views

Get all updated cart items data with options in AJAX response

My Cart is looking like this with popup window: I am updating multiple configurable items in cart with custom options at a time by AJAX Call. So i am using updateItemOptionsAction() function. But I ...
6
votes
1answer
2k views

Why can't Simple Products with options be grouped?

Synopsis I have a store where-by I create a Grouped Product and associate a number of Simple Products. When I add custom options to the simple products it is not visible in the Grouped Products' ...
6
votes
1answer
768 views

How to sorting collection in magento by newest first and out of stock last in same collection

i need to sorting collection in two way in one collection. first i need to sort new product on top. out of stock product in last. basically i need this solution by observer. I used this ... my ...
6
votes
1answer
555 views

Browse only images while upload in phtml form in magento

I want to upload image file. When I click browse button. the browser window show all files.I want only image file.I tried this link https://stackoverflow.com/questions/16832255/show-only-image-files-...
6
votes
2answers
86 views

Magento TAF - Cannot find elements

I am writing tests to test the frontend of a store. I create products and categories in the admin, this completes as one test. I then complete a simple test to load the category on the frontend, ...
6
votes
0answers
1k views

Magento loading very slow in MAMP Pro, 10 times slower than remote instance [closed]

My Magento site is taking about a minute to load each page, but my remote instance, which is the same, loads in a few seconds. Anything I can find about a similar issue, like this post, give a ...
6
votes
0answers
4k views

Magento CE 1.8 - Catalog Prices : Including Tax not working as intended [closed]

Please note this isn't a tax rounding issue - it's functionality not working as intended. I've just installed 1.8 to start developing a new site and am setting it up for use in Australia. Here, GST (...
5
votes
3answers
12k views

Trying to override a controller

I am trying to override a Mage controller which is in Mage/Catalog/controllers/CategoryController.php. The folder structure which I created in trying to override the above controller is as follows: -...
5
votes
3answers
31k views

How display success message after submit the form

How display success a message after submit the form. This is my site a link
5
votes
3answers
4k views

Log Cleaning does not work

I turned on Log Cleaning (under System -> Configuration -> System -> Log Cleaning). This is my configuration: I set a Scheduled Task (I'm on Windows) to send a request to cron.php every 5 minutes. ...
5
votes
1answer
5k views

clear shopping cart is not working

My cart.phtml already have <?php echo $this->getBlockHtml('formkey'); ?> but still clear shopping cart & update shopping cart is not working. Please, give me better solution over this. ...
5
votes
4answers
6k views

How to get all xml loaded tree?

Need to print all xml layout on frontend(index.php), because we want to check our custom xml handles were added or not. Any one know technique to print.
5
votes
2answers
10k views

Magento Fatal Error - setSaveParametersInSession() on a non-object

I tried to create an admin grid on magento.Get the error while click on the admin menu setSaveParametersInSession() on a non-object. My Config.xml : path(\app\code\local\ORD\UpdatePro\etc) <admin&...
5
votes
8answers
12k views

How to add hreflang tags (or other meta tags) to pages in magento?

Hi using info from this site and around the web I have started to add hreflang tags to my magento store. They work and display as they should on the default (American)site, however on the alternate (...
5
votes
2answers
6k views

Url_Key & Store_Id (Attribute Already Exists)

When we create or modify a product -- the url_key doesn't seem to associate with the store_id of the product. For example: $product = Mage::getModel('catalog/product')->load($prodid); $product->...
5
votes
1answer
11k views

How to assign a group to user programmatically on registration

I would like to assign role to users on registration from my module. I checked the createPostAction() method of Mage_Customer_AccountController class where i found these lines: $customer->save(); ...
5
votes
3answers
282 views

PxFusion DPS Payment Express

I am looking for Px Fusion extensions for my online store. any suggestions ?
5
votes
2answers
7k views

Encryption / Decryption of customer data. [closed]

I want to encrypt customer data like email,name,addresses. I have created new class to encrypt and decrypt data. For encryption , i'll have to use AccountController.php (i'll be overriding app/code/...
5
votes
2answers
7k views

There was an error processing your order. Please contact us or try again later - Paypal

I've been getting this random error that occurs when customers try to checkout using PayPal Express There was an error processing your order. Please contact us or try again later I've looked in the ...
5
votes
1answer
7k views

How to Dynamic generate Open Graph protocol meta tags

<meta property="og:url" content="<?php echo "http://". $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];?>"/> <meta property="og:description" content=""/> <meta property="og:title"...
5
votes
2answers
9k views

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

Running on Magento 1.8 We are experiencing this error while creating product in our backend. It hinders the process of creating products and we have to keep trying in order to have the one product ...
5
votes
3answers
3k views

magento downloadable products not able to download

downloadable products only worked once when i set the link to be downloaded able only once after that i couldnt download it with a different account does the download limit apply to only one account ...
5
votes
3answers
9k views

Remove Item By key Using with Own attribute

I am using the Function $collection->removeItemByKey($key); As i know that the above function remove product one by one based on the key and that key is product id, My Question is Can we remove ...
5
votes
4answers
4k views

How to get large collection of products?

I have a store with over 100K products. I am using this code to get all my products. $model = Mage::getModel('catalog/product')->getCollection(); foreach ($model as $product) { $p = Mage::...
5
votes
2answers
5k views

Memory limit when uploading product image

I just setup a testing installation yesterday. I ran the server-check file and all was fine. Installation went smoothly. The image upload doesn't work in the Backend! After uploading any image, ...
5
votes
2answers
4k views

Hiding Price if 0

This seems like it should be easier then the results Im getting. Im not a PHP expert but I've got a product(s) that will be a different price and therefore am trying to set it up so when it's in my ...
5
votes
2answers
2k views

How to add Secure URL for Custom rewrite URL In Magento custom Module

Am trying to add secure URL to my custom module - below is my config.xml sample code <frontend> <secure_url> <scheme>/scheme/</scheme> </secure_url> &...
5
votes
2answers
4k views

how to get magento button style?

I have created some form that opens in new popup window. And there i have some text, combo box and buttons and i would like to add to these buttons magento button style, but how can get this style? ...
5
votes
2answers
6k views

Customer created_at Date off by months

I'm working on syncing my customers with a third party application and have discovered that many of my created_at dates are way off. Today is 2014-04-08 yet I have several records with a created_at ...
5
votes
1answer
7k views

Magento. Quantity in checkout shopping cart doesn't work properly

I have installed Magento 1.8.0 and on localhost the cart is working correctly. I change the quantity of a product in the cart then I push the "Update cart" button and all works fine. I trasferred the ...
5
votes
3answers
758 views

New order email missing product image {{layout handle=“sales_email_order_items” order=$order}}

The new order email template is rendering everything except the product image of the order. This is how the template was trying to call it by default, which doesn't work: {{layout handle="...
5
votes
2answers
7k views

Adjust Columns width/size in Product Grid in Magento Admin

I just wonder why the size/width in Product Grid in the admin panel is not adjusting. I created a local copy of the grid.php from the core file. I tried editing the sizes of the column (/app/code/...
5
votes
2answers
1k views

Image attribute in Product Flat Catalog

I have a Magento 1.8 CE and I figured out that when using "Product Flat Catalog", the attribute "image" is not collected. How can i add that attribute to "Product Flat Catalog" It is not possible to ...
5
votes
1answer
2k views

Sorting of Categories based on a attribute of product item

In my project, by default, I have some categories which are visible in frontend as shown below: category-1 sub-category-1 sub-category-2 category-2 sub-category-1 category-3 ...
5
votes
3answers
1k views

Magento : Categories Page Products Count Showing Wrong in Admin

I have totally added 1594 products in my magento store. Here 806 products are enabled other 788 products are disabled. In catalog->manage categories counting product shows wrongly see below image. ...
5
votes
9answers
33k views

CSS is not loading on the frontend in Magento

We are facing an issue with the css styling in Magento store. I tried refreshing the cache in admin but that didn´tt fix the issue. Use Varnish as external cache NGINX Magento 1.7.0.2 Ultimo as ...
5
votes
1answer
2k views

How to use multiple module dependencies

I have an xml like this. <?xml version="1.0"?> <config> <modules> <Vertax_Blog> <active>true</active> <codePool>local</codePool> ...
5
votes
1answer
451 views

Bundle product dynamic pricing from options

Sorry if this question has been asked before but I cant find a solution to this problem and bundled products might not be the answer. Imagine a scenario where you allowed the customer to buy a ...
5
votes
1answer
814 views

Restrict admin user permissions per field in Magento

Is it possible to restrict an admin user on a field basis? For example I would like some users to edit stock of a product and the short description however I don't want them to be able to change ...
5
votes
2answers
21k views

Difference betweet Mage::getModel('catalog/product')->load(1) and $collection->getFirstItem();

I have to load some products... The (my) traditional way to load a product is: Mage::getModel('catalog/product')->load($id); Now I have the problem, that some products can be loaded by this way -...
5
votes
3answers
13k views

How to track Admin user backend actions

My client changed admin settings from their admin panel and they don't know what exactly they changed and updated in the configuration area. I am calculating donation for each product based on some ...
5
votes
1answer
3k views

Payment method - Zero Subtotal Checkout - hide all others

At the moment I have Paypal and Zero Subtotal Checkout payment methods enabled. If the basket is €0 then Zero Subtotal Checkout will display however Paypal is displayed underneath it. Whats the best ...
5
votes
2answers
6k views

Warning: simplexml_load_file(): I/O Magento warning : failed to load external entity “/var/www/app/etc/local.xml”

I have this issue in my magento installation Warning: simplexml_load_file(): I/O warning : failed to load external entity "/var/www/app/etc/local.xml" in /var/www/app/Mage.php on line 767 setting ...
5
votes
3answers
2k views

Export products of particular category

Is there a way to export products of a particular category in Magento? If not, what are the tables involved if I want to do an custom SQL query?
5
votes
1answer
7k views

Cannot cancel order on backend

I have created a custom payment gateway module. Everything works fine, except canceling the order from the backend. The error: The order(s) cannot be canceled Any ideas?