Questions tagged [magento-1.8]

Magento Community version 1.8

Filter by
Sorted by
Tagged with
43
votes
9answers
43k views

Magento 1.9, php 5.6 - Use of iconv.internal_encoding is deprecated

Have the same with Magento CE 1.8 and 1.9 After update php from 5.5.16 to 5.6.0 on my VPS I got this 2 errors in [magento]/var/log/system.log: ERR (3): Deprecated functionality: iconv_set_encoding():...
27
votes
5answers
66k views

Why Can't I Load a Product by SKU using loadBySku()?

Synopsis I wanted to load a product by SKU there are many articles, blog posts, stack overflow results etc. All I want to know is - why does it have to be so difficult to load a product by a SKU? //...
27
votes
4answers
35k views

Confusion with order id, order increment id and I am not getting order id as 20001201

I am bit confused with order id and order increment id, So can any one help me to understand the difference between these two? I have an observer for sales_order_place_after where I store sales ...
25
votes
1answer
54k views

magento: invoice PDF design customization

I want to customized the Invoice PDF layout. when there is big product name the the table data are not looking proper aligned. How Can i easily manage the design of the PDF INVOICE. I tried to ...
23
votes
2answers
7k views

Add Category tree in custom extension

I am trying to add Category tree to custom extention, the category tree which is in one of the tab of edit product page
23
votes
3answers
10k views

How to truncate magento table using collection?

I have a custom table. I want to truncate the table using Magento collection without SQL query. Hope someone will provide some useful information.
23
votes
3answers
3k views

Which api method is best for apps

I want to create iOS and Android apps for my Magento store. For this purpose I want to know which API method is best as app data API. Please suggest below of option of Magento: Soap Api Rest Api ...
21
votes
2answers
1k views

Magento Each New Invoice Increment Id Increment By 5?

I need to increment each new invoice id by 5, i have tried below code. But changed all invoices, shipments, orders and credit memos. I need each new invoice id increment by 5, shipments increment by ...
21
votes
2answers
1k views

Why does the Shipping total set the row_weight of the sales quote items to 0 if free shipping is in effect?

Preface: This is meant to serve as both a written observation of Magento's architecture for the community (and myself), as well as an actual question. We're working with a heavily modified cart and ...
18
votes
4answers
24k views

How can I fix “Item (Mage_Catalog_Model_Product) with the same id ”xxx“ already exist”?

I have been getting this error when trying to filter a products collection Item (Mage_Catalog_Model_Product) with the same id "6058" already exist and wanted to ask what could ne causing the error ...
18
votes
6answers
7k views

How to allow only one product in a cart?

We have a requirement, wherein a customer will be allowed to add only one product to the cart at a time. However he/she can add any quantity of that product. How can I prevent a product from adding ...
16
votes
5answers
30k views

How to send email using Magento

I have created a form with some input fields in Magento. But when I click submit, Magento will not send the email. How can I send a basic email in Magento?
16
votes
5answers
7k views

what is the difference between disable module output and module active = true

In magento I come to knew that we can disabel our module by two ways By navigating in the Magento backend to System > Configuration > Advanced > Disable modules output we can easily disable certain ...
16
votes
2answers
6k views

Magento hacked even after applied patch

Some days before my Magento community edition 1.8.1 site is hacked, because we are late to apply the patch. we found certain files were changed those are index.php [hackers added some code to it]. ...
15
votes
3answers
16k views

Magento : Fastest way to update a product attribute

I'm looking for the fastest and reliable method for mass attribute update. Below are the methods am aware of but I don't know with which I should go. $store_id = 0; Mage::getSingleton('catalog/...
15
votes
7answers
72k views

Exception printing is disabled by default for security reasons [closed]

I tried to setup my magento to my hosting. So i created a new database and i did import my sql file and changed the settings in the local.xml for the database. but now i’m getting Exception printing ...
15
votes
5answers
15k views

Full Page Cache on CE 1.8 - An FPC Magento Module? Varnish? Both?

So I am a bit confused as I go about researching Full Page Caching for Community Edition 1.8. I have already implemented a Two Level Redis Cache, CDN, tuned MySQL's my.cnf for max performance (w/ the ...
15
votes
2answers
3k views

Why is CSRF protection needed for add-to-cart?

Magento has since recent versions a form_key as part of the add to cart action, to protect against I think CSRF attacks. So now I wonder, is it really needed for this place, and why or better said, ...
13
votes
1answer
10k views

How i can fix error Invalid backend model specified

when i try run magento, i see in log file next error: a:5:{i:0;s:74:"Invalid backend model specified: eav/entity_attribute_backend_time_updated";i:1;s:6088:"#0 \app\code\core\Mage\Eav\Model\...
13
votes
4answers
3k views

Allowing customers to pay an admin created order?

I'm wondering if there is an extension or some guidelines on how I might think about allowing for an order to be created in the admin area for a customer and then allow them to log in to their account ...
12
votes
2answers
17k views

difference between cart getItemsCount() and getSummaryCount()

I am displaying the total items present in the cart at header. I am able to display the count of items. But I am bit confused between two methods of cart 1. Mage::helper('checkout/cart')->...
12
votes
5answers
23k views

Onepage checkout broken in 1.8?

Our checkout seems to be broken and more people seem to have the problem with magento 1.8. It simply doesn't do anything after you press the continue button in step 4. We run PHP 5.4.19 and have tried ...
12
votes
2answers
36k views

How to enable https for my magento site

I am using magento version 1.8. I have installed ssl certificates from godaddy and given the base secure url as https://www.mydomain.com. I have also selected both the options Use secure urls in ...
12
votes
2answers
3k views

CSRF Attack & Session Hijack Vulnerability

From the 1.8CE Alpha release notes: The Magento web store has additional Cross Site Request Forgery (CSRF) protections, meaning an imposter can no longer impersonate a newly registered customer ...
12
votes
3answers
30k views

Magento new custom block module

I'm using Magento version 1.8.1.0. I'm trying to create a new custom block module, which I'll use for creating a new home page. Namespace: Crusader Module: CLHomePage Block Type: crusaderhome Class:...
12
votes
1answer
942 views

Does the Magento Database Upgrade happen in a “transaction”?

We have this issue atm: A client gets his shop upgraded from CE 1.4 to CE 1.8. The file-upgrade went well, and the database upgrade went also well on our development machine. When we try to upgrade ...
12
votes
2answers
371 views

What are the known issues for Magento versions?

Is there a public list (maintained by the community or by Magento) of all known issues for the different versions? It seems like a no-brainer that such a list should exist, but at least I'm not aware ...
11
votes
1answer
12k views

What is the difference between getChildHtml and getBlockHtml

Synopsis What is the difference between getChildHtml and getBlockHtml? How can I get the cms/block title in the template? I have essentially replaced the footer with my own footer and set my own <...
11
votes
3answers
2k views

Email templates from admin

I have this strange issue with the Magento Transactional Emails. I have the same files on my local, development and production servers. From Admin > System > Transactional Emails > Add new template ...
11
votes
6answers
3k views

Single instalation with, multiple databases

Is it possible to make one installation, and from this installation to make multiple shops with different databases? Something like I will make one installation on domain.1 with a database, and from ...
11
votes
1answer
6k views

Export my custom grid data's in Xls

How to export my custom grid data's in xls format in Magento Admin panel grid. In default we having the csv and xml format. Anyone help me on it.
11
votes
2answers
6k views

configurable product price not changing

I have created a configurable product "bag" with the color attribute. color:blue,red. i missed out to add the price while creating the product itself. So the front end price not changing while i ...
11
votes
1answer
3k views

What is the correct way to update a value to be NULL on a Magento model?

I am having an issue getting a custom model's value to update to NULL. $model = Mage::getModel('custom/model')->load($id); $model->setCustomValue(NULL); $model->save(); This code does not ...
10
votes
1answer
5k views

Custom Package/Theme for Admin module that falls back to default package?

How Do i ask magento to use a custom layout package/theme for my custom admin module? What's the Structure and content that i have to include inside local.xml file if i have to use it for defining a ...
10
votes
5answers
2k views

Pagination and Sorting not working

For my custom module I have get product by manufacturer. For template I have copied list.phtml. On the template file pagination appears but it shows all product instead of selected limit per page. ...
9
votes
6answers
19k views

Is there any way to add JS/CSS to footer page?

I have a custom requirement to add a specific JS and CSS related to website's footer. Is there any way in Magento by which I can add it in footer section ?
9
votes
5answers
17k views

Redirect user after login

I wanted to redirect user to "Home" page instead of "My Account" page after login, and i was successful to achieve this making use of <customer_login> event. But I was also redirected to ...
9
votes
4answers
6k views

Helper vs Model? Which should I use?

I am working with the Instagram API in magento. I am giving coupons to my instagram followers if they follow our store on Instagram. I am making the API calls to instagram in PHP using curl. ...
9
votes
4answers
53k views

Adding CSS and JS to <head> using a module layout.xml for block

Synopsis I would like to add a block to my grouped product view and my simple product view. This block will have some nice tooltips for hover states, i'm using a small library with one jquery plugin ...
9
votes
3answers
15k views

How display different price per store

I want to display different price for same product per store. Like an attribute. These stores will have different currency, but will not be based on currency exchange rates. For eg if products of 1 ...
9
votes
2answers
1k views

BASE64_LENGTH_79_INF: SpamAssasin penalizes transactional emails

I noticed that transactional emails from a Magento shop were often marked as spam. Apache SpamAssasin gives a 2.0 score from the BASE64_LENGTH_79_INF rule. The rule explanation states: According ...
9
votes
1answer
2k views

Session lock after using Cm_RedisSession

We switched to Redis as Session Storage with the default Cm_RedisSession Module from Magento 1.9.2.4. After the deployment a lot of Customers experienced very long page load times ( > 20-30 Sec.). For ...
9
votes
2answers
4k views

how to reset filter on loading a collection in magento custom module

I have created a custom module in backend to display the search results of 'imei' in admin grid. 1) below is the home page to search imei. 2) search result page. 3) after searching i enter the ...
8
votes
5answers
47k views

Products do not show up in front end

As shown in the picture i have a category speakers having one item(product - Mini Car Speaker) and one category that is empty. But when i try to access this from the front-end it does not show up. ...
8
votes
3answers
2k views

Problem with Data URIs and CSS File Merge

Magento CSS file merge is pretending the hostname to my data-uris because the RegEx in Mage_Core_Model_Design_Package (beforeMergeCss) does not work as expected. It should prepend hostname to relative ...
8
votes
1answer
10k views

How to create the Product Grid Serializer Block In Custom module

I want to create the Grid Serializer functionality same as coming in Manage categories If Anyone create that type functionality then please guide me.
8
votes
2answers
25k views

Recommended Magento PHP memory limit

Simple question. What is your recommended PHP memory limit for Magento?
8
votes
1answer
2k views

Setting up cron to run every 30 minutes

I want to create a cron that runs every 30 minutes. I am using another cron as an example - I have created the cron in a config.xml file, not using the admin interface. The example I am using is the ...
8
votes
2answers
10k views

How to add acl in custom module in magento

I created custom module in magento. I created that menu under customer menu. I need to add acl for custom module. I need to know that how to create acl in custom module i m giving here my config.xml.....
8
votes
1answer
2k views

High-loaded service. Soap vs Rest

I have a task to make an api for Magento using it's SOAP or REST implementation. I've read a lot about both services, also have experience with them. But not in high-loaded projects. The task of ...