Newest magento Questions

Q&A for professional and enthusiast programmers

Magento Mysql error

I am getting: SQLSTATE[HY000] : General error : 2013 Lost connection to MySql server during query, query was UPDATE table table name. Got this error when trying to login in Magento Admin panel. ...

How to get category name by category id in Magento

How to get category name by category id in magento on category page? Thanks in advance please suggest me.

Assign custom image to programtaically created product

once guest user click on button "add to cart1" , we are doing below things : 1] we r creating simple product programatically 2] we r assigning custom image to that product. 3] Displey one more ...

How to edit canonical meta tag for category from http to https in magento 1.9.x

I tried adding code in category ->custom Design->Custom Layout update <reference name=”head”> <action method=”addLinkRel”> <rel>canonical</rel> <href>http://...

Executing JS function after clicking button which is present inside form

We have button "create" and onclick "Create" button, it will create product programtically and assign custom image to that product. app/design/frontend/rwd/Theme3/template/aitcg - js_styles1.phtml &...

Intl install using xampp - make failed

I am trying to install the intl extension to set up Magento. But when I run sudo pecl install intl, I get an error saying that the make failed. 2 warnings and 1 error generated. make: *** [php_intl....

Magento add custom block sales order create page

I newly magento developer, i have create custom block sales order create page. The custom block not showing, please help me how to resolve the issue. app/design/adminhtml/default/default/layout/...

Sales tax on shipping charges in Magento

Magento by default does not add sales tax to shipping charges. But some shipping charges are sales taxable. We get tax amounts into Magento through Avalara. Does anyone know how to work around this ...

how to create a downloadable product programmatically [on hold]

I need to create a new downloadable product via programmatically like a simple product. Kindly suggest some ideas or codes here.

import images via configurable csv

I want to import Configurable Product along with their associative products and images. I imported the products it associative products are coming in configurable product but images are not uploaded ...

Export products excel sheet in mageto

I am using magento 1.7 there are about 9000 products, I want the excel sheet format,but when I go to export product excel sheet, it is not working, might be because of heavy amount of products. So is ...

How to automate Add to cart button through selenium webdriver Java

i have tried through xpath but it's not working. Also would appreciate if anyone tell me how to Add to cart and checkout the product through automation awaiting for kind response

Separating Cart Price Rule from Catalog Price Rule in Magento2

$order->getDiscountAmount() gives you the total discount amount on the order. $order->getAppliedRuleIds() gets the applied rules on the order. In one order I got two applied rules, one is ...

How to retrieve product's data for each product in category view?

In category view, I want to show an overlay containing product's data, such as brand, manufacturer, tax rate and so on. I can display an overlay (using JavaScript's onmouseover event) and retrieve an ...

Magento 2 - No PayPal Pro option in admin

I've setup my store using Magento 2.1.5 and have come to the point of setting up the payment methods. I wanted to use PayPal Pro so the user stays on the site during checkout (no SSL as of yet but ...

Debug loading issue

I'm having trouble debugging an extremely strange bug. It happens rarely, and at seemingly random places on the page. The HTML will stop, and start loading the page again - see screenshot below: ...

How to detect if product has a price Rule in Magento?

I have created a custom extension in Magento 1 to check if a product has a price rule and then apply some customs rules, im using this in Observer: sales_quote_collect_totals_before, this means that ...

magento captcha resize issue

I have installed Google reCAPTCHA v2 for web-forms in magneto i have installed reCAPTCHA v2 so i was expecting different captcha ex: i don't know why i am getting that captcha and that captcha is ...

Error: Maximum width and height dimension for upload image is 5000

I have an automatically upload for product-images. The images are uploaded but i don't see them. I get the error: Maximum width and height dimension for upload image is 5000 The image is correct ...

Magento 1.9.2 - pass a custom variable in transactional email

I need to be able to grab a few custom Product variables and pass them one into the transnactional email but in the following format {{var brand}} because I actually need to pass this on within a ...

Get value from customer_entity_varchar - Magento

I created a customer attribute in backend magento, but I want to show this attribute to the user so that he can alter its value in the frontend. My input field is being displayed in the frontend, but ...

want to get success message above or below the form

cms page contact us has a form when we submit the form it shows success message that form is submitted. but this message is shown at the top of contact us content I want that success message should ...

magento checkout page error with exception log

the magento checkout page give an error saying There was an error processing your order I am getting this error. It was working fine from six months. I haven't changed anything. Troubleshoot: I ...

What is better approach “WHERE IN” in query or query in foreach sql

foreach ($activeChildren as $child) { $cat_id=array(); $cat_id[]=$child->getID(); if ($child->getIsActive()) { $productDetails = Mage::getModel('catalog/...

General error: 2013 Lost connection to MySQL server during query, query was: UPDATE `mgtp_admin_user` SET `logdate

SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query, query was: UPDATE mgtp_admin_user SET logdate = ?, lognum = ? WHERE (user_id = 2) Trace: 0 /home/f3fasb5o/...

Unable to get the magento version 1.9.3

Any one here who can share link with me to download the magento version 1.9.3. I am trying to download this but could't found any source. Regards

Magento 2 Not Building Product Thumbnails Cache

There are other, similar questions out there but non of which have the correct answer for me. I have a fresh Magento 2 installation, built using composer. I have done nothing on it apart from install ...

Magento 1 Display Category Title on cms Home page

how can I display Category title on this way: <block type="catalog/product_list" name="featured1" template="catalog/product/list.phtml" after="cms_page"> <action method="setCategoryId">&...

Using Toggle Button In Magento Filter (Theme Link)

I'm using This theme for a E-Commerce store , in the filters section I want to show filter only when the user click on the button Like A toggle State of Button or A div Eg in Prada.com : look for ...

5.5.52-MariaDB with Magento 2 will it work properly

am trying to import Magento 2 database on 5.5.52-MariaDB. while it was import I got an error the import stop at admin_user ERROR: "MySQL Error There can be only one TIMESTAMP column with ...

Join two tables and put results in grid magento 1.9.x

I'm working on a custom module with a flat table containing product's sku in it. I'd like to show in a grid sku and name taken from catalog/product and other info taken by my own table; in Grid.php I ...

Magento CSV upload - Products not uploaded all time

I am uploading products using csv file in magento. Few times the product get uploaded. While other times it shows that all products imported but do not show under manage products options. When the ...

want to save the product image from csv file

I want to import Configurable Product along with their associative products and images. I imported the products it associative products are coming in configurable product but images are not uploaded ...

Error is appearing when i am clicking product -> Catalog in magneto and log file have an error?

Go to product -> and click Catalog There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 315900997 the log ...

Magento Paypalplus - Deactivate Payment-Methods via PHP

we are using Magento with some Extensions, one of it is Paypalplus and it is essential. Now we want to sell gift-coupons, which is explicitely forbidden by Paypal. So we need to deactivate ...

Magento: Prepaid Inventory module

Does anyone know of a prepaid inventory module? This is for when a customer will prepurchase items, and then 'order' them at a later date. For instance we have a large customer with dozens of buyers....

Magento 2: Difference between Models and Data Models

I'm aware that Magento 2 introduced data models as part of the service contract architecture. Data models usually implement interfaces defined in Api/Data/ of a module. But, Magento seems to have ...

How to develop admin and frotend extension in magento 2

I want to learn how to develop back end and front end Extension in magento2. Basically all below things. 1) files and folder structure. 2) Understanding of back end and front end directory ...

Magento custome module translation not working

For a specific module translation is not working for any of it's action. Even if i add the translation in the translate.csv file. And one more thing when i access that module actions then in Chrome ...

upload image to product and allow guest to be logged in

if we click on "create" button ,it ll do below things 1] create product programatically 2] assign custom image to product [ Image in path : custom_product_preview/quote ] <?php echo Mage::...

.htaccess redirect issue in magento

http://www.domainname.com/abcd.html?promo=dsfsd RewriteCond %{QUERY_STRING} promo=(.) RewriteRule ^servlet(.) /landing?gotopage=servlet$1 [QSA,R=302,L] but when i pass from different server. ...

Magento CE 2.1.X Stable version

I Want to Migrate to Magento so which Magento 2.1.X version is stable

How to get an access to Magento App code which is in Docker container

I haven't managed to find the solution how to get an access to Magento App code, which is in Docker container, at my host machine to have a chance to develop in my favorite IDE. In detail, I use this ...

getPost() method show blank array

$this->getRequest()->getPost(); shows blank array on controller->saveAction() when I press submit button on live server but it works on localhost.

Magento 1.9: Activate iFrame on Store View

I have a simple question. Is it possible to run Magento in an iFrame for a specific Store View? We have a customer who wants to bring our Store via iFrame over OCI to there SAP Websystem. We don't ...

Magento Column not found: 1054 Unknown column 'salesorder.pre_order

I created a custom module that allow to Pre-Order product Here is my install script <?php $this->startSetup(); $this->addAttribute('catalog_product', '...

Magento says INTL is not installed, but php -m shows that it is there

I am using XAMPP to set up Magento, and I installed the intl extension on my mac. When I run php -m, intl shows up as one of the modules, but Magento still says that it is missing. My php.ini file ...

Magento ScribeJava access token issue

I'm trying to connect to Magento using the REST API and the Scribe Java library. The tutorials that I've followed (https://gmartinezgil.wordpress.com/2013/08/05/using-the-magento-rest-api-in-java-with-...

Centos 6.x 64bit server High cpu usage

I've a website on my Server Centos 6.x From about 4-5 days, my server crash, i think the problem is the high cpu usage. I fount that when there are 2-3 users connected to my webiste, the CPU is ever ...

Magento : Base table or view not found: 1146 Table

thanks to all for so much knowledge share. Following is the issue at my site: I have changed hosting from one Godaddy account to another. zipped all files n upzipped. imported the db but following is ...
Translating... 0%