Questions tagged [phtml]

Denotes questions related to template `.phtml` files

Filter by
Sorted by
Tagged with
1
vote
2answers
617 views

how to add the block from other xml file

I have a custom xml file which has the block which i am targeting and it is productalert.xml as fallow: <catalog_product_view> <reference name="content"> <reference name="...
0
votes
1answer
63 views

Products don't appear in the products view page as they should

The problem i am dealing with is the following, i have added 5 products in my site which are displayed in a slider in the homepage, but when i click on a certain product i can see the page menu, both ...
1
vote
1answer
1k views

Change columnCount depending on browser width (responsive)

I'm currently using the below code (in list.phtml) to show 4 columns on my homepage for my products. <?php /** * Magento */ ?> <?php /** * Product list template * * @see ...
0
votes
1answer
421 views

Add Text After Price in Spesific Theme Phtml

I can only add text before price. I use MeigeeTeam's Bizarre theme. Here is the code including my edit in price.phtml ?php else: ?> <span class="fiyat"><?php echo $this->__("...
1
vote
1answer
219 views

Is it possible to call phtml of backend in frontend?

I want to call two phtml in frondend which is admin side phtml is it possible to call phtml of backend in customer account? if yes than i want to call this two phtml: adminhtml\default\default\...
2
votes
1answer
3k views

Edit Magento “Product Comparison page” template

I want to customize the product comparison page but i can't seem to find the file that manages this. I'm pretty new to Magento.
2
votes
1answer
879 views

How to override wishlist sidebar file in my own module?

I want to override sidebar.phtml file of wishlist module in my own module. Please guide me. Thanks,
1
vote
1answer
2k views

Add custom phtml in product view page

I want to add my phtml between description.phtml and attributes.phtml using custom module my xml file <?xml version="1.0"?> <layout> <catalog_product_view translate="label"> ...
0
votes
3answers
692 views

How to ovewrite addto.phtml

I want to overwrite file design/frontend/base/default/catalog/product/view/addto.phtml in my custom module at path design/frontend/default/default/mymodule/catalog/product/view/addto.phtml Here I am ...
1
vote
1answer
1k views

How to add an icon before the name of the payment method

I want to add an icon before the name of the payment method the same as PayPal (https://www.paypal.com/en_US/i/logo/PayPal_mark_37x23.gif), see the html below <fieldset id="checkout-payment-method-...
0
votes
1answer
73 views

Magento fronted “shop not available” when trying to render pagination in list.phtml

I wanted to display all products from my store on homepage, to do that I used this piece of code in my CMS Home Page item. {{block type="catalog/product_list" name="home.catalog.product.list" alias="...
4
votes
1answer
7k views

How to set default option on configurable product dropdown attribute? [duplicate]

ow to set first value attribute as selected for a configurable product? Front-end: Size: Choose an Option... (selected) Small Medium I would like to change it to... Size: Small (selected) ...
1
vote
0answers
50 views

autocomplete search form only for testname [closed]

I have created the search forms for testname location and all locations in magento and i cannot create a autocomplete search form for the testname feild can u please suggest.
2
votes
1answer
148 views

Options of simple product on home page

I want to show one product on home page. The product should be shows same as on product view, not like list view. I can get name and sku of product in above code but I don't know how to show custom ...
0
votes
1answer
1k views

overriding Magento toolbar.phtml file

I am editing the file \app\design\frontend\base\default\template\catalog\product\list\toolbar.phtml through my own module. I want to specify the available categories on the current list. Example: I ...
0
votes
1answer
19 views

i have my code but i cant show this in my page [closed]

$collection = Mage::getModel('web/web')->getCollection()->setOrder('web_id', 'ASC'); //$a = array(); foreach ($collection as $value) { $date = date("Y-m-d",strtotime($value['created_time']));...
2
votes
1answer
875 views

Load external phtml file on product page

I want to load a custom .phtml file on product page. I just did this: Inside view.phtml I added this line: <?php echo $this->getChildHtml('short_specificaties'); ?> In local.xml I added ...
1
vote
1answer
1k views

Show block on category page

I have this layout for my products/category view: <div class="wrapper"> <?php echo $this->getChildHtml('global_notices') ?> <div class="page "> <?php echo $...
1
vote
2answers
6k views

Add a new block to local.xml

I'm kinda new to front-end magento, and this is probably asked alot, but I can't figure it out. I'm trying to add a slider to my homepage, just below the header and just before the content starts. ...
0
votes
2answers
65 views

Magento plugin help

First of all, i'm new to magento, i've read a few books and tried google before posting my problem. Our company has a widget which we want to make available on the magento store, I have so far ...
1
vote
2answers
603 views

Fatal error getImageUrl() with Varnish

Just activated Varnish cache on my magento site and started receiving this error (it worked just fine when Varsnish wasn't active): Fatal error: Call to a member function getImageUrl() on a non-...
0
votes
1answer
1k views

can't override checkout/total/default.phtml

If I copy the file default.phtml from design/frontend/base/default/template/checkout/total/ to my theme folder (design/frontend/my_package/my_theme/template/checkout/total/default.phtml) everything is ...
2
votes
0answers
536 views

Performing Magento CRUD operations when user clicks radio button [closed]

Hello Everyone I am new to Magento and have been having trouble performing basic CRUD operations , specifically Update.. The Scenario There are two radio buttons (ON, OFF) when a user clicks the ...
1
vote
1answer
762 views

what is customer.form.register.fields.before and why this block add in customer_account_create?

<reference name="content"> <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml"> <block type="page/html_wrapper"...
0
votes
1answer
850 views

Referencing store config values in phtml templates

I am attempting to modify the frontend output for Print Invoice/Print Order to comply with ATO requirements. The template in question is app/design/frontend/base/default/template/page/print.phtml I ...
0
votes
1answer
2k views

How to call product custom attributes in custom .phtml file

I'm would like to call a products custom attributes in my own .phtml file, but having some issues with it. Any help is greatly appreciated. I have the following code in my template/catalog/product/...
1
vote
1answer
46 views

Deploy magento package design view in user's theme

I created a module on magento connect and I have a question about it. How to do to tell magento connect to deploy my module'views (phtml files) into my user's magento folder? Maybe it's a stupid ...
0
votes
1answer
395 views

Initializing and updating vars used in a phtml. What is the proper way?

I am implementing a quotation form. I then declared a module in which I defined a phtml template containing the form, the computed price display and the javascript/ajax script. I also have defined a ...
0
votes
1answer
561 views

Coding standards for phtml files [closed]

Some files such as the product listing template (with multiple nested ifs) are hard to edit without error. I would like to be able to format phtml files with indenting appropriate for php and html, ...

1
10 11 12 13
14