A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [magento-1.8]

Magento Community version 1.8

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

Login into magento from outside of magento without ruining $_SESSION

I am trying to integrate an external site with magento, so that when a user logs into site A, magentos session cookie gets set. Currently I am doing this: <?php $email = $_POST["email"]; $...
2
votes
3answers
2k views

Disable checkout button in cart

I have added an error in the sales_quote_save_before event, if the quantity of items is more than 500. > Mage::getSingleton('checkout/session')->addError(Mage::helper('checkout')->__('The ...
1
vote
0answers
54 views

How to csll Catalog/Layer_View block in controller to get loaded attributes

I want to use below code in controller but not working. $block = $this->getLayout()->getBlock('catalog.leftnav'); I used in phtml file here, it is working fine. but it is not working in ...
1
vote
2answers
4k views

Change default products per page in search results

When a user performs a search the default Magento search result pages offers pagination, it defaults to 9 items per page. I'd like it to default to 30 items per page. How is this done?
1
vote
1answer
1k views

How to structure Ajax module/widget

I'm fairly new to Magento and have never attempted anything like this before, I'm still getting used to how Magento does things. I'm trying to create a widget which will add a 'Spraydeck finder' to ...
1
vote
1answer
7k views

Replace “Add to Cart” button with an “Enquire” button linking to the “Contact Us” page

In both product listings (e.g. the category page) and the product view page, I need to replace the button "Add to Cart" with an "enquire" button which links to the "Contact Us" page. Please help me ...
1
vote
2answers
7k views

Get rating from a review

In my requirement, I have a review id with me by using that, I am getting complete information of that specific review by using the following code: $review = Mage::getModel('review/review')->load($...
1
vote
4answers
3k views

How to add buy now button URL

I am using Magento 1.8. and custom theme. I have added the button called BUY NOW for each product, and url of that button is echo Mage::helper('checkout/url')->getCheckoutUrl($_product); It ...
1
vote
1answer
186 views

How to make a namespaced admin controller

Synopsis I notice this is a hot topic and so I did do my research before posting this question, please read. I wanted to create myself an admin module and found a great article by Alan Storm, which ...
1
vote
2answers
2k views

Add Unit Price To Order Email Template

In the email sent to customer for order confirmation, product unit price does not show. I did the following changes, but I am facing these issues, Order is being processed, but I am not being ...
1
vote
1answer
2k views

Can't retrieve entity config: sales/sales_flat_order

I am trying to add column existing table sales_flat_order but it's returning an error Can't retrieve entity config: sales/sales_flat_order my code is: <?php //@var $installer ...
0
votes
5answers
3k views

Show SKU and Product Name in Sales_Order_Grid?

I have been stuck for hours trying to add both Product Name and SKU to the Sales Order Grid in Magento. I have created the joins and added the columns but the no data is being displayed and can't ...
0
votes
3answers
2k views

Difference between <catalog_category_default> and <catalog_category_view>

in vendor.xml file Difference between <catalog_category_default > <reference name="content"> <block type="vendor/vendor" name="vendor" template="vendor/...
0
votes
1answer
9k views

How to Add Admin page new menu and a sub menu under existing menu

I tried to create a simple module and menu.The Menu is successfully created and show. My question is how to add the same menu as a sub menu of existing menus(Ex : System). here is my Approach to ...
0
votes
1answer
2k views

Adding to Cart with Querystring - Takes me to homepage?

I'm trying to add a product to my cart via query string based on the information on the Magento website. I've tried the following: /checkout/cart/add/product/3887/1/ /checkout/cart/add/product/3887/...
0
votes
1answer
1k views

set values to fields in adminhtml form template

I'd created a template file for admin form tab as: class Excellence_Designer_Block_Adminhtml_Designer_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs { protected function _beforeToHtml() { ...
0
votes
1answer
952 views

join customer custom attribute to order collection

I'd created a custom attribute for customer and in order collection I need to show that attribute. How could I do that? for now I'd got the order collection as $collection = Mage::getModel('sales/...
8
votes
1answer
2k views

Getting started with Magento REST API

So the official documentation is very terse (bad!), particularly for someone who hasn't worked with REST/Oauth in the past. I'm using Magento 1.8.1 CE. Can somebody provide a simple PHP example of ...
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
4answers
5k views

keep the checkboxes of mass action checked for some items, by default

In my Grid.php of custom module, I added the following code (excerpt) to enable mass action. protected function _prepareMassaction(){ $this->setMassactionIdField('entity_id'); $this->...
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
1answer
4k views

Invalid Signature - add a product using Magento REST API

i have created AccessToken and AccessTokenSecret as mentioned in the Oauth Rest API Documentation and I am able to retrieve the products using GET Request. But when i try to Create a new product (POST ...
4
votes
2answers
2k views

How do I reset Magento Admin User Role

I went into Admin->System->Permission->Roles & edit the role for Admin Now, i am unable to re-set back it to original "ALL" permissions. How can i revert back to original settings ? Thanks
4
votes
4answers
2k views

How to create “custom” code pool in magento like community and local

I need to create code pool in Magento. I need to know how to create code pool. Can we create a custom code pool in Magento? I created a module in Magento which can be used in community and local. I ...
4
votes
1answer
7k views

“Save and Continue Edit” button is not working properly

I have a form in my module, and now I want to add the new button to it i.e. Save and Continue Edit button. I added this button but it is working partially, means it is saving the values in the ...
3
votes
2answers
4k views

Extend Magento Controller AND create new action

I am creating a new module for Facebook Login (no i dont want to use the existing ones) and I am attempting to access/extend the core AccountController.php actions while also adding a new action. The ...
3
votes
3answers
4k views

Changeforgotten password page is blank, disabling customer.xml fixes?

Clicking the password reset link sent in an email leads to the /customer/account/changeforgotten/ page, but it is blank. Disabling the customer.xml file (renaming it rather) fixes the issue but I don'...
3
votes
2answers
4k views

Custom Field Value not saving on sales_flat_quote & sales_flat_order

I have created a custom field from sales_flat_quote & sales_flat_order tables and in checkout page have field called delivery_date. When an order is being placed, it's not saving my custom field ...
3
votes
2answers
425 views

Where is the code for “{{store url=”example/example"}}

I would like to know how Magento converts {{store url="example/example"}} into http://www.example.com/example/example/
3
votes
1answer
891 views

Contact Us form is not displaying

I am new to magento. I have override the Contact form, but in home page not displaying the Contacts link. my code is: etc\module\Easylife_Contacts.xml <?xml version="1.0"?> <config&...
3
votes
1answer
3k views

Conflict with using JQuery in Magento [duplicate]

I want to use JQuery in magento. When I included JQuery in the code, Prototype is throwing errors at this line. element.attachEvent("ondataavailable", responder); Can anyone help me?
3
votes
3answers
13k views

How to get root category id in admin product grid

I have multi-website, multi-store magento installation. Each store have different root category. I have created admin users for each store and restricted access to their related store. In each admin ...
3
votes
1answer
1k views

How do you create Order with Magento API?

First of all i am working on this for past 3 days and still don't know what is causing this issue. Following is the code. $api_url = 'Soap URl'; $api_user = 'User'; $api_key = 'API key'; $proxy = ...
3
votes
3answers
8k views

Successful Logins redirects to Login Page - Magento

I have scoured the internet but cannot find an answer, and the answers I find are to having Magento locally installed (MAMP/WAMP) etc. I have installed Magento www.domain.com (1.7.0.2) and also in ...
3
votes
0answers
200 views

Categories not visible while adding product [closed]

i have never face such issue before, i am not sure why is this happening. While adding product i am not able to access subcategories for one of the parent category. I am not getting any option to ...
2
votes
2answers
18k views

getLayout()->createBlock()->setdata() not passing variables

Im trying to pass information from my controller to the template. My Controller: $response= "test"; (variable that I want to pass to PHTML) $this->loadLayout( array('default','...
2
votes
5answers
34k views

How to get Product Category name and Category ID on checkout success page?

I am looking for a way to get Category name and Category ID one the checkout success page. So far I have added the product name, sku etc but I am unable to get the category name and id Here's my ...
2
votes
1answer
3k views

Simple vs Virtual Products for Virtual Products as Configurable Products

We have a bunch of Virtual Products in the sense that they are not shipped, but the only way to group them into a Configurable Product is to make them Simple Products. So, it seems that we should ...
2
votes
5answers
5k views

Image upload error. unable to create directory

I am very new to magento. I have created one magento store, that is working fine in the localhost. But in server it's working fine except product image upload. I can able to create new product but ...
2
votes
1answer
321 views

What is the order that we should follow, while creating an extension in magento?

The question I am sharing here is not about creating an extension, but about the order in which we should proceed. This question will help a lot of people who want to create extensions. Because ...
2
votes
1answer
600 views

Forcing a Sorting Direction? dir=asc&order=popularity

I want to disable a sorting direction for sort field. "Relevance" is a good example. Ordering by least-relevant results gives the most horrible results. Basically I want to disable that option. The ...
2
votes
3answers
4k views

How to get cart items id except configurable product

I have add a configure product in magento store which has associated products( simple and downloaded both) in admin. From frontend I add simple associated product in cart and get cart items ...
2
votes
1answer
3k views

Date Validation not working ( conflict with Date Picker )

Following issue wiht 1.8 CE: When I’m trying to save CMS custom design info: Custom Design From Custom Design To The validation fails ( even if dates are correct ) I’m trying with chrome I have ...
2
votes
2answers
9k views

How to disable secure url for admin

I have installed ssl certificate , but https is still not working, so I would like to disable secure url for admin to work in backend. I have updated the mg_core_config_data table for the path secure ...
2
votes
1answer
3k views

Magento API SOAP v2 : faultcode Receiver, faultstring Uknown Error

I'm getting a SOAP error (v2, WS-I Compliant) that I'm having trouble debugging. I'm getting a "Receiver, Unknown Error", which the header shows to be a 500 Server Error and appears as such in my ...
2
votes
2answers
4k views

Can't get order object in sales_order_place_after observer method

I'm trying to hook into the sales_order_place_after method in my observer and save information about the just placed order into a new database table. I'm able to hook into the event successfully, but ...
2
votes
2answers
507 views

How do I register a modules' cronjob

Synopsis First of all I wish to express how a third-party extension to list the crobjobs is not what I am looking for, I shall omit my opinion for how Magento handles cronjobs. My problem is when I ...
2
votes
2answers
524 views

Rewriting resource model

I am trying to follow the answer of this question Avoiding memory exhaustion when updating product stock? to rewrite a resource model. I created a custom module and is activated in the back-office. ...
2
votes
2answers
3k views

what is widget in magento

I need to call right banner here bello my code is <p><span style="margin-bottom: 5px; display: inline-block;"><img class="img-responsive" > title="" src="{{media url='banner/right-...
2
votes
0answers
720 views

Setting Pdo_Mysql Driver Options through local.xml

The context for my question: forcing Pdo_Mysql driver for Magento to use SSL connection to an Amazon AWS RDS instance. The database user is set to use only SSL connection. In order to use SSL ...