This tag is used for questions which involve PHP code in any way. So as soon there is an php Exception returned or error report generated, this question qualifies to be tagged with PHP.
1
vote
0answers
23 views
Magento2 - How can I display a product attribute value in Order Summary block?
I am trying to display a product attribute value - SKU in Order Summary block.
I have found the template where it is displayed: vendor/magento/module-checkout/view/frontend/web/template/summary/item/...
0
votes
1answer
22 views
Magento 1.9.2 - How works Magento for take the value of the field VAT Number?
I'm studying the Magento process to pick the value from vat_id field and would like to ask you some questions to which I could not find an answer:
In the function public function ...
1
vote
1answer
20 views
Help me on CORS Access Control Allow Origin
I have one domain having mywebsite.com and there would be multiple subdomains like subdomain.mywebsite.com , subdomain1.mywebsite.com , subdomain2.mywebsite.com and so on.
In htaccess file I have ...
2
votes
1answer
13 views
How to rewrite lib files
I have a couple of php files in magento lib that I need to rewrite in order to change the functionality. I searched about this but all the solutions I found did not work.
Does anyone know how to ...
3
votes
0answers
19 views
Magento 2 customer dashboard, custom block, sub-navigation
I understand how to remove or add a navigation link in customer dashboard on magento2
Need to know how can i create submenus, or add a static text in the sidebar navigations
eg. Following is the ...
0
votes
0answers
12 views
headers already sent (Magento1.9)
I installed a module for Free shipping,
But as soon as installing module, when I try to update my cart on cart page, I got this error
I am not able to trace the error as there is no bug in the ...
0
votes
0answers
21 views
Free shipping not working after Magento version upgrade
I upgraded from version 1.4 to 1.9.3.2
But after upgrading version,
Free shipping method is not working.
Not working in the sense though there are no errors, but its is not getting shown on cart ...
0
votes
0answers
6 views
Is Magento EE 1.14.2.1 compatible with PHP 5.6.30?
Currently running Magento EE 1.14.2.1 and PHP 5.6.27. I would like to upgrade to PHP 5.6.30 which introduces a fix for a security vulnerability I would like to address. I will be testing this on a ...
0
votes
0answers
13 views
Save all products through php/shell script
I'm in the process of cleaning up my existing magento install by moving the DB and using a new install so I can do away with all the unnecessary extensions taking up space.
Everything seems to have ...
0
votes
1answer
24 views
Force Customer to register in Magento 2 checkout
What can I do if I want the customer to register in the check out process?
Is there any simple way to do it?
I want the user register from the billing information where users are required to fill in ...
0
votes
0answers
8 views
FLAT catalog error
I have enabled Flat catalog, And flat product,
After enabling, I cleared cache, and reindexed all tables.
But now I am getting this error on every page
SQLSTATE[HY000]: General error: 1030 Got ...
0
votes
0answers
20 views
Remove Double Quotes php
I have a "NEW" label that displays over the products image in our store.
The Label gets rendered via php and displays as "NEW" on the frontend including the double quotes.
Here is the code that ...
0
votes
0answers
15 views
Show each configurable option in tab magento2
We can see configurable options in a block in product details page. Is there any way to show each configurable option in tab? (Configurable options in tabular format)
Thanks
0
votes
0answers
15 views
“componentType”-Problem with installing a new theme
I'm trying to install a new theme after the migration from 1.7 to 2.1. I uploaded the files and folders. Now when I try to access Content -> Design -> Configuration and chose the site to change it, on ...
0
votes
2answers
45 views
Where is the product list page in magento blank theme
Hi I am building a theme based on magento blank theme . However I could not find any Product Listing page displaying a group of products with same categories.
Where could I find the code or Do I need ...
1
vote
0answers
17 views
PHP Fatal error: Class 'Magento\Update\Status' not found
My cron job is running but i am still getting these errors in error_log file.
PHP Fatal error: Class 'Magento\Update\Status' not found in /update/cron.php on line 15
and when i am installing any ...
0
votes
0answers
4 views
MySQL Lock Using Debug_Backtrace in A Cron Job
I'm debugging a subscription that processes invoices on a cron schedule, and I used this line in the pay() method of app/code/core/Mage/Sales/Model/Order/Payment.php in an attempt to shorten the ...
0
votes
0answers
15 views
Compare in database [closed]
Text of customer name can not be compare with current customer name in database. how to write this condition in magento 2 ?
4
votes
1answer
34 views
Best way to include namespaces in Magento 2
I was wondering how i should load my namespaces.
<?php
namespace MyVendor\MyModule\Cron;
use \MyVendor\MyModule\Model\ResourceModel\Message\Collection;
class Order
{
protected $_logger;
...
0
votes
0answers
9 views
Product attributes on category page
We have a lot of different products with different attributes we want to show below the product in the grid view.
What is the best approach in order to show the specs below when you have a lot of ...
0
votes
1answer
22 views
No email templates getting loaded Magento 1.9.3.2
I am using Magento 1.9.3.2
When I go to System > Transaction Emails > Add new Template
In the Add new Template form No default templates are getting displayed
See the image for reference (Image 1....
0
votes
0answers
16 views
Error on checkout page
When going on checkout step I receive this error:
Fatal error: Class 'Mage_Checkout_Model_Type_Onepage' not found in
app/code/local/PfpjRom/CheckoutRom/Model/Type/Onepage.php
on line 24.
Can ...
0
votes
2answers
43 views
Programmatically add Custom Product Attribute to attribute set
Is there a way to add a custom Attribute (DB-Column, whatever) to product attribute sets?
I tried the following but it I get the error 'Wrong Entity ID':
/** @var Mage_Catalog_Model_Resource_Setup $...
0
votes
0answers
18 views
How to get Attributes of a Group of Default Attribute Set in my custom phtml in Magento_Catalog module
How to get Attributes of a Group of Default Attribute Set in my custom phtml in Magento_Catalog module.
using following code
catalog_product_view.xml:
<referenceContainer name="after.body.start"...
3
votes
1answer
28 views
Magento 2: Date in email template
How can I add a custom variable to a email template in Magento 2 ?
I know that I can generate custom variables with HTML output but I want to output some PHP code.
I want to echo the date of the ...
0
votes
1answer
23 views
Slick JS dose not work on magento 2 when loaded from require JS
There is no error in console and when I tried to put the log "Slick is on "on the on-init function, it displayed correctly.
My theme require-config js :
var config = {
deps: [
"js/mainsite",
...
0
votes
2answers
30 views
Add multiple customer Group IDs in some code - Magento 1.9
How can I add additional customer group IDs in the code below? For example, add 8 and 9.
<?php if (Mage::getSingleton('customer/session')->isLoggedIn() && Mage::getSingleton('customer/...
0
votes
3answers
32 views
Hide php code for certain customer groups
How can I hide the php code below from certain customer group ids 5,6,7? My code below of what I have thus far.
<?php
$isLoggedIn = Mage::getSingleton('customer/session')->isLoggedIn();
if(...
0
votes
0answers
13 views
AbstractMode.php class not found when migrating settings
So I was wondering if someone will be able to assist me. I'm using the data-migration-tool and I'm trying to migrate:setting which gave me the [Migration/exception] Integrity check failed. When I ...
0
votes
1answer
73 views
Magento 2 Add Product Attribute Programmatically
How to create magento2 Product Attribute Programmatically text area.
0
votes
2answers
38 views
How To Create Customer Custom Attribute In Magento 2.0 [duplicate]
How to cerate customer custom attribute in magento2.
0
votes
0answers
12 views
Magento 1.9.1.0 - Invalid callback: Model for core/email_queue::send does not exist
Hope someone can help, a clients site for some reason stopped sending all mail from the store - contact form and all transactional emails.
I have AOE Scheduler which is working, but 2 jobs:
core/...
0
votes
0answers
14 views
Show best seller block with configurable products
I have created a block to display best seller products on my homepage. It is working but only show simple products, not configurable. What i want to show is best seller products based on lifetime ...
0
votes
0answers
22 views
Split Order based on seller
How can I split order based on seller after the checkout is completed. The amount for prepaid order should not get split before the payment is done. The code I have tried is splitting Cash on delivery ...
0
votes
0answers
21 views
disable “Address” fields in Customer Registration Magento 1.9.3.2
I am using Intenso package.
For registrtaion, under persistent package
by default Country, and address options are removed,
But when I sumbit Customer registrtaion form,
magento error comes out as ...
0
votes
2answers
34 views
Unable to access front- and backend after changing to HTTPS [duplicate]
I looked for a way to change from HTTP to HTTPS.
By mistake I switched my insecure and secure URL in config-web-secure/, and added the word magento to them both. As a result I get a 403 error on my ...
-1
votes
0answers
15 views
Error preloadPriceRules Magento
I have a website and transferred to another server, i got this error "Method "preloadPriceRules" is not defined in Mage_CatalogRule_Model_Observer.
I don't know what happen and how to solve this ...
0
votes
1answer
22 views
How to Make total of same customers orders
I have to make the total of the same customer who has many orders.
means i need the sum of all orders of 1 customer
I tried this.
$cus = Mage::getModel('sales/order')->getCollection();
foreach($...
0
votes
1answer
39 views
Need to extend credit-card-type.js for master card detection and add new/latest regex pattern
Need to extend credit-card-type.js for add master card detection new/latest pattern:
I am creating and extending payment method using this link http://inchoo.net/magento-2/implementing-payment-...
0
votes
2answers
23 views
Create_at Admin time is not correctly showing in magento1.9
my function is
it is showing like Feb 22,2017 12:00:00 AM
i need to display current time.
public function ws_getPunchHistory($custid,$intime,$outtime,$inlocation,$outlocation,$punchstatus,$...
0
votes
0answers
22 views
Magento 2, display gift options in checkout page
In magento 2, when you switch on the gift option from the backend. It gets displayed on the Cart page.
I need to display this on cart page and checkout page as well, under cart items.
How can i ...
0
votes
0answers
17 views
How to Submit Form and Get Collection Using Ajax
I submit a form using ajax and it is working but i want to get collection of that data using ajax on that same page.
My Namespace_Module :- Hand_Made
This is my made.phtml file
<form method="...
0
votes
0answers
14 views
Quantity Change Resetting Configurable Options (Color and Size)
Question is about Configurable products for Magento 1.9x CE
On product detail page when adding a configurable product to cart, If I select attributes like Size and Color, and then change the ...
0
votes
1answer
42 views
Magento 1.9 Not able to create quote item
I have the following function inside my model.This checks for the device id(custom column in sales quote) in database and if found and the qoute item has same product id then just updates the qty or ...
0
votes
0answers
17 views
Some class are not available while those class file exit in code
We have a vagrant setup for our magento 2 project. We have some custom modules in our setup. So on one linux machine there is no issue at all as we have same code (using git).
But on mac machine same ...
0
votes
2answers
36 views
Magento/php: adding product to cart with custom details and price
(Magento 1.9) I created a form to be able to customize a product and generate a preview sketch of what the end result would look like with a cost (this was done outside of Magento as an individual ...
0
votes
2answers
30 views
Programatically add product to basket - Error: The product could not be found
Hi guys I have a small code snippet and am trying to add a product to basket in Magenot via PHP.
Whatever I try (I've searched for a lot of snippets) I just get "The product could not be found." ...
0
votes
1answer
31 views
Change image path using .htaccess
I want to change the image path (even stylesheet background image url) with .htaccess,
My Magento site gets all images from production site in local server,
0
votes
0answers
12 views
Magento migrate error on Core
Hello I am using magento 1.9 and I have got a production and a deveplopment. A few days ago. I clonned the production into deveplopment without anyerror.But now I have got the next error:
(I could ...
0
votes
0answers
16 views
Regenerate Product Images (Cache) by Product ID Programatically
I need to create product images cache programmatically, basically question is similar to How to regenerate product thumbs programatically? but my concern is the same as OP commented in answer, that ...