Newest magento Questions

Q&A for professional and enthusiast programmers

Set Attribute Option in Magento SOAP API XML

Does only one attribute option can be set at a time using SOAP Magento API 1.9? I tried to set multiple options using below XML but no success. Can anyone help? <soapenv:Envelope xmlns:xsi="...

Timeout error occurs while import file sql into phpmyadmin on cpanel server

how to import sql into phpmyadmin on cpanel server.i tried to import, but it uploading long time then displays timeout error. i uploaded my magento site into cpanel but while uploading mysql ...

Magento adding reference block for cms widgets

I'm trying to add sliders inside my product view page. There are already a couple of presets within the CMS Widgets but none of them are at the location I want. First I went into page.xml and added: ...

Magento - Need to force HTTP for two pages, and the rest of the website forced to HTTPS

I have seen a couple of other people, also asked this question. I did not find any solution working out for me though. So here is my problem: On my Magento installation, HTTPS is forced for all pages,...

Magento 2 gets stuck in maintenance mode when deploying to production mode

I recently put my Magento 2 project in developer mode so I could enable path hints and re-compile some of the LESS code. When I went to put the site back into production mode, it appears to stall in ...

On Reorder: Change promotional products to regular retail products

We have promotional products (PROM) that people order online and they cost nothing. When they reorder this product they are again charged nothing but I want to 'hook' this reorder event and change ...

Magento 1.9 cart row subtotal not updating

I'm customizing a magento default theme, when i change quantity on magento cart page item it automatically update cart totals, but item row subtotal is not updating, i attached the a screen below I ...

Newsletter and Customer Sign Up form taking too much time to respond

I am using magento version 1.9.2.4. When i am trying to submit things from Newsletter and customer login form, they shows me instant values in backend but it takes too much time about 2-3 mins in ...

Magento JoinLeft

I'm trying to join a custom table to a customer collection. The custom table is: +---------+--------------------+ | user_id | linked_customer_id | +---------+--------------------+ | 4 | ...

An error occurred while creating shipping label

i've found error in exception.log file SoapFault exception: [Client] SOAP-ERROR: Encoding: object has no 'AccountNumber' property in /var/www/html/app/code/core/Mage/Usa/Model/Shipping/Carrier/...

I am trying to upload configurable products to Magento but attribute is not showing [on hold]

I am trying to upload configurable products to Magento ver 1.9.2.2. They are a building supply company and you can buy the products in different quantities such as 24x, 12x etc. I have worked with ...

Magento Extension - Helpful or not

I am getting lot of spam searches on my website. I am giving a thought for using magneto extension - NoBots - Stop Magento Spam, for blocking the spam searches. Will it helps, or it will cause any ...

Send Magento's Email with CronJob

My Magento Application don't send email on production environment, because cron job configuration don't be effect on Kinghost. How I can configure that issue? Thanks in Advance Magento's version: ...

Browsers redirect when trying to access ip of virtual guest from host

I'm running Magento2 on Ubuntu15 in VirtualBox on a Win10 host system. The VMs network is configured as "host only" adaptor. I can ping it from the host, and in chrome, I can access apache's index.php ...

Error while creating shipment with FedEx [migrated]

I've configured FedEx in magento and when I'm going to create shipment with create shipment label it's giving error like this RequestedShipment shippingChargesPayment - Payor is required How can I ...

How to disable the enter key on search bar

I'm using Magento and want to disable the enter key on the search bar. My code is below for search bar: <form id="search_mini_form" action="<?php echo $catalogSearchHelper->getResultUrl() ?&...

Setup Wordpress with Magento using Ngix shows 404 Error

I am using magento2 and fishpig WordPress integration extension and using Nginx Server. Wordpress directory is on magento root with name "wp". Magento is working fine and display the blog content ...

magento generate url rewrite for new category

I'm writing a very long import script to merge data from a single Magento store into a multi-site store. Its all going great except I've found the url rewrites that are automatically generated when ...

Remove “add to cart” button with Category Design Layout XML?

I'd like to be able to put a snippet of XML within the "Layout Update XML" input and have it pull the "add to cart" button from all the products underneath that category? Category Design Tab EDIT: I ...

Magento: adding link in head to every frontend page

I have a module that needs a canonical link injected into <head> on literally every page on frontend. Is there a way to do it? Currently, given my module doesn't need its own page on frontend, ...

Cannot read property 'replaceWith' of null - ajax call

I'm trying to replace "Hello world!" with "Hello to you too" using a ajax replaceWith. However I'm getting this error: Cannot read property 'replaceWith' of null Where am I taking the wrong turn? ...

504 Timeouts on magento site, with max execution time set to 180000

I'm getting 504 gateway timeouts when exporting my products from a magento site. It's cloud hosting so I don't have direct access to php.ini However I have set max execution and memory to 180000 in ...

Change final shipping rate based on the product weight in magento

I am using table rate for shipping methods configuration. But the final shipping rate will change based on the product weight. Final shipping rate=Shipping rate*Product weight For Ex: If the ...

Magento: 404 error page contains canonical tag to /no-route

our 404 error page in Magento contains a canonical tag (which I don't know how to edit) that leads to /no-route instead of the URL which could not be found. /no-route returns a code 200. Is this a ...

Magemodules google shopping

I have magemodules google shopping extension installed which is scheduled and managed by aoe scheduler, as my shipping prices are managed by webshopapps product matrix i thought to include shipping ...

Magento Show price saved and price per each in bulk products

I need to show data to highlight the price of the products, something underneath the price like "You save: 5 USD" and "price per each : 0.005 USD". but I not found some extension, or the best way to ...

Magento 1.x: Widget custom parameter

I've created a widget called XXX Widget. That widget only contains one custom type field. Below you'll see an example of my widget.xml, there you'll see that I call a custom renderer in <type>......

Magento - specific mobile / desktop Menu

I have found a lot of different ways to make mobile menu different from desktop one, but I'd like to use the same menu, but in different sequence. Is it possible at all in Magento? e.g. I have 1. ...

Convert datetime and time zone to datetime

How to convert datetime with timezone to datetime. I have tried multiple which are available on PHP blog. But nothing worked out. I am retriving datetime from MySql query as 2017-01-20T13:59:19+03:00 ...

hide attribute from some categoried magento

i have an ecommerce website http://www.sarvadajewels.com/index.php/preset-engagement-rings/women.html in this there is a attribute centre diamond size i want to show this in this category but i dont ...

Magento: loading frontent layout

I have a module in app/code/community/Foo/Bar/. Now, I wrote most of it, but I have a problem adding a into head on every page. My config.xml: <?xml version="1.0"?> <config> <...

Magento Default contact form is redirecting to 2-column-right layout after the form submission

I am using default magento contact form in my site. {{block type='core/template' name='contactForm' template='contacts/form.phtml'}} and layout has set to 1 Column. When I load the contact form 1 ...

Magento Order total not updating after creating invoice programmatically

I am creating invoice programmatically. As we are using using Fishbowl inventory and from that we directly generate shipment for orders in magento. So i am creating invoice automatically based on ...

Problems with breadcrumbs [on hold]

I have some problems with breadcrumbs on magento version 2.1.1 . When select a product from category page , breadcrumbs on product detail page not showing product category name . eg: Home -> ...

How to make admin form field readonly when edit

I am trying to make admin form field readonly using below code in protected function _prepareForm().but it also make readonly when add new item.so i would like to make readonly when edit form. ...

Magento installation error on wamp n xamp server

Getting error.I treid again n again reinstalled too.php server is ok updated version. Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) ...

How to remove index.php in Magento 1.9 using .htaccess

I have such URL at my Magento website as http://magento.store/about and http://magento.store/index.php/about. I don't need these two pages, I need them to be properly rewrited in .htaccess file. I've ...

Magento Website Crawl Issue - A description for this result is not available because of this site's robots.txt

I am working on this site and some how (I don't know why) Google stop crawling Home page URL (http://www.indusuno.com/), while checking this site in Google It shows (A description for this result is ...

Magento 1.9: dynamic config.xml

I'm creating a Magento 1.9 module, and have so far defined settings(which work), then I went onto adding default values for my settings fields. Now, I was wondering, is it at all possible to have a ...

PHP Magento 2 REST Consumer key has expired

I have been usng this OAuth Library for connecting with Magento 2.1 REST API. My code for getting Temporary Credentials is as below- if (isset($_GET['go'])) { // First part of OAuth 1.0 ...

Magento 2.1 Oauth 1 for REST Integration

I am trying to use this code magento.php but I am getting the error like this- OAuth\Common\Http\Exception\TokenResponseException: file_get_contents(http://store_name/oauth/initiate): failed to open ...

Custom product attribute in order grid

I have a custom product attribute that I need in orders grid. My grid.php collection is as follows protected function _prepareCollection() { $collection = Mage::getResourceModel('sales/...

How to set custom subtotal in product rows on checkout cart page in magento [on hold]

How to set custom subtotal in product rows on checkout cart page in magento.

What will happen if i delete recurring profile product order programatically

I just wanted to know, what will happen if i delete recurring profile product order after successful placing order of that product. does recurring payment work or it will be cancelled?

magento2 cart prices are shifted

I'm using Magento2 and I have successfully changed the final product price depending on the custom option value using Observer on catalog_product_get_final_price, and my product is configurable ...

how to show different payment options credit cards,debit cart, netbanking etc with ccavenue payment gateway in our website in magento

I want to integrate ccavinue payment gateway in my website build in magento platform. integration is done in the way that after selecting the payment method, the customer is redirected to ccavinue ...

how to write a magento soap v2 cron for getting catalog products efficiently?

i wrote a cron functionality for getting product details from vendor magento soap api. it has a two php functions.. first one for getting total number of products and these product ids .. another one ...

The magento image uploader in custom module

How i can add image Uploader in my custom grid ? Like this: http://joxi.ru/VrwNQlDCLXYVAX Image Uploader:

How can I specify a warehouse when updating inventory using the Magento API?

I'm utilising the Magento 1.x API in some automation suites in order to update the catalog inventory for particular products. I'm struggling because there doesn't seem to be a way to account for the ...

Magento Collection wrong result

i want to get the catageory path of a category. I got the parent and the child name and i'm doing the following: $categorys = Mage::getResourceModel('catalog/category_collection') ->...
Translating... 0%