0
votes

I have created a custom .phtml file located at /app/design/frontend/MYTHEME/default/template/catalog/product/view/prod_attribs.phtml

on /app/design/frontend/MYTHEME/default/template/catalog/product/view/addtocart.phtml i want to create a hyperlink of prod_attribs.phtml

Please advise how to create hyperlink of this newly created prod_attribs.phtml file

EDIT:

on phtml file /app/design/frontend/MYTHEME/default/template/catalog/produc‌​t/view/addtocart.pht‌​ml i want to make a hyper link which should point to newly created file "prod_attribs.phtml" something like " class="various">Configure Here

which when clicked should open the prod_attribs.phtml

1
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking.Enigmativity
on phtml file /app/design/frontend/MYTHEME/default/template/catalog/product/view/addtocart.phtml i want to make a hyper link which should point to newly created file "prod_attribs.phtml" something like <a href="<?php print Mage::getUrl('catalog/product/view/prod_attribs.phtml'); ?> " class="various">Configure Here</a> which when clicked should open the prod_attribs.phtmlNauman
You need to put your existing code, your requirements, and describe what's not working for you in your existing code. Then you're likely to get help.Enigmativity
@Enigmativity i need help on this please. do you need more information?Nauman
@Enigmativity on addtocart.phtml i am having following code [link]<a href="<?php print Mage::getUrl('catalog/product/view/', array('prod_attribs.phtml')); ?> " class="various">Configure Here</a>[/link] and i want this click to open phtml page residing in /app/design/frontend/MYTHEME/default/template/catalog/product/view/prod_attribs.phtmlNauman

1 Answers

2
votes

Best solution for this is. first create cms page with below code.

{{block type="core/template" template="catalog/product/view/prod_attribs.phtml"}}

So,now you have link for that cms page which you get by clicking preview from cms grid page.

now you can use that link into your addtocart.phtml file like you said "<a href="cms page link" class="various">Configure Here</a>

which when clicked it should open the prod_attribs.phtml content.

Thanks