FAQ Database Discussion Community


Error Magento 1.9 - You cannot define a correlation name 'ce' more than once [closed]

php,magento
I am facing the following error after installing new theme, There has been an error processing your request You cannot define a correlation name 'ce' more than once Trace: #0 /var/www/html/mage/lib/Varien/Db/Select.php(281): Zend_Db_Select->_join('left join', 'catalog_product...', 'ce.entity_id=e....', NULL, NULL) #1 /var/www/html/mage/lib/Zend/Db/Select.php(357): Varien_Db_Select->_join('left join', 'catalog_product...', 'ce.entity_id=e....', NULL, NULL) #2...

Override Magento Contacts Controller

php,magento,magento-1.9
I'm trying to override Mage/Contacts/IndexController.php I created a folder in local and created Mynamespace/CustomContacts/controllers/IndexController.php <?php require_once 'Mage/Contacts/controllers/IndexController.php'; class Mynamespace_CustomContacts_IndexController extends Mage_Contacts_IndexController { protected function indexAction () { die; } } I also put this code in Mynamespace/CustomContacts/etc/config.xml <config> <frontend> <routers> <contacts> <args> <modules>...

Perform Some Action after Customer successful Login : Magento

magento,magento-1.8,magento-1.9
I am creating a module in which I want to check some condition after customer successfully login, if condition is true then customer login otherwise not. I know two ways of doing this : Overriding AccountController With Magento event. My query are: which is the best way? Is there any...

Magento Upgrade 1.3 1.4 Pear Error Invalid Argument foreach

magento,pear,magento-1.3
Hello I am trying to upgrade Magento 1.3 to 1.4. using this guide http://astrio.net/blog/magento-upgrade-guide/ I tried the command ./pear upgrade -f magento-core/Mage_All_Latest-stable I got the error Notice: Array to string conversion in PEAR/REST/10.php on line 85 PHP Notice: Array to string conversion in /home/www/sss/staging.mysite.net/public/downloader/pearlib/php/PEAR/REST/10.php on line 85 So I tried...

Need more about magento basic

magento
I'm new to magento. Need basic knowledge about magento programming, and magento customization. Struggle to print content inside frontend. I followed below site to print content but error shows inside layout,where the content displayed. Can help me what is what in magento ...

cannot find method getExportedKeys( ) in Magento

magento
I am using PHPStorm which is really a great search tool, and I'm searching from the root Magento folder (not just the app folder). I'm searching for: function getExportedKeys and even function\s+getExportedKeys using regexp. Where would this be, is this a native method or something?...

Unable to call magento admin controller

php,magento,e-commerce,magento-1.9
I have created a custom module that adds two menus in catalog. I have also created a controller for one of the menu , but the controller never gets called but instead is redirected to the admin dashboard page. My question is some what related to this question Magento admin...

Magento: how to add a static block AFTER product list

magento,static-block
In a web site my boss wants me to insert a static block AFTER the product list of that category. Up to now, using the Magento front end application, the one you can see here, I have seen that I can add a static block only before the product list....

How to add custom tab to CMS selection in magento admin menu

php,magento,magento-1.9
Please help me. I have my module - Feedback. I want to add tab to CMS selection in magento admin menu, that would be like this CMS->Feedback. In this tab I want show grid of received messages....

How to display payment method to logged in user only?

magento,payment-method
display payment method to logged in user only in magneto. As in screenshot enter code here i want to display credit card(saved) to logged in user only. ...

Magento admin panel not working in chrome [duplicate]

google-chrome,magento
This question already has an answer here: Why I can not login to magento backend using google chrome 9 answers I installed latest version of magneto in my Localhost but when i opened this on my server, the admin panel not redirect in chrome but on Firefox it works...

Run Magento 1.9.1.0 Dataflow Import Profile Programmatically

php,xml,magento,import,dataflow
I've tried to get this working, but it can't seem to find a solution. I'm looking to run an existing dataflow profile which has an ID = 3, and has the import file name already configured. All the research I've done, leads to some variation of the following code: public...

How to always display the Product attribute label in English in the Additional information tabs in Magento

magento
I want to add some styling to the product additional information table. To do so, i have added the product attribute label to the standard table layout file located in: app/design/frontend/my_theme/template/catalog/product/view/attributes.phtml <?php foreach ($_additional as $_data): ?> <?php $lbl = $this->escapeHtml($this->__($_data['label']))?> <tr class="<?php echo strtolower(str_replace(' ', '_', $lbl)) ?>"> <th...

Add percentage discount for individual product in magento

magento,shopping-cart,magento-1.9,magento-rules,magento-dev
I need to give percentage discount for my simple products in magento and I need to show the discount amount in the front end also. I had googled to find a solution but I could not find any. I tried to use shipping cart rules, but I need to give...

Magento - How to create different weight-price drop down in products

php,magento,magento-1.9.1
How can I build a drop down list with different weights with prices for a product, which can be selected by user. Something like this Example When user selects his required weight from the drop down the price also changes....

Magento: Object not found in localhost

php,magento,localhost
I'm trying to copy website made in Magento in my localhost and finished another steps: downloaded whole website via ftp account, import database from server, change parameters for database in local.xml (post root for user and empty field for password), clear cache in Magento var folder, change base_url value in...

Get custom attribute of products from observer order object Magento

magento
I am trying to get a custom attribute in from a product in an observer. I have the following: public function export_new_order($observer){ $orderIds = $observer->getData('order_ids'); foreach($orderIds as $_orderId){ $order = Mage::getModel('sales/order')->load($_orderId); Mage::log($order->debug()); } } Which works fine, I get a nice print_r in my log. However, when I try to...

Set Magento Product Group Permissions Programatically

php,magento
When you edit a Product in Magento there is a Permissions tab with two multi-selects on it. Disable product for and Hide product price for We need to set the Disable product groups programatically by including 'Mage.php' and using a script to update the Disabled Groups. For example we want...

multi site not showing the header/nav on one site [closed]

javascript,css,magento,navigation
so i have a multi site setup and everything seemed to run fine until the other day when one of the sites decided to not show the header/nav here are the two sites: https://allholders.com/ and http://marketingholders.com/ i think this happened after i combined JS/css but all my other sites are...

Magento 1.9.1 - CSS not loading during installation

css,magento,permissions,magento-1.9
I am trying to install Magento 1.9.1. But there is some problem in first step. Page not loading CSS. Perhaps the reason could be permission. But I tried after giving permission also and still no success. Please refer the screenshot. Thanks in advance....

Show Value in Admin in Magento

php,forms,magento
i am adding a locale for region from admin panel add is working perfectly but i want to show the value in edit how can i achieve this? here is my code: <?php foreach (Mage::app()->getWebsites() as $webs) { $fieldset->addField(str_replace(' ','_',$webs->getName()), 'note', array( 'label' => $webs->getName(), 'fieldset_html_class' => 'website', )); foreach...

Magento saveOrderAction() ajax response xx{“success”:true,“error”:false}

ajax,magento,magento-1.7,checkout
Im using magneto community 1.7.2, and when i hit the confirm order button saveOrder response is xx{"success":true,"error":false} and its not redirecting to the success page. anyone have any idea why this could be happening

Simple controller with Magento 1.8.0

php,magento,routing
I am newbie in Magento world, and I want to create simple controller like described here. But when I put into my browser I getting 404 error. I try to find solution in web but I didn't. Can somebody help me please? If you need some peace of code just...

How to add elements to a fieldset in magento horizontally rather than vertically

magento
I am adding few check boxes in to magento using the fieldset option like the following. $fieldset = $form->addFieldset('display', array( 'legend' => $helper->__('Schedule Sales Order Transfer'), 'class' => 'fieldset-wide' )); for($i=01; $i*5<60; $i++){ $time = $i*5; $fieldset->addField('min'.$time, 'checkbox', array( 'name' => 'Checkbox', 'checked' => false, 'onclick' => self::setAll("min"), 'onchange' =>...

How to customize the left side-bar in Magento 1.9 category view

magento,sidebar
I am trying to customize my left side-bar in Magento when the frontend shows a certain category. For example I want to remove the Newsletter box and a custom block which was added by the theme developer. However I am not able to find the correct file to edit in...

Magento: Allow duplicate products in Collection

magento
I am developing a module to list part fitments and am running into a product collection problem with the following error: Item (Mage_Catalog_Model_Product) with the same id "1150" already exist What makes my question unique is that I WANT to have the product more than once in the collection, because...

Magento Product rating display summery of single review

php,magento
I use 5 rating options for a product review. It is displayed as below. But I want to also display the total score of that review. A score that display the average score of the total 5 of that score. (I do not want to display the average of all...

Error viewing images after enabling HHVM

magento,hhvm
I need some help with HHVM on Magento. I just enabled HHVM for my site but I am not able to see any images. It shows only the placeholder image for thumbnail, category and product details page. This happens for the backend and the frontend. Some category images are visible...

how to increase number of product on homepage in magento

php,magento
i am new in magento and reading a file toolbar.phtml and file path is E:\wamp\www\meditrust_mage\app\design\frontend\default\medi\template\catalog\product\list\toolbar.phtml...... in this file i found this peace of code,and dont know where to change product limit on homepage.i want to show all products on homepage and want to increse dropdown value to differnt level like...

Display custom block on category or product page only if user is logged in and is joining some specific groups

php,magento
I want to show the content of a magento static block on product page and maybe also on product listing page. Static block will be visible only for LOGGED IN USERS that are joining specific groups (eg. logged in users that are inside reseller, general and clients, not inside testing...

Magento payment bridge with CURLOPT_SSL_CIPHER_LIST

php,magento,curl
We are using Magento enterprise edition 1.14.1.0. Payment bridge is not working with SSL. When we ran below curl command, it worked fine curl -v --cipher rsa_rc4_128_sha --data "" https://www.example.com/MagentoPaymentBridge1.11.31.0/pub/bridge.php?merchant_code=test But the normal curl function throws error; curl -v --data "" https://www.example.com/MagentoPaymentBridge1.11.31.0/pub/bridge.php?merchant_code=test So I assume we need to edit payment...

Magento : How to get category page URL keys for different store views?

php,magento,url
I'm trying to get the page URL Key for category pages for different store views. Basically I have 3 stores set up in my Magento installation. Now I want to implement hrefhang tags in my category pages. But I cannot access category URL keys of other store views when I'm...

Magento backend 404 error due to disabling default store view

magento
I have a working magento installation with 2 websites 2 stores and 2 views the first one being default other i created just for some testing (which giving 404 error for some reason). So it happened that while i was fiddling with magento's 'manage store' feature i accidental disabled the...

Always shows order status pending in Magento working in my localhost

magento
when i had tried to order a item in magento in my localhost, to shows order status is pending. Even I gave sample visa card account information. How the order status works. how i can change order status in pending to processing. I had checked these in my localhost then...

Magento: Add dynamic code to head section in specific CMS Page

php,html,magento,phtml
I'm trying for a while now to get some code into the head section of our custom 'contacts' CMS page. The plan is to make this page to a configurable popup window through a backend setting (true/false). So far I managed to rewrite the app/code/core/Mage/Page/Block/Html/Head.php. The problem is that any...

Magento custome option product in search result

magento
I am uploading an product and product has different size available, Now if customer- who want to buy this, they have to select size then after they can buy. How to do this. I knew custom option is available in magento. But i want to allow customer to search product...

Redirect in CheckOut

magento
I currently work on a magento payment module which has to check if certain fields in a users profile/account are set. If they do not exist/have no content, I want to either 1. redirect to /customer/account/edit/ 2. display a notice that the fields in question has to be filled or...

Magento - Display a custom text in product page, only for products from specific categories

php,magento
I need to show a text near the price for all products inside specific categories. I've found this code that works, but it works only for one specific category. I need to put 119, 120, 121, 122 etc... more categories id, not only one. Can you help me? <?php $category...

Magento 1.8.0.0 - Worldpay payment response receiving 301 error

php,magento,redirect,response,worldpay
Good Morning, I have recently been handed a Magento site that functions fine, however the callback integration between Worldpay and Magento seems to fail. E-mails are sent to me stating that the server is responding with a 301 error (I believe this is a redirection error). The URL that Worldpay...

magento write to or read from session using db value

php,magento,session
I'm working for a company that has chosen to use the db for session handling in magento. Specifically, in /app/etc/local.xml there is this entry: <session_save><![CDATA[db]]></session_save> I understand that the data is being saved in the table core_session. However, I'm not familiar with how to read from and write to the...

Magento custom module Observer not working

php,magento
I have created my custom module in magento at app/code/local/mycustom/GeoLocation, in that i want to create a observer so i had followed lot of tutorials and at last i had created below code to call it on every page load of magento but still it is not calling my observer.php...

Magento call event after import product

magento
I want to know which event will fire after product import action complete.I want to setup some logic after product import done from admin side in Magento. I have tried this catalog_product_import_finish_before but its not working in my case, I want to add my logic after product import work finish....

You don't have permission to access /magento/

.htaccess,magento
I've put on the host in magento in sub-folder /magento/ and when I try to open http://example.com/magento/ I got this error Forbidden You don't have permission to access /magento on this server. I know is something from the .htaccess file because if I remove/rename it I can open it but...

Get Order Details by Order Id

magento,search,order,magento-1.9
I need to retrieve an order from Magento by its id. How do I load a specific order by id?

Magento - how to translate message type

php,magento,translation
How do I translate the message type that is displayed to the user when adding product to cart? The message itself is translated, but the message heading, "Success" is not. So for the French version of my site, the message is: "Success! Glacière Nomad Extreme 55 L a été ajouté...

Unable to convert Magento object array response to json format

php,mysql,arrays,json,magento
I am trying to convert a magento object array to json, but it is giving the result {}. $facetColor = Mage::getModel('facets/color')->getCollection(); printing the array gives me print "<pre>"; print_r($facetColor); gamer_Facets_Model_Resource_Color_Collection Object ( [_joinedFields:protected] => Array ( ) [_model:protected] => facets/color [_resourceModel:protected] => facets/color [_resource:protected] => Gamer_Facets_Model_Resource_Color Object ( [_resources:protected] =>...

Get images out of product description in phtml file

php,html,magento
as the title might let you suggest I have trouble to get image URL's out of product descriptions in my custom phtml file (located in template folder). In cms pages/blocks you can use {{media url="wysywig/Banner/image.jpg"}} which we do for parts (headlines) of our product descriptions. Now when I try to...

display product label on “out of stock ” products in magento site

image,magento,magento-1.9
We are using magento 1.9.0 version. We wants to display the product label as out of stock on those products which are set as out of stock in admin panel. Let me know if you need any clarifications. Please help me to find the solution. Thanks in advance!...

How to pass an EAV value to the Paypal payment information

php,magento,paypal,magento-1.9
I've introduced a custom EAV attribute for the customer object. Let's call it myvalue. Within several places in magento, I'm printing the value like this: echo Mage::getSingleton('customer/session')->getCustomer()->getMyvalue(); When the customer pays with paypal, I'd like to have myvalue in the reason as an addition to the order number. My intent...

Magento Ignore Child Attributes in Layered Navigation

magento,attributes,layered
I have some bundled products that have attributes associated with them. The child products also have the same attributes associated with them, however they are sometimes different. My issue is that with layered navigation, it is looking at both the bundled product and all the child products' attributes. I was...

Add block to all CMS Pages with certain URL Key

magento,layout,content-management-system
I'm trying to discover whether this is possible or not. We have a series of CMS pages that represent our library. So the URL keys for these pages are something like: library/ library/top-ten library/five-questions library/faq etc... The powers that be want to add a static block that will appear only...

meaning and location of string inside Magento's Mage:getSingleton

magento,singleton
Here is a string I see a lot of similar in Magento: Mage::getSingleton('checkout/type_onepage'); However, I'm trying to find out where that class is located, and what the meaning of the string is specifically. Can anyone explain this to me?...

SQL Table Error Magento

php,sql,magento
This is very odd, anyone have an answer for why this gives an error? ------------------------------------------------------ -- -- -- Table structure for table `mg_cataloginventory_stock` -- CREATE TABLE IF NOT EXISTS `mg_cataloginventory_stock` ( `stock_id` SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Stock Id', `stock_name` VARCHAR( 255 ) DEFAULT NULL COMMENT 'Stock...

I am facing issues in radios validation in magento

php,magento
i have added the radios field in magento but i have problem in validation it show the all radios are required, and when i select an option it gave me error for other options. here is my code: <?php $fieldset->addField('size', 'radios', array( 'label' => Mage::helper('moduelname')->__('Maximum rim size you can handle...

magento redirect particular category and its subcategory to homepage

.htaccess,magento,redirect
I have one category in magento shop called shop online. I want to redirect this category and its sub category to the home page using the htaceess. Tried this in htaccess to redirect RedirectMatch 301 ^/shop-online/$ http://www.domainname.com/index.php can anyone please help me......

Magento add a column to sales_flat_quote table and add data

mysql,magento
I am coming from a previous enviornment where doing things like modifying queries and adding columns was just a matter of writing the sql and executing it. However, now that I'm working in Magento I want to do things "the Magento way". Scenario: we use paypal express, and before the...

Check if radio button value is, then echo some HTML

javascript,php,html,magento
I want to check if the value of the select field is some value and if it is, it needs to echo some text. I use this code for input box in the form: <li> <div class="input-box"> <strong><?php echo $this->__('Would you recommend this product to a friend?') ?></strong> <?php foreach...

How to upload multiple pdf file to Magento Manufacturer

php,magento
I would like to upload multiple pdf with manufacturer how can I do this in magento? I am able to upload logo of manufacturer with plugin, but I can't add multiple pdf files with manufacture. Can someone guide me with code or plugin

Change theme based on param url

magento,events,observers
I would like to know if I can change the theme based on url parameter (or if it's too late) and if it is possible which is the right event to observe I have only found a guy who was talking about observing controller_action_predispatch but with this event I can't...

change custom product tab position in admin grid Magento

magento,tabs,position,admin,product
Hi i have added a new product tab in admin grid by following the below link http://inchoo.net/magento/how-to-add-custom-product-relations-in-magento/ Everything is working fine. BUt this has added the new tab at the last position in product edit section. Can you please suggest me how can i change the position of that tab....

Get variables always in differnet .phtml templates

php,magento
I have to use some variables again and again in different files. $_product = $this->getProduct(); $_helper = $this->helper('catalog/output'); $_productType = $_product->getTypeID(); $_productName = $_helper->productAttribute($_product, $_product->getName(), 'name'); $_manufacturer = $_product->getAttributeText('manufacturer'); $_decor = $_product->getAttributeText('decor'); $_serie = $_product->getAttributeText('serie'); $originalImageWidth = $this->helper('catalog/image')->init($_product,...

Magento system.log keeps writing even if it is disabled

magento
In my magento store, i have disabled logging, however the system.log keeps getting bigger because magento writes to it. How do i force the system to not write to system.log?

update local.xml with script in magento

xml,magento
I want to update my local.xml with script. I want to change my username , database name and password in the xml using my custom script. I am creating script. it can show the values of the node and also update the values but it can't set CDATA with the...

how to get checkout cart specific item totat price?

magento,checkout
I have a custom html I want to implement this html into checkout cart page . I have implement it but i cant get cart item total price , eg. I have 5 item in cart . I have updated only one specific item in the cart then I don’t...

Solved - Long PHP script does not run completely

php,magento,integration
Problem I'm trying to execute a script in PHP that read a CSV file and for each row that the script read it get the code and verify if already exists in DB. If this code exists in DB update the stock if not exists just insert into DB. But...

Javascript Conflict in Magento

javascript,jquery,magento,calendar
I am using this extension on my magento store . Extension :http://www.magentocommerce.com/magento-connect/event-calendar-1.html This is the event page on my store : www.alshulauae.com/events But the custom javascript for this theme http://alshulauae.com/skin/frontend/default/MAG090176/js/custom.js is conflict with the extension and the event calendar is not showing . If I remove the custom.js , the...

Create order sales_email_order_items html file

email,magento
I am creating order from backend in magento and user is getting email of order details, in that email product details are coming from variable sales_email_order_items. I want to modify that table(totals of order tax, subtotal etc.). I have tried changing in file app/design/adminhtml/default/default/template/email/order/items.phtml but it do not shows any...

Magento module not calling install script, to create attribute for category

php,magento
I am creating module in magento 1.9.1, to create a attribute for categories. I have created files as follows: app\etc\modules\Ddevs_Ebayaff.xml <?xml version="1.0"?> <config> <modules> <Ddevs_Ebayaff> <active>true</active> <codePool>local</codePool> </Ddevs_Ebayaff> </modules> </config> I am trying to call controller and mysql install script in one config file as follows app\code\local\Ddevs\Ebayaff\etc\config.xml <?xml version="1.0"?> <config>...

Arabic words in invoice pdf print Magento

magento,pdf,tcpdf,arabic
I'm trying to fix this problem by using integration TCPDF in magento but i don't know how do that this is my try in this file \app\code\core\Mage\Sales\Model\Order\Pdf\Abstract.php require_once('TCPDF/TCPDF.php'); $pdf = new TCPDF_TCPDF (PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true,'UTF-8', false); I don't know waht i'm doing wrong. thank you....

Magento how to check if Admin is logged in (Frontend)

php,magento
How can I check if the admin user is logged in on the frontend since the cookies for the frontend and the backend are splitted?

Replace Product Names with a Loop

php,magento
I have a Magento webshop with several products in it. All of them begin with the word PRODUCT, for example PRODUCT 001. I want to replace the word "PRODUCT" with "Article". I tried to write a small script, but it's not working at all. Here is what I've got so...

magento table that stores relation between cms_block and categories

database,magento
In Magento, I need to run a query to find out which categories have a Static Block assigned. I know static blocks are stored in cms_block, and also where categories are stored. However, what is the table that joins these two in the database? Or is it a foreign key...

How do I configure a Magento .csv import with a custom column name?

magento,csv,import
I've got a .csv file which I need to import into a clean Magento 1.9.x instance. It has a column name which is non-standard: 'ShoeSize' Here's the list of column names:...

Css text/image wrap not working

html,css,magento
Why does the text wrap not work around these images? I work in magento text editor, that why i do not use a css style sheet but write it into the code. Not working version: https://jsfiddle.net/mastervision/s8grhjab/ i used TextWrap I worked for me in many other situations like here: https://jsfiddle.net/mastervision/s6o64m06/...

Magento custom menu module not showing

magento,magento-1.9
I have installed Magento custom menu module, but I cannot get it to resolve on my site. I have followed the checklist in the docs and everything seems fine, including the following lines in my layout page.xml, which calls the nav. Anyone come across this or know what's going on?...

Get Product Options for each Product in the Catalog in Magento

php,magento
This is using Magento 1.9. I am trying to build a script that outputs all the product options for each product in the catalog into a CSV file. I have tried using the code on this page: http://www.atwix.com/magento/configurable-product-attributes/ For this code: $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'color'); foreach ($attribute->getSource()->getAllOptions(true) as $option) {...

how to add slideshow in magento 1.7.0.2 front-end

magento
Hello everyone i want to add slideshow on page, i refereed below this url. I follwed all the given steps by Selva, but doesn't worked out for me. i followed steps upto 2 but didn't understand 3-step. My side first it was taking default website name, then i changed it...

Category banner in a magento website

magento
I have moved the category banner into 2column.left.phtml. How can I do to display it on the category pages only and not on the product pages ? For example my category page is "cuff-links" and when I click on a product on this category page the link changes to "cufflinks/sliver-star",...

How to retrieve product list in json format based on category id ? [Magento] [Solved]

json,magento
I'm new to Magento & JSON. I want to retrieve a list of products through category id in JSON format. like http://magentohost/json/prod.php?catID=8 [This is not a reference link. It shows how link should look like] Any helpful inputs are welcomed & appreciated. Thanks....

Unable to add product to cart programmatically in Magento

php,magento,session
I have tried every possible technique to add product with quantity to cart ( in Magento), following are the things I have tried and forums/sites taken help from. But none of them is working. I am using Magento Community edition 1.9.1.1. If anyone has any suggestion/answer, please share. Tried to...

Paypal response avscode (Master Card) is always “X”

php,magento,paypal,paypal-sandbox
I'm writing a module which prevent an user to checkout (with payment method Paypal pro, using Master Card, Visa, etc) if the zip code and address he provided not match those information in his card. At first, I created 2 sandbox account (merchant and buyer) to check paypal's response. Here...

product list in category use unknown template

php,html,magento,templates,magento-1.9
In an example category, the result products are listed using an unknown template. I have pagayo electronics theme as default.It uses a class called item-review and item-bottom for listing. they aren't in html code. code is like this: <ul class="products-grid"> <li class="item first"> <a href="http://magicfly.ir/mentalism/13-steps-to-mentalism.html" title="13 Steps to Mentalism" class="product-image"><img...

Magento: What event would be best to observe for any update to the cart

magento
What event(s) would be the most solid to observe if I want to do something anytime someone modifies items in their basket/cart, ie: adding products, removing products, and changing quantities...

Magento jQuery / Prototype Issues in 1.9 After upgrade

jquery,magento,prototype,magento-1.9
After doing an upgrade from 1.3 ( and only moving theme and a couple of extensions - so reasonably clean install) , I am having a lot of jquery issues and prototype issues. For example home page: Class is not defined , Ajax is not defined. I'm not sure where...

Magento Show 'plus shipping costs' on product view page next to price

magento,magento-1.9,shipping
I want to show the plain text "plus shipping costs" next to the price on my product view page. I don't want the taxes% to be shown, but only the shipping text as a link to my shipping costs information. I couldnt find the file or admin setting yet....

How to create custom adminhtml theme magento

magento
I try to extends default adminhtml magento theme. So I create a file in: app/design/adminhtml/default/myTheme And also create a new module, I know that my module load because it appear in the modules lists in System->Configuration->Advanced and in my config.xml (of this module) I write: <?xml version="1.0" encoding="UTF-8"?> <config>...

Add custom code to right sidebar on advanced search result page

magento
I'm trying to show custom (dynamic) text in the right sidebar of the advanced search result page. I can add a static block -- but that won't help in this case. I've added the code to the product view page -- and it works fine. see http://www.ktav.com/index.php/ktav/philosophy/orthodox-forum/the-next-generation-of-modern-orthodoxy.html for an example....

How to bypass toHtml() To print html tags in Magento

php,html,magento
At first let me admit, I'm not a programmer, although I have a lot of expierence in tweaking small bits of php here and there. Also I'm not very familiar with Magento's ways of coding. I have this client who wants to add the manufacturer's brandname to the breadcrumb with...

Custom Tabs does not show up in catalog product information

php,magento,magento-1.9
I'm trying to add a custom tab in catalog, I'm following FishPig's tutorial. So I want to achieve something like this I have followed every instructions in the tutorial but still can't get it right. I have disabled the catching and enabled debugging. I have checked the logs but I...

Magento simplexml_load_string() error location

php,xml,magento
I have a really annoying problem. I was doing some alterations to Magento shop when I ran into simplexml_load_string() error, it is clear to me that this error is caused by some bad XML file, but the very important question to me is which file and where is it located?...

Why has overriding password hashing caused urls to break in magento admin?

php,magento,url-routing
I have overriden the hash($data) and validateHash($password, $hash) of Mage_Core_Model_Encryption in a custom module. It works I can login to the admin area with my password and it validates correctly with the new hash; however, I cannot navigate in the admin area. I see a password-like hash becomes part of...

Showcase website that will reinstall itself every day?

magento,cron,cron-task
I have built a showcase Magento installation that I am about to deploy public. I'd like to give people backend access but indeed I don't want their changes to stick - not sure how to go about this. What's the best way? I have seen a Magento showcase somewhere that...

'Select' 2 pieces of info (XSLT file)

magento,xslt,sage-erp
I am trying to link our Magento website with Sage 50 with a piece of software. We would like the customers first name and last name to go into the company field. Below are the 3 lines I assume I have to tweak: <Forename><xsl:value-of select="billing_address/firstname"/></Forename> <Surname><xsl:value-of select="billing_address/lastname"/></Surname> <Company><xsl:value-of select="billing_address/company"/></Company> How...

Third party helper override doesn't work

magento,rewrite,override,magento-1.7,helper
I am writing an extension for Magento 1.7 where I need to override a helper from an third party extension. The name of my extension is Mkpreis_Ebay Name of the third party extension: Ess_M2ePro Helper I want to override: Ess_M2ePro_Helper_Module_Renderer_Description My config.xml <config> <modules> <Mkpreis_Ebay> <version>0.0.1</version> </Mkpreis_Ebay> </modules> <global> <helpers>...

Magento custom extension isn't called in CMS page

php,magento
I create an extension on Magento, but when I include it into a CMS page, it isn't called. There is no error or warning. I tried to put debug line in the extension, but those lines aren't displayed too. So I think that it's a configuration issue. Here is my...

Apache crashes on installing Magento extension

php,magento
I am installing a Magento extenion on my Magento loacalhost.I get following error and xampp crashes. Problem signature: Problem Event Name: APPCRASH Application Name: httpd.exe Application Version: 2.2.21.0 Application Timestamp: 4e6b3136 Fault Module Name: php5ts.dll Fault Module Version: 5.3.8.0 Fault Module Timestamp: 4e537a04 Exception Code: c00000fd Exception Offset: 0018a7a3 OS...

Magento change onepage checkout page title

magento
I need to change the checkout onepage title. I tried by adding below code into my custom layout file. But it did not work; <checkout_onepage_index> <reference name="head"> <action method="setData" translate="title"><key>title</key><value>your title </value></action> </reference> </checkout_onepage_index> Can anyone help me please. Thank You....

Magento setShippingMethod('freeshipping_freeshipping') observer event

magento,magento-1.7,magento-1.8,magento-1.9
I need to display the shipping notice in cart. In order to display the notice I've set the shipping method using php in an observer: $quote = Mage::getModel('checkout/cart')->getQuote(); $shippingAddress = $quote->getShippingAddress(); $shippingAddress->setCountryId('DE')->setShippingMethod('freeshipping_freeshipping')->save(); The event I used is "add_to_cart_before": <add_to_cart_before> <observers> <add_to_cart_before> <class>dispatcher/observer</class>...

Magento: How to load js in admin panel

javascript,php,jquery,xml,magento
In last 2 days I'm trying to load .js file into admin panel, but without any progress. I'm working on custom theme and tried tens of solutions. Cache is disabled. Those scripts which I try to load are already in magento js folder and they came with magento instalation. I...

Magento: Is a certain product in the cart?

php,magento
On my list.phtml page, I want my PHP script to be able to tell whether any product is in the cart, based on it's SKU. So my conditional would theoretically be like this: $_sku = 123; if($_sku->isInBasket() == true){ echo 'Product: ' . $_sku . ' is in the cart';...