Questions tagged [php]

This tag is used for questions that involve PHP code in any way. So as soon there is a PHP Exception returned or error report generated, this question qualifies to be tagged with PHP.

Filter by
Sorted by
Tagged with
3 votes
1 answer
734 views

How to assign product category during products import

I've to import some products from a txt file where, for every row, there's product sku, product name, product description, short description, price and category id. The products are imported but price ...
Federica's user avatar
  • 131
3 votes
1 answer
1k views

How to Get links from Magento customer menu?

I'm trying to get url's from Customer Menu (My Account) from Dashboard, in a controller that extends Mage_Customer_AccountController. I've tried this: class Namespace_Module_AccountController ...
ana.coman93's user avatar
3 votes
4 answers
6k views

Cannot correct php.ini error in Magento 2.0.2

Hello I'm using the latest magento source files from magento website. I've installed the files via directions on the support documentation of magento website and at the Readiness Check point i get the ...
simpleWebGuy's user avatar
3 votes
2 answers
161 views

Where Does Magento use Composer's `type` Attribute -- Is this Required?

In my experiments with Magento 2 composer packages, I've been able to get a package up and running without using composer's type attribute. However, this class file #File: vendor/magento/framework/...
Alana Storm's user avatar
  • 44.4k
3 votes
2 answers
9k views

How to make Payment Gateway in Magento 2?

Please provide any official documents or any demo/tutorials mode for this (How to make Payment Gateway in Magento 2). I was referring to http://inchoo.net/magento-2/implementing-payment-gateway-...
Ayush Mittal's user avatar
3 votes
1 answer
675 views

iterate over array value not display in phtml

I´m trying to display Ebay GetSingleItem response (http://developer.ebay.com/devzone/shopping/docs/callref/GetSingleItem.html) and I´m having problems displaying array ["ItemSpecifics"]. The call is ...
s_h's user avatar
  • 989
3 votes
2 answers
3k views

Getting all rows from database

i have an array string with id numbers example: $taxIds=array(9,13) how to fetch all record with this query?? $connection = Mage::getSingleton('core/resource')->getConnection('core_read'); $sql ...
Fatemeh Namkhah's user avatar
3 votes
2 answers
5k views

Get average review star rating score in text

I want to echo the average review star rating of a product in text. Currently it is displayed in width % to display the review stars. But I want to display it like: Reviewscore is 4.7 / 5 How can ...
JGeer's user avatar
  • 1,418
3 votes
1 answer
3k views

company name in place of first/last name for Business customer group?

How can i make the customer group Business request a Company Name instead of First Name or Last Name. this way when signing up a company i can put in the company info since there wont be any first/...
Nxlevel's user avatar
  • 407
3 votes
2 answers
567 views

How to include additional product attributes into custom PHP array

I am assembling a product array drop-down for an extension I am building. I was curious if it is possible to pull a few more attributes into the following code so that I can reference them elsewhere ...
sparecycle's user avatar
  • 1,469
3 votes
1 answer
53 views

Issue when creating two similar extensions

I am using Magento 1.9.0.1. I've created two extensions. The first one i created is called PercentPayment and the second PercentShipping. The issue appeared when i created the second one. Strangely ...
Venelin Vasilev's user avatar
3 votes
1 answer
311 views

How to create Account Child... Company, Staff Signup

How do i create and attach a new set of field to a registered account? I need a way to create company accounts and add the company's staff under said account. this way the company can see what each ...
Nxlevel's user avatar
  • 407
3 votes
1 answer
2k views

Magento + APCu caching issue. Site is slow and there is more cache misses than hits

I have a Magento 1.7.0.2 installation running on LEMP Stack; Nginx + PHP-FPM (PHP v5.5.6 w/ APCu v4.0.2) + Percona. I've configured my magento to use APCu caching like this: app/etc/local.xml <...
Latheesan's user avatar
  • 1,038
3 votes
2 answers
1k views

Parse Log - extract info from huge exception.log file

How can I have a list of exceptions from a exception.log file ? Sometime this files are very big and the only way to analyze them is using Vim or similar cli tools. I would like php approach (so ...
Fra's user avatar
  • 6,965
3 votes
4 answers
17k views

Call a PHP file with AJAX in Magento

Seems like I can't make Ajax to call the PHP file and I can't figure out what or where the problem is. I`m trying to make a module that reads from database and it should display a form with options to ...
MMScreenX's user avatar
  • 131
3 votes
3 answers
4k views

show images in my custom admin module

I have a custom module, through which I can upload multiple images from admin. Along with images, I have text, drop-down form fields in my module. Now I can upload all images to media folder of ...
Rajeev K Tomy's user avatar
3 votes
2 answers
4k views

add to cart button is not working

I have a custom module which does same function of product view page. I am using this module in order to show my bundle products. i have created a fully functional module for this. I have loaded the ...
Rajeev K Tomy's user avatar
3 votes
1 answer
2k views

Magento Model Filter by Category Returns No Products

I'm using Magento EE Lite (1.11.02) and I'm trying to load a collection of products by one single category. The following code functions as you would expect: public function getProductList() { $...
Jack Benny's user avatar
3 votes
1 answer
662 views

Value not getting saved using extension attribute, For a newly added column in 'inventory_source' table

Value not getting saved for a newly added column in inventory_source table inventory_source_form.xml <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
manu's user avatar
  • 131
3 votes
2 answers
957 views

Magento2 Shipping City For Shipping Amount Caluculations

I need to apply table rate shipping based on following conditions City to City Metro to City Metro to Metro City to Other City to Special Locations I written my own module but ...
Dinesh's user avatar
  • 552
3 votes
1 answer
354 views

Convert(re-write) array_filter code into foreach loop

I have an array $arrItems['items'] in which 5 more arrays (associate array) and each array contain 5 element (with the keys: f_name, l_name, contact, address, seller_id). I want to get all those ...
HaFiz Umer's user avatar
  • 1,661
3 votes
2 answers
210 views

Magento 2 : Search For Admin Menu Items

In magento2 admin dashboard , We have an option for Search. When we search for "rma" for example it is showing "rma in products" , "rma in pages" etc but I need to know if rma found in any of the ...
Dinesh's user avatar
  • 552
3 votes
2 answers
1k views

Add categories automatically - Unique constraint violation found

I added two categories with sub-categories from my ERP with an integration. When I want to edit a category, I have an error "Unique constraint violation found". Do you know how I can resolve this ...
VP1354's user avatar
  • 31
3 votes
1 answer
240 views

Magento | How to add Save Action for Customer Group new field

I added a new field for Customer Group. It called customer group email. I added the field and it displays in the backend but it doesn't save the data and I don't know How can I add Save action. I ...
Mohamed Badawy's user avatar
3 votes
2 answers
723 views

Blank Page When Installing Magento Open Source 2.2.2

I am getting the following error when trying to run the initial php setup script, please advise $ php bin/magento setup:install Fatal error: Declaration of Zend\Mvc\Controller\PluginManager::get($...
Rick Barrette's user avatar
3 votes
6 answers
9k views

php bin/magento setup:upgrade

when I install a new theme I do this commands via Putty: php bin/magento setup:upgrade how can I fix this problem? I'm working on Magento 2.1.0 PHP Warning: Uncaught Exception: Warning: ...
Amd2030's user avatar
  • 311
3 votes
1 answer
967 views

Memory leak in magento when saving products

I have a problem when trying to mass update group prices in products. It seems when saving the products memory doesn't get released properly and keeps accumulating until it gets exhausted. I've set ...
gabtzi's user avatar
  • 656
3 votes
2 answers
2k views

Magento 2 : How to upload image from front side

Error "$_FILES array is empty";i:1;s:10336:"#0 /opt/lampp/htdocs/magento217/vendor/magento/framework/File/Uploader.php(161): Magento\Framework\File\Uploader->_setUploadFileId('1.png') Block File ...
Kushal Dani's user avatar
  • 2,114
3 votes
3 answers
111 views

Megento 1.9.3.1 please tell me how to fix this [closed]

Friends this is very major issue,in magento 1.9.3.1 this below issue is frustrating and no solutions I found since last one week. kindly help me to revert back the cause and solution so that i may ...
Pankaj's user avatar
  • 31
3 votes
2 answers
5k views

magento 2 error factory class does not exist

This is my block class for form Smartshore/Subscription/Block/SubscriptionForm namespace Smartshore\Subscription\Block; class SubscriptionForm extends \Magento\Framework\View\Element\Template { ...
anujeet's user avatar
  • 195
3 votes
2 answers
2k views

Object DOMDocument should be created

I recently converted a Magento 1.9 module to be compatible with Magento 2. all was going well until I got this error: Object DOMDocument should be created I'm not experienced enough in Magento and ...
Callum's user avatar
  • 249
3 votes
2 answers
394 views

Filter Magento collection with nested "OR" "AND" filter

I am trying to determine how to filter a Magento collection from a flat table that would produce a WHERE clause with an AND that is followed by expression with a nested OR, which has nested ANDs, such ...
robenecker's user avatar
3 votes
1 answer
3k views

HTTP ERROR 500 when using require(_once) app/Mage.php

(Edit: The first line went missing, just the greetings) Hello guys! I'm both new to Stack Exchange and relatively new to Magento. What I want to do: Use a self-written JQuery Script to get the ID of ...
jekkst's user avatar
  • 53
3 votes
1 answer
712 views

Adding UI for Third Party Category Attributes in Magento 2.1?

Is there a standard/best practices way to add UI for third party category attributes in Magento 2.1? In previous versions of Magento 1 and Magento 2, the user interface at Products -> Categories ...
Alana Storm's user avatar
  • 44.4k
3 votes
1 answer
233 views

Why Magento 2 developers create ASCII art in their code? [duplicate]

I wonder why nobody refactored this abomination Magento\Framework\ObjectManager\Factory\AbstractFactory /** * Create object * * @param string $type * @param array $args * * @return object * @...
MTP's user avatar
  • 121
3 votes
1 answer
635 views

How to get two different search forms in Magento one fulltext and one title search?

I want to do two different search types in two different search forms. I got the head search in fulltext and i created a quicksearch.phtml to edit this as a title only search. Is there a way to set ...
MCSell's user avatar
  • 83
3 votes
1 answer
2k views

Magento 2 - Correct way of Module Installation

Trying to install sample module in Magento 2 from this. Below is the module structure app/code/NameSpace/Module/ module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
Slimshadddyyy's user avatar
3 votes
1 answer
507 views

SOAP V1 : Empty Response Not recognised

I have this weird situation where SOAP retuns no value but I am not sure how to check whether it has returned any value or not. For example, I am calling SOAP to get product image detail like this: $...
Dhananjay Hegde's user avatar
3 votes
1 answer
3k views

Include multiple Mage.php into an external script

Is it possible to include multiple Magento (Mage.php) instances into the same external script and run them simultaneously? My idea is to develop an external migration tool between two Magento systems,...
QB new media's user avatar
3 votes
1 answer
841 views

MySQL get data from Custom table via _prepareCollection

I'm using Magento 1.9.0.1 and i'm working on custom extension. I want to get data from custom table and display it in a grid table in page created by me in the admin panel. Here is the Grid.php file ...
Venelin Vasilev's user avatar
3 votes
1 answer
361 views

Assign Simple Products to Configurable

I'm trying to import a lot of Products from my old Shop and therefor I need your help. My items have a "parent" item which was necessary for my old Shop. Example: -T Shirt Batman --T Shirt Batman ...
Dominic Wehrmann's user avatar
3 votes
1 answer
414 views

ReadyShipper on OS X, Connecting to HTTPS SOAP Endpoint

This is a long shot, but has anyone here gotten Ready Shipper 7.3 working with a Magento SOAP HTTPS (that's S, as in secure) endpoint? If so, how? That is, I've downloaded the ReadyShipper 7.3 ...
Alana Storm's user avatar
  • 44.4k
3 votes
1 answer
943 views

Magento: Fatal error: Class 'Mage_Categorygroup_Helper_Data' not found in /app/Mage.php on line 547

im new in magento. i got this error in Magento backend right after reindexing and clearing the cache: Fatal error: Class 'Mage_Categorygroup_Helper_Data' not found in /app/Mage.php on line 547 my ...
Moh3n's user avatar
  • 859
3 votes
1 answer
184 views

Implementing a dropdown on magento navigation

I'm trying to figure out how I can implement my magento navigation so that certain links when hovered over create a dropdown with more links in. At the moment to add a new link I create it in the ...
dannyw24's user avatar
  • 173
3 votes
2 answers
268 views

email is coming with tags without interpretation

Guys I have a module for sending e-mail, that when sending the e-mail it is arriving with the html tags, example: br span, that is, it is not being interpreted. I think the code is read by php as a ...
lucas's user avatar
  • 309
3 votes
1 answer
500 views

Magento 2 Show/Hide Minicart based on customer group

I want to show a minicart only for a specific customer group but I am unable to find the exact solution. If anyone knows please let me know. Thanks
Yousaf's user avatar
  • 384
3 votes
1 answer
190 views

install Magento 2 API Client

I want to install this dial but I do not understand or obtain GIT_USER_ID and GIT_REPO_ID.git https://github.com/netz98/magento2-swagger-api-client-demo { "repositories": [ { "type": "...
Akim Prestatic's user avatar
3 votes
1 answer
703 views

Magento 2 - Order best sellers products by period

For now, I'm getting my best sales like this. I would like to be able to influence the order of my products in the collection. In my Block : use Magento\Sales\Model\ResourceModel\Report\Bestsellers\...
arno's user avatar
  • 348
3 votes
2 answers
1k views

How do i create a shipment class object in magento 2?

i am trying to get tracking from csv and save to magento 2 order programmatically. i grabbed the create shipment & add tracking code from here https://www.scommerce-mage.com/blog/magento-2-how-to-...
Mage Explorer's user avatar
3 votes
2 answers
73 views

How can Select arrays from associate array in php on the basis on element [closed]

I have an array "$arrItems['items']" in which 5 more arrays(associate array) and each array contain 5 element(f_name,l_name,contact,address,seller_id). Actually I want to get all those arrays(from "$...
HaFiz Umer's user avatar
  • 1,661

1
6 7
8
9 10
77