All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Template Path hints not showing (correct IP + cleared cache)

I am trying to find a section of code in Magento 1.7, so I turned template path hints on. It came up, I took a screenshot, and turned it off. Then, I realized it didn't have the section I was looking ...
0
votes
1answer
12 views

Report.phtml and store not loading

I'm using Magento 1.7 on WAMP server. I can't access my store. I can't access the admin panel neither. Instead of loading the store, the page shown is the content defined under /error/CUSTOM_THEME/...
1
vote
1answer
71 views

Moving code just before end of body tag, but for specific page/template

I need to put my html/js code just before end of body tag (</body>) on last checkout page (\template\checkout\success.phtml) But after success.phtml I still have footer and wraper code. How to ...
0
votes
1answer
2k views

Align button to the center

I need to center-align a button in a login form and I can't manage to do it. The reason for that is that there is a css property inherited from div .page (text-align: left). I tried to assign the ...
2
votes
1answer
175 views

How to move Shop Now Button's position?

Shop Now button is coming from addtocart.phtml file. I want to display Shop Now button after image. After image, content is coming from view.phtml file. In catalog.xml file , I am trying to move ...
2
votes
1answer
36 views

Template implemetion error

I tried for a hours, but i can't find out. i created static block on header, and i tried to call the header out side of magento. I'm able to connect to magento, but the header is not showed. My code ...
1
vote
2answers
603 views

How to call php if/else statement if value empty [closed]

Hopefully a nice simple question to start the day... In success.phtml, I would like to achieve the following using PHP: $_commissionGroupCode = [If $_voucher is empty, echo "DEFAULT". Else echo "...
0
votes
1answer
67 views

How to edit “Bank Transaction Fee” total title

I am trying to edit the name of "bank transaction fee" to "handling fee" but I cant find the word "bank transaction fee" in the template. Where can I edit this word? This is the code for that but I ...
-1
votes
2answers
228 views

How to Have multiple If statements in PHP

I want to add this: <?php if(Mage::getBlockSingleton('page/html_header')->getIsHomePage()):?> To This Statement: <?php if(Mage::app()->getFrontController()->getRequest()->...
2
votes
1answer
287 views

SUPEE 7405: Add Form Key to sidebar/default.phtml

After installing SUPEE 7405 my custom theme Sidebar Cart stopped deleting products. When delete button is clicked, throws an error: "Cannot remove the product". Looks like I need to add Form Key to ...
2
votes
2answers
831 views

how to call a phtml file in the success page in a proper way?

I have a template in template/checkout/onepage/hello.phtml I want to include this phtml file in the success page, i.e template/checkout/success.phtml So I have created a block in the checkout.xml ...
0
votes
1answer
783 views

How to recognize the phtml file from the layout xml file?

I want to know the proper way of identifying a template file. For e.g. In my basket page (cart.phtml) there is a code like... echo $this->getChildHtml('shipping'); I searched for the template ...
0
votes
0answers
807 views

Creating a custom product page layout template for a single product

My goal is to create a new product page layout to be used for specific products. The products will always be a Grouped item (but not all grouped items) and I want to be able to select the template on ...
0
votes
3answers
2k views

Open header cart when product added to cart

I'd like to know how I can automatically open the header mini cart when a product is added to the shopping cart. At present if you add a product to the cart the default Magento message appears which ...
2
votes
2answers
134 views

Do I really need to upgrade a Magento 1.7.0.2 site to use a template that is meant for 1.8.x - 1.9.x?

I bought a template that I realized after the fact is meant for 1.8 or 1.9 versions, but I am wondering how much of an issue this is. I am a newbie to Magento and I really am hesitating on upgrading ...
0
votes
1answer
779 views

Where is set the variable $this->helper('wishlist')->isAllow()?

I can see in phtml files some tests like: <?php if ($this->helper('wishlist')->isAllow()) : ?> I want but to know where is set this variable (isAllow or not)? I am using Magento ver. 1....
3
votes
1answer
82 views

Show all includes in a rendered page (Template Path Hints) [closed]

What simple method can I use to print then name to the browser of each file being loaded to render a particular page? I'm trying to develop, and it sure would be helpful if there was a method by which ...
1
vote
1answer
1k views

Custom Button In product detail page [closed]

I need to make button near add to cart button without touching core template files. Kindly help me in this case? I am developing a extension. When Install that extension, the button should be created....
2
votes
2answers
10k views

Get Base Url in JS Magento

<reference name="head"> <block type="fabric_tool/tool" name="js" template="fabric/tool/global.phtml"/> <action method="addItem"><type>skin_js</type><file>js/fabric/...
12
votes
6answers
14k views

Load js in footer in Magento

<reference name="footer"> <action method="addItem"> <type>skin_js</type> <file>js/fabric/tool/controller_tool.js</file> </action> </...
2
votes
5answers
6k views

<img src=“{{media url=”someurl“}}”> results in broken url & wont get parsed

I'm having some problems within the product description as my client wants to use the wysiwyg-editor and its image upload features. Sadly all inserted image variables won't get parsed correctly so the ...
1
vote
1answer
256 views

Magento layout update not working on server

I'm facing a strange problem. I created a menu in admin backend. I wanted to display a form and submit it. I created a module for that with controller and layout updates as well. Now everything is ...
3
votes
1answer
70 views

Best practise to extract file changes from base and default to a custom package

I am quiet new to magento and have a few questions about creating a custom template. The underlying magento version is 1.7.0.2. Background: A few developers had the job to create a custom theme for a ...
0
votes
1answer
2k views

Change the size of the catalog image “small_image”

I want to change the size of the catalog image "small_image" in mytemplate/template/catalog/product/list.phtml But it doesn´t work. So i killed the code of list.phtml from my template and the base ...
3
votes
1answer
910 views

Duplicate “Price as configured” block on bundle products

I'd like to have the price as configured block visible both on top & on bottom (as it currently is) for the bundle product page: Looking through app/design/frontend/base/default/template/ I can ...
2
votes
1answer
67 views

Custom page at url change

I'm quite new into magento and for some reason i can't seem to find a good solution! I'm currently running a Magento shop with Ultimo Theme, great theme but there is one catch! It doesn't have a "...
0
votes
1answer
2k views

Want to change store language drop down to store language flags?

I am getting store languages in drop down format, while i want to show flags instead of store language drop down.. The child element i am using to call is : $this->getChildHtml('store_language'); ...
5
votes
2answers
4k views

how to get magento button style?

I have created some form that opens in new popup window. And there i have some text, combo box and buttons and i would like to add to these buttons magento button style, but how can get this style? ...
2
votes
4answers
2k views

How to call Mage_Page_Block_Html_Pager class in list.phtml

I am wanting to include a larger than normal 'next page' type button in the list.phtml template whilst still having the normal pagination from pager.phtml The function I'm wanting to use is found in ...
2
votes
2answers
83 views

path hints for a unique user

I know that in magento you can turn on path hints to find out which file you want to edit in order to edit the template, however, right now I work with a website that has a lot of users on the website ...
1
vote
1answer
582 views

Assign custom CSS class to an HTML element in custom template [closed]

So I am overriding the cart template for bundle products. In short - there's this code in my styles.css: .data-table tbody th, .data-table tbody td { vertical-align: middle; border: 0; ...
2
votes
1answer
900 views

Failed to load template magento

On home page cms, I have added block as below : {{block type='page/html' as='homepagecategories' template='page/html/homepagecategories.phtml'}} And I am trying to load few of the categories as ...
2
votes
1answer
2k views

Reference the shopping cart items template

I am trying to change the way the products are shown in the shopping cart, for bundle products. I have a template that will deal with that. So I have created a layout xml file where I reference the ...
1
vote
1answer
4k views

Edit the contents of “getChildHtml('content')” in 1column.phtml

I'm looking for editing the contents of my template in the page 1column.phtml. This page looks like this : <div class="wrapper"> <?php echo $this->getChildHtml('global_notices') ?>...
1
vote
1answer
2k views

Product Qty Increment / Decrement buttons at checkout page

I am trying to add my own logic behind the [-] and [+] buttons at the checkout page: Using the template path helper module, I have found the template that is providing the layout for the basket item ...
1
vote
1answer
134 views

Bundled product on configurable product page

So, on Product Detail Page of configurable product, I need to show some bundle product with options, button to buy, and so on. Now on this page I have an object of bundled product. The question: is ...
1
vote
1answer
433 views

Custom registration fields and the difference between templates in /persistent/customer and /customer

I am trying to add custom fields to the customer create form but I am having some trouble (in Magento 1.7.2). so, I added the custom attribute and it shows up fine on the adminhtml/customer/edit but ...
1
vote
1answer
107 views

What is the scope of “$this” and what are the drawbacks of using it?

Having basic knowledge of JAVA, I understand that usually "this" keyword is used for local references made within a class. But as far as PHP OOP is concerned, and more specifically as far as Magento ...
3
votes
3answers
19k views

How to get category name and url on product template?

I'm trying to get breadcrumbs working on product page. I need to display current category and url template file: catalog/product/view.phtml I have tried the following: $categories = $_product->...
1
vote
1answer
1k views

Adding template File in customer account page

I am adding one phtml file in customer account dashboard index page. I have used the code as <customer_account_index> <reference name="customer_account_dashboard"> <block ...
0
votes
1answer
1k views

JS not added to head loaded and phtml not loaded

I am creating a very simple custom module to display an inline popup in my store. The problem is that the my additional JS doesn't seem to be added, and the phtml file is not loaded. Both are in ...
1
vote
2answers
5k views

How to edit navigation bar's html?

I am trying to change the html of my navigation bar ( like adding some div tags etc ) but not getting it how to do this so far i did this. I know template for top menu is topmenu.phtml and it is ...
1
vote
1answer
661 views

How to create different page layouts for a theme

Consider I have a custom theme called MyTheme1 in default design package. I want to create different page layouts ( like 1column, 2column, 3column ) for this specific theme. So if theme selected by ...
0
votes
2answers
2k views

How can I know which .css file is used for a certain template?

How can I get to know which styling file is used for a certain template. Because for the billing/shipping checkout templates, there is one css file used. But when I want to modify the template for ...
1
vote
3answers
732 views

How to disable block/template overrides?

i am trying to create an adminhtml module. I need to change the adminhtml design heavily for this module. I've overridden some blocks which changed the html of the admin panel. But the problem is most ...
2
votes
2answers
268 views

Recommendations for study material on Magento designing [closed]

I am very new to Magento but with help of some sites I have installed magento 1.7 and it's working fine. Now I would like to change the design of the homepage and I could really use some tutorials ...
1
vote
1answer
6k views

Getting custom email template name in system configuration

I need to get custom email template in admin system configuration. system.xml This is my email template field code. <email_template> <label>Email Template</label> <...
3
votes
1answer
97 views

How do I add a template for account pages only?

I have a template that needs to be only on account pages and checkout pages. I have got a menu in the local.xml that is shown when a customer is logged in but I want to show it only on certain pages ...
2
votes
3answers
3k views

Default layout of login.phtml

How can i change the default layout of login.phtml in magento. Suppose , now by default the layout for login.phtml is 1column.phtml and if I want this to change to 3column.phtml, what should I do?
1
vote
1answer
1k views

Problem in submitting Magento Login form [closed]

Here is my simple magento login form but I am unable to submit my form. What may be the possible reasons? <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-...