We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [magento-1.8]

Magento Community version 1.8

Filter by
Sorted by
Tagged with
2
votes
3answers
2k views

Delete products from order programmatically

I use Magento CE 1.8.1.0 and I have developed a php script that can delete a product from an order. After the product is deleted the value of the order is the same. How can I reduce the order value ...
2
votes
1answer
581 views

Issue in re-indexing catalog_product_flat index in magento

We have around 200K products on Magento CE 1.8.02, catalog_product_flat indexing is really creating problem for me. Did try manually indexing, used command line to do that, all are taking lots of ...
2
votes
2answers
5k views

Product QTY Increment Magento 1.8

I've here a problem I try to solve since hours, but don't see the solution. The packing unit of a product is 100. The price for these 100 pieces is e.g. 50 $. So I set the qty. increment to 100. ...
2
votes
2answers
3k views

Custom Attribute Not saved in Checkout Register Form - Magento

I need to add two fields for Customer in customer's registration. I managed to do it and its working fine for customer registration. But it is not getting saved in case of onepage checkout (if ...
1
vote
4answers
12k views

a select attribute created via installer script doesn't show the options as given

I am trying to create a product attribute through module (custom) install via installer script. here is my code: $installerx = new Mage_Catalog_Model_Resource_Eav_Mysql4_Setup(); $installerx->...
1
vote
2answers
7k views

`customer_save_after` event is not working in admin side

I have a custom module which is used to observe for cusotmer_save_after event in admin side. I have added a custom tab profile at glance in Magento's customer module. I am using my module to store ...
1
vote
4answers
13k views

How to restrict specfic ip address to access magento site in .htaccess file in magento?

I have an idea below text in .htaccess file in magento root folder. Order allow,deny tells your web server that the Allow rules are processed before the Deny rules. Order deny, allow means that the ...
1
vote
1answer
1k views

Split order by product [duplicate]

I want to spilt the orders by product. If the customer place an order with the two products eg:- Product A and Product B in his orders then while checkout that specific order is split into two orders ...
1
vote
1answer
60 views

Sites are only loading if I add `index.php` to the URL

I just copied the live database to my local environment. I changed the base_url to the new domain (virtual host). My sites on my local environment are only loading if I add index.php to the URL. e.g. ...
1
vote
1answer
1k views

How to update `catalog_category_view` using observer?

I am trying to set a root template to handler catalog_category_view through an observer. I know I can achieve it through layout update. But believe me I really need to dynamically set root template ...
1
vote
2answers
4k views

Error 404 after migrating to server

I am getting 404 error. Only home page is working only. Can anybody tell me what could be reason for that Thanks
1
vote
2answers
6k views

how to override only .phtml files in my custom module in magento?

I don't want to override .php files I want to edit only .phtml files of Page Module how can I create layout file and assign? thanks.
1
vote
4answers
2k views

How to restrict payment methods by store?

I want to restrict the payment method by store.How to do this? Eg. For English version I need 3 payment modules 1.Paypal 2. cod 3.Bank transfer For Other version I need 1 payment method 1....
1
vote
2answers
782 views

How to Round off Discount price?

I copy these file from core to local folder from app/code/core/Mage/SalesRule/Model/Quote/Discount.php. **WHAT I NEED TO DO IS ROUND OFF DISCOUNT VALUE WHICH ALSO ROUND OFF TOTAL VALUE AS WELL ** I ...
0
votes
1answer
1k views

joining custom table with EAV table

I am New to the Magento, I am using the Magento 1.8. I am stucked while prepare collection function in custom admin module while adding values to the grid. I have custom table called foundation [not ...
0
votes
1answer
141 views

8788 v2 Issues and Questions

After having some issues with 8788 patch. I cant seem to revert 8788v1. So I was wondering if the following was possible based on Revert SUPEE-8788 v1/ The process that I have followed using ...
0
votes
2answers
472 views

Magento > Tools > Backup Issue

On visiting System>Tools>Backup link, Magento system give me below error Item (Varien_Object) with the same id "0_db" already exist Trace #0 /home/sanasana/public_html/lib/Varien/Data/Collection/...
0
votes
1answer
3k views

change “Products with label ”Sale“ to ”quality" in magento

In home page, under "specials" , you can see Products with label =" sale, best" I want to change "Sale" to "Quality".
0
votes
1answer
4k views

Sort Product List to show Out of Stock items after in stock items with magento 1.8

The product list pages are currently set to show out of stock products. I would like to show these products after the In Stock items. Thanks.
0
votes
2answers
1k views

How to do onestep checkout for the checkout page?

How can show all the checkout forms (such as billing address, shipping method, payment method, additional information, and checkout review) on one page without going through the step by step from 1 ...
-1
votes
1answer
989 views

SQLSTATE[42S02]: Base table or view not found: 1146 Table db name xyz.core_url_rewrite' doesn't exist

in local this error are display in my magento website plzz give me right answer thanks
4
votes
6answers
13k views

Bulk Import Category With Heirachy

I'm still a Beginner in Magento and I was given a task to upload/create 600 Categories and have a hierarchy up to 4th subcategory. I've been searching for a while now, and most return paid extensions. ...
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 <...
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 ...
2
votes
1answer
13k views

Adding custom configuration section to existing tab

Synopsis I have created a basic local module that is designed to listen to an observer , which it does perfectly fine. However I wish the observer method to pull out some configured settings which ...
28
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 ...
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
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')->...
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 ...
8
votes
2answers
34k views

File and folder permissions for Magento setup

From the Magento wiki I found the file and folder permissions to be set to: #for magento 1.5+ find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; chmod o+w var var/.htaccess ...
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(); ...
4
votes
3answers
19k views

How to add quantity option to each product item in the category list page?

How can I add quantity option to each product item in the category list page? By default, you can find this in Magento list.phtml, <?php if($_product->isSaleable()): ?> <p><...
4
votes
2answers
3k views

How to programatically disable shipping method in magento

I am using two shipping method Free shipping and flat rate shipping . Here is two condition when a user try to buy "apple" from state "abc" then flat rate shipping available for this user.and another ...
2
votes
1answer
802 views

Magento Layered navigation filters for grouped products

In few words - problem is same as in this question https://stackoverflow.com/questions/16718129/magento-layered-navigation-configurable-products-multiple-filters-active-iss We have products (...
27
votes
5answers
67k 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? //...
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 ...
5
votes
1answer
7k views

Magento custom module adds HTML to header

I try below code is working for add a phtml file in header of Magento. <reference name="header"> <block type="your_module/yourblockclass" name="yourblockname" template="your_module/...
5
votes
2answers
7k 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 ...
4
votes
2answers
6k views

how to show and hide field in magento admin form on change function

i need to hide form field on on change in magento admin. I need to know that how can i show hide field with his labels in magento admin form my form $fieldset->addField('style_content', 'select', ...
2
votes
4answers
16k views

Get cart item by using cart item id

I am updating multiple cart items at a glance. And i have updated cart item id's with me. Now i want to get CART item data by its id. Can you plese help me on this.
2
votes
5answers
14k views

How to change magento My Account links order

Hi I need to change magento my account links order. Now it looks like bellow Account Information Address Book My Orders My Wishlist I need to change the order like, My Orders My Wishlist Account ...
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, ...
7
votes
2answers
6k views

What is the difference between getData('name') and getName()

I am using magento 1.8 And I am facing problem when I use below methods $product->getData('name'); $product->getName(); Is they are same, I sure that they return same value[answer]. When I ...
6
votes
2answers
30k views

How to get json data on frontend in magento

I have a custom module, which uses for email varification in frontend of magento. This module will appear as a popup in homepage while it loads. I want to do some other functionings such as display ...
6
votes
3answers
23k views

Display more items per row in products/category pages

I am trying to display more products on a single row. I don't know where I could do that? For now, it displays only 3 products per row and there is a lot of empty space. I would like to display 5 ...
6
votes
3answers
3k views

AOE Profiler not displaying in footer

Have tried installing AOE Profiler on a Magento CE 1.8 site, successfully installed with Composer but despite enabling it in index.php, local.xml and the Magento backend, the profiler doesn't appear ...
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
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->...
4
votes
2answers
2k views

Create folder during install module

So, I create module, which implement import/export some data. Everything work fine. The logic of import in next : I take a file in var/[module_name]/import/. (This file will be put by some another ...
4
votes
4answers
6k views

Show product only within a date range (between start date and end date)

I want to create a product with start date and end date. Once the end date comes the product should be hidden from the product listing. Are there any methods to complete this task? I tried with ...