Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
267 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
170 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
287 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
140 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
263 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
2k 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
2k 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
50 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
52 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
455 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
433 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
474 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 ...
3
votes
1answer
138 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
376 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
93 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 ...
1
vote
1answer
228 views

Custom Cart Cross-Sell Item

I am trying to add a cross-sell product to a custom cart page. The regular process for adding cross-sell products to products in the admin panel does now show up in our cart. Is there a file/ line of ...
0
votes
1answer
30 views

I want to rename a directory in magento and set the new refrence in the links [duplicate]

I want to rename this sns_tornoto to some thing else how can i do that?
15
votes
2answers
2k views

What do “#@+” & “#@-” strings mean in the comments?

I see a lot of "#@+" & "#@-" strings in the comments of the some Magento 2 classes. \Magento\Customer\Api\Data\AttributeMetadataInterface interface AttributeMetadataInterface extends \Magento\...
0
votes
2answers
135 views

Home page opens to bottom

Every time my home page loads it will scroll to the bottom of the page. How do I fix it? https://donvonapparel.com/
0
votes
1answer
71 views

currency symbol disable in home or internal page of product

I have this online store based on magento, now, either in home page or product page, you could note that there is no any symbole of currency beside the price, just price without its currency symbol. ...
0
votes
1answer
47 views

Inserted code in footer and product dissappere

I have a problem with some code deleting itself. I have inserted an image in the footer, just below the newsletter subscribe button, and a code showing the stock lvl on the product pages. But after a ...
1
vote
1answer
26 views

Why is magento breking apart this h1?

<h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?> - <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), '...
0
votes
1answer
322 views

How to add more sliders than 1 slider to home page?

We currently have 1 slider on our home page. We want to add another in a new area. Is there a plugin/app that will allow us ? or is just just a case of copying the HTML code ? This is a big topic ...
1
vote
2answers
130 views

Broken website layout

Does anyone know what part of this code is causing the page layout to break? The layout goes wrong just under Revolution slider and around the parallax section. It did work fine but I tried to edit ...
0
votes
1answer
25 views

Community ed: sell some products, leave other products as “enquire now”

I am not very experienced in Magento. A client currently has all their products with an "enquire now" button, instead of "add to cart", which opens a model window with a form requesting their contact ...
4
votes
3answers
496 views

Can anybody explain me about following code?

Some days back I found this code in one of my application file. I am using git in my server so I can found modified file easily. I checked it but I am not getting what this piece of code does exactly. ...
2
votes
1answer
3k views

Get attribute code from attribute value

Suppose color and price and manufacturer are three attribute codes. black and blue are attribute values for color. $0-100 and &101-200 are attribute values for price. hp and dell are attribute ...
1
vote
1answer
245 views

Put icon before sub category

I'd like to put font awsome icon before al my level2 menu Exemple : Menu 1 (on mouse) Submenu 1 (icon) Submenu 2 (icon) Submenu 3 (icon) Submenu 4 But I can't figure out where the file is, I've ...
0
votes
1answer
1k views

Magento : add custom php code into product description

I wrote a php script that resizes jpeg images provided by external URL. The script works well on my server with a test page, but it seems that Magento doesn't allow custom php code into product ...
0
votes
1answer
1k views

How do I remove the “Delete” mass action from an observer

I want to remove the "Delete" mass action from the Products grid. I am trying to do this from my observer. Here is my observer class class NameSpace_Module_Model_Observer { public function ...
0
votes
1answer
832 views

find all files/directories belonging to a specified module

Is there a standard method or has anyone found a way to somehow parse the directories of a magento install with a script of some sort to find all files and directories belonging to a module? I'm ...
1
vote
1answer
2k views

How do I change the text color of the Search the entire Store Here text in search box [closed]

I have figured out several places and ways to change the actual text, but can't seem to figure out how to change the color of the text. Any help would be appreciated. I am pretty new to Magento, I ...
0
votes
1answer
2k views

Intermittent 'Cannot create an empty shipment.' when bulk processing shipments

We have an intermittent 'Cannot create an empty shipment.' when bulk processing shipments. Used the API before. This controller is triggered with bulk selected orders in order overview. It ships all ...
0
votes
1answer
865 views

Login Button Not Working

I'm not sure what I did here, but I've killed my Login button when I reworked the login.phtml file. Here is the original code, which works, followed by the reworked code, which everything works on ...
2
votes
1answer
544 views

Location of the code of the currency switcher

The getSwitchCurrencyUrl() method creates a link like this: http://myshop//directory/currency/switch/currency/USD/uenc/aHR0cDovL... Where can I find the currency switch code which is called when I ...
0
votes
1answer
99 views

CMS Pages display differently

I just took over a site from another programmer and I am trying to figure out what he has done. I have multiple CMS pages to include the home page. The homepage displays correctly, but several of ...
0
votes
2answers
89 views

What does this code do in magento?

What does this code do in magento ? $customer = $this->_getCustomer(); this code in createPostAction in customer/accountController . Why put underscore "_" in most of Method
3
votes
3answers
783 views

In this code what this customer parameter means

In this code what this customer parameter mean $this->helper('customer')->getRegisterPostUrl();
1
vote
1answer
2k views

Slider not showing

Im very new to Magento and programming. My skills are very limited, but i have managed to set up a copy of a website by doing the following. I made a copy of the SQL database and FTP from this site ...
0
votes
1answer
2k views

Changing font color in categories [closed]

I would like to change fonts on menu categories (Home Shop Lookbook) and having a hard time finding the color in html. http://siteground121.com/~mataano2/index.php/ Thank you.
0
votes
1answer
273 views

Wrong code in one step checkout

Does anybody know how to remove the unnecessary code on the checkout screen?(marked in yellow on the picture). The code for this block is: Hope somebody could help me, thanks!
1
vote
1answer
23 views

syntax error with string values

i tried below code : $helper = Mage::helper('catalog/product_view')->getvalofk('Mark'); i get result but when i call it dynamically like $helper = Mage::helper('catalog/product_view')->...
1
vote
2answers
85 views

Does anyone have any example code or recommended plug ins for adding the rel=prev and rel=next tags for paginationN

Does anyone have any example code they have used in magento to implement the rel=prev and rel=next tags for paginated content on a magento site? or if you have a recommended plug in?
2
votes
1answer
950 views

Create custom voucher code after order

is it possible with Magento (1.9) to create a custom, 10-digit, voucher code for a user/order after the order was placed and paid? I also need to output it in the PDF or in the user backend. I need ...
0
votes
1answer
327 views

magento recursive function not working

i created recursive function in magento which give string out at last . i had created custom customer attributes, every time a new customer is registered he is registered using attributes from its ...
3
votes
1answer
2k views

Using Magento as backend ONLY for website

I want to use my own frontend for my website, and only use Magento for the cart and backend. Most of the site is not a commerce site and I don't want Magento taking it all over. I've read about how to ...
0
votes
2answers
937 views

Product Page view.phtml throwing Parsing errors on live site but not on localhost. Help!

I have just moved my site onto a live server and everything is working, all except the view.phtml for the product page. (catalog/product/view.phtml) This is an edited file but even the default theme ...
-2
votes
1answer
1k views

Does anyone know where font size for product descriptions is defined?

I'm trying to make all fonts larger on a few Magento Go sites - in the code I've found all of the other locations to increase font sizes for headers and so forth but can't seem to find the location of ...