Questions tagged [php-5.4]
Marks questions related to Magento on php 5.4
279 questions
0
votes
1
answer
73
views
display configurable product name underneath the price?
is there a way to display configurable product name underneath the price or anywhere?
3
votes
2
answers
708
views
Magento 1 end of life - where can I download Magento 1.5.1 patch to run PHP 5.4?
Magento has just removed all support to 1.* as it reached end of life. I need to create an tests environment like my client that uses 1.5.1. I understand that it is way too old but it is his choice to ...
0
votes
0
answers
40
views
str_replace strange behavior
In my codebase I have a line of code, which is triggered through a cron
const SALE_ORDER_NR = '{{order}}';
$text = str_replace(self::SALE_ORDER_NR, $order, $text);
I am using Magento 1.9;
Here, $...
0
votes
1
answer
259
views
I need custom php file and upload to magento
example myconnect.php
<?php
$servername = "localhost";
$username = "";
$password = "";
try {
$conn = new PDO("mysql:host=$servername;dbname=meigee", $username, $password);
//set the PDO ...
1
vote
1
answer
58
views
Where is the Magento 1.x PHP 5.4 patch?
I'm trying to download the PHP 5.4 patch for Magento 1.x CE but I cannot find it, I think this guide is out of date:
https://devdocs.magento.com/guides/m1x/other/php5.4_patch.html
0
votes
1
answer
53
views
Magento backend login error
I accidentally deleted admin_user table and when I created it again, I'm unable to access the backend. It keeps throwing the error page with a new report number every time. On checking var/reports, it ...
1
vote
1
answer
667
views
Call to a member function getMethod() on a non-object in /var/www/html/app/code/local/Openpay/Banks/Model/Observer.php on line 16
I have implemented a third party api and I am getting bellow error:
Fatal error: Call to a member function getMethod() on a non-object in
/var/www/html/app/code/local/Openpay/Banks/Model/Observer....
1
vote
1
answer
740
views
retrieving collection in magento-2?
I want use below query in my custom module
SELECT category_name
FROM faq_category
WHERE id = ANY (SELECT category_name FROM faq_category_description WHERE category_name = 1);
But i don't know syntax ...
1
vote
0
answers
93
views
how to fetch data in block Magento2? [closed]
In Table1:
Id Category-Name Status
1 Account Enable
2 Shipping Disable
3 Payment Enable
In Table2:
Id Category-Name Question Answer Status Position
1 1 ...
1
vote
0
answers
194
views
Change upsell.phtml in magento
I have site - magento 1.9.2 . Upsells products are vizualizate аs slideshow, i want to sort them in four columns and show them in a few lines no matter how many. I don't want to have a slide show. I ...
1
vote
1
answer
3k
views
Fetch array with PHP MySQL query
So I've had no issues with writing simple queries and pulling the data through that I need (mostly using fetchOne(), but this is my first time trying it with a little bit more comprehensive query.
I'...
0
votes
0
answers
361
views
How to add SMS sending function inside a custom module
I have to add SMS sending function at the checkout success page.
This is my code:
namespace send\sms\Block;
class sendsms extends \Magento\Framework\View\Element\Template
{
/**
* @var \...
0
votes
1
answer
128
views
How To Index Management in Magento 2 on Local Server?
I need to reindex but can't get it to work. I'm in the root directory and when running:
magento indexer:reindex
It states that magento isn't a valid command, so after further research I try and run ...
2
votes
2
answers
2k
views
Magento 1.9.3.4 Mails not sending
I`ve my store on 1.9.3.4 and now my customers are not receiving order confirmation email, Contact us mail, new registration mail, forget password mail.
I tried sending through the admin panel but ...
0
votes
2
answers
267
views
Not able to override phtml file
I am trying to override phtml file inside theme module. Below is my code
Module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:...