Questions tagged [xml]
Denotes questions about XML files and XML processing.
1,194
questions
1
vote
2
answers
3k
views
how to conditionally load an external js file in local.xml?
I'm just getting started with Magento, and am setting up my local.xml file for the first time. I'm trying to load the html5shiv script from google code, on the condition that the browser is older than ...
0
votes
1
answer
1k
views
create new product attribute returns fault code 104 (Incorrect attribute type)
I am trying to create product attributes by SOAPV2 with method catalogProductAttributeCreate / Magento Community ver. 1.7.0.2
I have already debugged /core/Mage/Catalog/Model/Product/Attribute/Api....
1
vote
1
answer
575
views
UPS Negotiated Rates Not Being Applied (Magento Go V1.1.2.2) [closed]
I have escalated tickets with both Magento and UPS right now, but I don't seem to be getting very far very fast. I'm hoping one of you has run into a similar problem and can point me in the right ...
1
vote
1
answer
7k
views
Adding Currency Switcher in header
I've been following this tutorial to add currency switcher to header of my magento theme:
http://www.jimcode.org/2011/02/magento-multi-language-currency-region-setup/
I've add currency block and ...
1
vote
1
answer
2k
views
Export order info to .txt file once order is placed
I have researched and tried all possible ideas I could come up with but not having any luck with the below...what am I missing?
The idea is to export a text file once an order has been placed on my ...
0
votes
1
answer
2k
views
How to export selected products to xml in admin product grid
i need to export selected product to xml form admin product grid.
i have refer this to export selected product to csv.
Can anyone help for this.
4
votes
1
answer
30k
views
Adding custom code in head (header html tag)
we want to add the google+ links / code to our head (html) tag in our website. We have a multisite. We could edit phtml, create phtm etc ...
What is the best way to do this? via xml update?
Or is ...
0
votes
1
answer
734
views
How to remove a config xml value?
I have a module which is modifying how bundled products are displayed for our store. As a part of this, we are removing the ability to display checkboxes. So, I want to change the backend so that it ...
1
vote
1
answer
1k
views
How do I import ONIX XML into Magento?
I need to get ONIX data to my Magento ebook store. I could convert it into a format that Magento understands (i.e. CSV) and then use the default import. But at times the a single feed can have a few ...
0
votes
1
answer
4k
views
Cannot use object of type stdClass as array Soap API
This is my first time trying to pull information with the Magento soap API. I have used SOAP previously on the Orange M2M connect server.
Ive hit a stump and im not sure where to go from here. I have ...
3
votes
2
answers
2k
views
Default page in System Config? Everything displays but the main content
Can someone explain me, which page is shown as default when entering the system configuration in the backend? What is the logic behind it?
Is there a cookie based "remember the last system config page ...
1
vote
2
answers
1k
views
observer failed to stream
I have been making and deleting custom modules to learn how magento works and I have now come across this error when I selected System | Permission | Roles | Administrator that error was fixed and now ...
1
vote
1
answer
4k
views
Magento failing silently, block not being called
I have been working on a module, and last time I checked it displayed as expected. I have now gone to work on other modules and now I have come back to this module it has stopped working and I don't ...
1
vote
1
answer
3k
views
core_resource creates module_setup but install script is not called
I am trying to create an install file but Magento is not running that file, although it is putting an entry in to the core_resource table.
I have deleted the row which was created and loaded the page ...
1
vote
2
answers
2k
views
class not found but class is created
I am receiving the following error
Fatal error: Class 'Ns_Module_Model_Mysql4_Setup' not found in /Users/tony09uk/Sites/magentoDevTest/app/code/core/Mage/Core/Model/Resource/Setup.php on line 234
I ...
2
votes
2
answers
373
views
Magento core code - why module init files some in Mage_All and some not
Looking at the core code under app/etc/modules...
Why does Magento use Mage_All for a large part of the modules and individual files for the others?
I understand that Magento will ultimately merge ...
0
votes
1
answer
2k
views
Magento Admin Actions Log - How to capture mass action data? [duplicate]
We've created a module for Enterprise that has 2 controller actions, one is the index and the other is a save from a massaction. We're logging to the Admin Actions Log with the following logging.xml:
...
0
votes
2
answers
688
views
XML-Rewrite for frontend only
In my custom news-module I got this:
<rewrite>
<fancy_url>
<from><![CDATA[/news\/(.+)/]]></from>
<to><![CDATA[news/index/view/title/$1/]]></to>
<...
4
votes
3
answers
1k
views
Is It Possible To Move An Admin Menu Node?
We're using Fishpig's Attribute Splash module which inserts a node "Splash" at the top level of the admin menu. We'd prefer it to live under the Catalog menu though. Here's the original XML the ...
5
votes
1
answer
14k
views
Move layered navigation block between product list toolbar and product list
I have moved the layered navigation block into the content section however I can't figure out how to position the block. I can only get it to show at the very top of the page or the bottom. I need it ...
5
votes
2
answers
554
views
Understanding types of layout handles
I am going through this link to understand Layout handles. Here I have seen that the layout handles are in the form of [module_front_name]_[controller_name]_[action_name]. So, for example the layout ...
1
vote
1
answer
441
views
Magento Custom Options / Associated Products Order
I have a configurable product which has associated simple products, but on the configurable there is also two custom options.
I would like the custom options to display first rather than the ...
2
votes
1
answer
2k
views
custom config for module - not store config
If I want to add a custom configuration node in my modules config.xml, how would I go about this and how to retrieve the values?
I do not want store configuration, just a node in my modules ...
0
votes
1
answer
2k
views
magento show featured product in header
I am quite newbie to the Magento. Currently I am doing a theme. In that I want to show all the products from featured category. For that I have done a file called featred.phtml inside
/app/design/...
3
votes
1
answer
168
views
Is it possible to add an event (hook) to a core action without overriding it?
I'd like to add a hook to a Magento core action (in this specific case Mage_Adminhtml_Sales_Order_CreateController::saveAction() but I hope there's a general solution).
Just a hunch, but it seems to ...
1
vote
3
answers
9k
views
Magento custom module is showing in advanced tab but not showing in admin configuration menu tab?
I am just a newbie to the magento extensions. I want to create a new module named as storeinfo in magento version 1.7.0.2 . For that I have my folder structure for app/local is like this
magento ...
1
vote
1
answer
3k
views
Custom Backend Module showing blank Page
I am having a feeling this is a simple issue. I have a module I created for Magento 1.7.0.2, however it's just showing a blank page when clicked. Here are my module files:
app/code/community/LAMP/...
0
votes
1
answer
8k
views
update layout using custom layout handles
i'm fairly new to magento, so i might not get all terms right. it's also possible that i haven't fully understood the magento internals which work through layouts and templates to print a webpage to ...
4
votes
2
answers
12k
views
Unable to overcome the "Can't retrieve entity config" error
I have been working on a simple module and have been stuck with the error
Can't retrieve entity config
for too long. I am assuming that this is to do with the way I have set my config.xml files up?
...
2
votes
2
answers
3k
views
Using Magento's method="removeItem" to remove js ONLY for IE8 and below
Does anyone know why the following doesn't work for removing items from IE8 and below, but does work for adding items?
<action method="removeItem">
<type>skin_js</type>
<...
3
votes
2
answers
4k
views
How to add files for custom module under system configuration? [duplicate]
I have my own module in System->Configuration and want to add js and css files for it. Now it is so:
<layout version="0.1.0">
<default>
<reference name="head">
...
3
votes
2
answers
1k
views
Send a Magento order to third-party API when placed
I'm looking on an example of where I should place for Magento orders to be sent to a third-party API. I have all documentation and all proper code that I've tested. I just don't know where these API ...
1
vote
2
answers
5k
views
Move page title using local xml
Is it possible to move the page title on cms pages to the left column of a 2 column left layout?
But, purely using local.xml and not editing the templates?
2
votes
1
answer
947
views
Create A New Layout Block Magento Basket Page
So I want to change a code block (discount vouchers) on the cart page. I need to create a new file to style this block.
The existing layout file (XML) has the following code:
<checkout_cart_index&...
14
votes
1
answer
3k
views
Improving error messages for XML compilation errors
Magento is fairly protective (as it should be) regarding the display of errors. When developer mode is enabled (as it should be during development), the application allows runtime error feedback to ...
5
votes
2
answers
5k
views
Layout Update XML - Update Handle
I'm trying to change the layout handle for specific CMS pages in the back end.
To do this I'm trying to use the following in Design->Page Layout->Layout Update XML
<update handle="store_page" /&...
2
votes
1
answer
1k
views
Magento Dataflow - Export CSV
I have a dataflow profile to export products: name, sku, stock qty
Is it possible though to export where stock qty is not 0?
Current Code:
<action type="catalog/convert_adapter_product" method=...
10
votes
1
answer
10k
views
How to prevent module rewrite class conflict in Magento
I have a class rewrite problem in Magento Onepage Checkout as I have a custom module in the local code pool and a third party extension in the community code pool both extending the same class...
I'...
34
votes
3
answers
34k
views
Conditionally show/hide blocks in layout XML
How to conditionally add a block (depending on the configuration in the admin panel) in Magento's layout XML?
We can check if config is true on actions. In the example below, if sample/config/...
0
votes
1
answer
812
views
home.reports.product.compared block in default home page never displays
I'm trying to use the layout XML that is set by default on the CMS Home page of a clean Magento install (See Admin > CMS > Pages > Design tab > Layout Update XML). It inserts three product ...
1
vote
1
answer
1k
views
Display 2 Grid layout in admin form
I have create one custom tab in my module and display one grid output successfully, but my question is how we can display two grid serializer block in one page? I have tried to out put with calling ...
1
vote
2
answers
6k
views
If condition in layout xml tag
I have create one module for displaying latest product review, module works perfectly and reviews are display on frontend side.
But what I have requirement is admin can select where to display this ...
2
votes
1
answer
4k
views
Magento - Get specific custom product option value
I'm trying to make a custom XML feed for Magento. Everything's fine and dandy, however I've hit a roadblock. I'm trying to get specific custom product options for my products, but the method I'm using ...
37
votes
6
answers
43k
views
Debugging layout XML loading
TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another.
Related to a previous question I made: How to make a module layout to be ...