Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [code]

The tag has no usage guidance.

1
vote
0answers
22 views

Checkout Page not loading and getting blank page

first, I apologize for not being a programmer and not being able to publicly post the URL in question. The checkout process gets empty in the second process page. I assume Initialization code laods ...
1
vote
1answer
42 views

Magento2 I want to change “Please specify the zip code.” error message on one step checkout Canada post method

Magento2 I want to change "Please specify the zip code." error message on one step checkout Canada post method Thank you,
0
votes
3answers
42 views

Magento 1.9 header ISSUE

Have some strange header.phtml error. Problem is non my index page everything is ok, and on any other page have some weird problem my header and menu change places. code for my current header.phtml ...
0
votes
1answer
16 views

I have a problem adding a new shipping method

I'm trying to add a new shipping method, i create the module in the etc directory like Mrsolutions_Domesa.xml, inside is the next code: <?xml version="1.0"?> <config> <modules> &...
1
vote
1answer
24 views

Problem adding Google Analytics Code and Facebook pixel in Magento Community 1.9.3 [closed]

Our site was hacked a while back and ever since we 'brought it back' we are unable to add Google Analytics code or a new Facebook pixel in - System/Configuration/General/Design/HTML Head/Miscellaneous ...
2
votes
0answers
32 views

Transfer to other server

I want to transfer to other server my store (new server have plesk panel ). I wrote command in cli bin/magento setup:backup --code --media --db from old server with this method can i take those ...
0
votes
1answer
50 views

Magento 2 - Custom theme - Change the background to an image

I know how to change the colour of my background in my custom theme however I was wondering if it were possible to change the background on all pages to an image? I imagine it is similar to changing ...
0
votes
1answer
46 views

Custom theme - Cannot find code to change text [closed]

I've downloaded a custom theme for my Magento 2 site and would like to know where some files are generally located such as the "Save 60% off sale" text or the "find your next Magento 2 theme". I've ...
0
votes
0answers
84 views

How to use code migration toolkit in magento2?

Below is the Github link for Code migration toolkit magento2. https://github.com/magento/code-migration I need to migrate my magento1 modules to magento2 standards. Does this supports it? If it ...
0
votes
0answers
232 views

Create QR codes per single product purchased

Hello to the community! I have the necessity to create QR codes per every single product that's purchased. I know that there's a way to link a SKU to a QR code, but what I need to do is a little more ...
0
votes
1answer
161 views

Change Magento2 attribute code Programmatically

In Magento 2, there is a product attribute code with space.(I know, Magento will not allow to create product_attribute_code with space or with Capital letters). Now, I need to change/update that ...
0
votes
0answers
161 views

Add currency code to all prices in Magento 2

The currency code is the 3 letters which describe the currency. For example, the respective currency codes for US Dollars and Canadian Dollars are USD and CAD. I am able to add the currency code to ...
0
votes
0answers
15 views

Magento 2.2 : Need the order “Processor Response Code”

We are exporting our orders to csv. Therefore we need the Processor Response Code and processor Response Text to verify, if the payment was done successfully (Code 1000, Text "Approved"). In the ...
1
vote
1answer
34 views

Alligning The Subtotal Title To The Right - New Order E-mail In Magento 1.9

I am trying to align the subtotal title to the right after I was told to remove the SKU from the new order e-mail, but everything I do in the coding in (app/design/frontend/base/default/template/email/...
0
votes
1answer
48 views

How to apply coupon code if specific products are available on the cart?

The cart contains two products ex: product1+product2 then only my discount can be applied, otherwise should not allow even individual also. Based on SKU
0
votes
1answer
51 views

How many Facebook Pixel Code can you have in Magento?

How many facebook pixel codes can you have in Magento. I so that our marketing seo's put in Magento admin console in section Miscellaneous Scripts that there is more then one Pixel code e.g. <!-- ...
0
votes
1answer
29 views

How to remove discountcode from checkout and transactional emails?

I'm working with magento 1.9.3.4 and I wold like to remove the Discount code (e.g. COUPONCODE1) from showing on the checkout and transnational emails. Is this possible? Is there a controller/model/...
0
votes
1answer
532 views

Php / Magento 'requires' Fatal Error … need help interpreting problem

I am trying to install a new theme (not getting a reply from support about this and trying to fix it myself). After SFTP'ing the theme folders to my root folder, I am getting the following error when ...
0
votes
2answers
286 views

update products price with code

i want to increase my products price in magento foreach ($prodCollection as $product) { echo $product->getName() .'<br>'; echo "old: " . $product->getPrice() .'<br>'; $...
0
votes
1answer
25 views

How Do I Get Rid Of Code Showing Up After the Paypal Express Button on the Product Page?

How Do I Get Rid Of Code Showing Up After the Paypal Express Button on the Product Page? I've attached an image of the problem. I'm using Magento vers. 1.9.
0
votes
1answer
39 views

How can I create a discount code which allows the customer to get a specific item free if they spend over £300? [duplicate]

Either by having this item in their basket anyway and subtracting the value from the order or it would be great if the code added the item on to the order for free, without them having to search for ...
0
votes
0answers
22 views

Is there any way to modify the magento php code (backend)?

In magento 2: Where can I modify the login code? How can I see the user that is logged in? Where are the php files that control the backend?
0
votes
2answers
34 views

How to access the files on a Magento site

A client of mine has a Magento site set up, I've been asked to help them out with the SEO. I've never used Magento before, didn't even know that it exists. I need to find the actual files so I can ...
1
vote
0answers
52 views

Area Code not set when Model is used while using Upgrade Data Script

I have following code in UpgradeData.php protected $test; public function __construct( \Vendor\ModuleName\Model\Test $test ) { $this->test = $test; } public function ...
0
votes
1answer
398 views

Magento 2 | How can we use jQuery without “require(['jquery'],function($){” this code

We have face problem we implement some slider and also we have wrighten many script in phtml. If we add the jquery library then magento is giving the error in core files and all script are stopped ...
0
votes
1answer
258 views

Magento1.9.3 Cash On Deivery Charges

I want to add some Cash on delivery charges in my magento 1.9.3.2 website. Which can be automatically added in bill in onepage checkout page and also in invoice. I do not want to add any extension. ...
0
votes
2answers
202 views

Coupon code for free product with purchase over $99

I want to create a coupon code to have a specific product added to the cart at no cost when the order total is over $99 and the code has been entered. I am not having any luck figuring out how to ...
1
vote
0answers
28 views

Magento 2 : Is there a file system map for Magento 2?

Ultimately I want to add code snippets to some or all pages on my website, specifically, the code is the Facebook pixel code is the google tag manager code. I've found a number of similar questions ...
0
votes
1answer
375 views

Countdown Timer

I can't get the following code to work on the frontend. It displays correctly but will not countdown as I would like. I have tried changing the date but nothing happens. Could someone point me in the ...
1
vote
1answer
145 views

CE v1.9.3.4 (v2) did NOT fix the “Enable Form Key Validation On Checkout” Was released July 12,2017

@Ryan-hoerr YESTERDAY sent out message that there was v2 Patch or upgrade to v1.9.3.4 from v1.9.3.3 because of the form_key checkout problem which the Magento CE 1.9.3.4 Release Notes was supposed to ...
1
vote
1answer
33 views

Need help on writing magento code for fetching data for this custom mysql query

Customizing IWD_SalesRepresentative extension in their reports I want more data than they give by default Their default code: $colunms = $this->_getSelectedColumns(); $this->getSelect()...
0
votes
1answer
155 views

Why it's showing Undefined index when I try to convert a module from M1 to M2?

I'm trying to convert one module to M2, and after running the code_conversion_tool, I've ended up with .converted files all around. I've renamed them to replace the actual files. While doing setup:...
0
votes
1answer
445 views

Can't Edit products

I'm having problems with my Magento website. I first noticed we had a problem when I went to: "System/Configuration/General/Design" I got the following error message: "Fatal error: Class '...
0
votes
2answers
197 views

how to reduce the magento website page load time? [duplicate]

I presume the website pages are slow down because of this filter to get only configurable products.. I used ->addAttributeToFilter('type_id', array('eq' => 'configurable')); this code works ...
1
vote
1answer
160 views

How to decrease brand product list page load time in magento?

I am collecting brand specific products based on the brandId in brandproductlist.php as follows., $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect('*')...
0
votes
2answers
138 views

how to check which collection is taking how much time to load in a function in magento 1.9

I am writing a backend function for loading a profile on android app, want to figure out why its slow , and taking more time to load so want to debug the load time of each query in function how can I ?...
3
votes
1answer
126 views

Magento 2 core functionalities and structure - difference between vendor/magento/framework and vendor/magento/module-* namespace code?

What is the difference and when to use vendor/magento/framework code, and when to use the vendor/magento/module-* code?
11
votes
1answer
214 views

Does removing commented code speed up a Magento site?

In most (if not all) Magento files, there is commented disclaimers: /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with ...
0
votes
1answer
1k views

Notice: Undefined index: files in app/code/core/Mage/Core/Model/Translate.php on line 1

Notice: Undefined index: files in /home//public_html/.com/app/code/core/Mage/Core/Model/Translate.php on line 139 #0 /home//public_html/.com/app/code/core/Mage/Core/Model/Translate.php(139): ...
5
votes
2answers
1k views

What is meant for Vanila magento 1 codebase?

I am trying to migrate from magento 1 to magento 2 and I have seen on magento website there is a tool for that which is code migration toolkit here's link for the same https://github.com/magento/code-...
2
votes
1answer
49 views

How to know all available methods and how to use them [closed]

I'm still learning how to use Magento and I see that it has lots of useful methods. However, my only way of learning that a method exists, and how to use it, remains looking at code that's already ...
0
votes
2answers
50 views

html / code to add price in a specific block?

I've tried multiple snippets of code to add an item price to a specific block without success. On the example item page : https://fixlcdscreens.com/default/catalog/product/view/id/10234/s/ACER-...
1
vote
0answers
330 views

Magento Coupon Codes Not showing up in Report

I have set up various coupon codes in Magento, all work ok. However not all of them show up in the 'Coupon Usage Reports' page. They have all been made exactly the same way. Why is this?
2
votes
1answer
360 views

How to add video block in category page

I want edit layout in category list page. need to create video content in this page for each category example help me please. thx XD
2
votes
1answer
2k views

Show State/Province code in address

When a customer make an order, in the shipping and billing address appears the extended Province name (for example "Lecce"). Is it possible to show the Region code "LE" instead of the Region name "...
0
votes
1answer
54 views

Customization through Coding in Magento 2 [duplicate]

I am new to magento & I don't know anything about magento 1.x. I am working on magento 2. Can anyone suggest me some resources where can I find the links for Coding in magento? I have already ...
0
votes
1answer
216 views

Where can I find added category related pages in folder in Magento 2?

I am new to magento 2.I have added 1 category "Clothes" from admin panel. On front, it shows this url :http://localhost/magento-demo/clothes.html where Can I find this clothes.html page ? there is ...
4
votes
1answer
135 views

Where does Magento implement methods?

I am new to Magento. I have following code in a template file called brand.html $brandImageUrl = $this->getBrandImageUrl($brand); My understanding (roughly) is that $this refers to an instance of ...
0
votes
2answers
219 views

Magento - Remove tax from all products quote. (Update)

I saw there are some post like this but I tried that answer and dit not work. I am learning how to use magento, and What I wan to try is remove all the tax from the cliente when them have add 3 ...
0
votes
1answer
68 views

Newsletter Signup Block Not Displaying Correctly

Can any one help correct what I think is a coding issue. I have taken the code for the Magento inbuilt newletter subscription block and used it to create a widget so I can place a further newsletter ...