Display Attribute in Magento1.9 - magento-1.9

I have created a new attribute as location through admin panel , now i have to show that attribute on product page? So please help me how to add the location on page.
Thanks!!

Here is the Solution :-
Step 1:- Please visit here:- http://nimb.ws/lS9zmJ
Step 2:- After step 1, go toapp\design\frontend\rwd\default\template\catalog\product\view.phtml
add code <?php echo $_product->getLocation() ; ?> on this file where you want to show this attribute.
Step 3:- Now go to product detail page & you'll see your attribute value on this page, for the demo please visit here:- http://nimb.ws/WNv1J4

Related

hyperlink text not visible on webpage but link is there

I am not sure why my text for the link is not visible on the page but, when I take my mouse to the area where I was expecting a link text then I am able to click that
blank area" and able to download correct file!
Here is the code structure:
<html>
<head>
some heading/styling link etc.
<body>
some code related to creating dropdown and populating it (form used)
<?php
if submit button is clicked then bunch of variables are populated and
user receives an email with result file. Ideally, I would like to be able
to display a result file link inside this php code.However, I don't know
if php allows to create a hyperlink. So, I was testing to create a link
outside php code. The php code does some python query.
exec("/path/to/python script that does query $var1 $var2 $var3 2>&1",
$output)
?>
<a href="/<?php echo $output[8] ?>"Link to query result</a>
</body>
</html>
So, the text "Link to query result" is nowhere visible but the link exists. What is happening here?
Anchor's opening tag misses '>'
Change
<a href="/<?php echo $output[8] ?>"Link to query result</a>
to
Link to query result

How to change link

I have a link of a hotel which shows us three types of rooms, I need to change that link somehow so it will become direct link to "modern" type room like if I clicked on that rooms, the thing is that that link doesn`t change after I choose "modern" rooms. Can someone please show me and explain how to do that? Here is the link
Post some code so we can see what you're dealing with...
Maybe try using an anchor to wrap the content:
<div id ="#anchor_here"> code here </div>
To link straight to that section:
go to section
if i correctly understand u, you wanna change your static link based on the end users choice, for this purpose you have several choice and the best one is using JavaScript and Jquery same as below:
in html:
<a id="linkId" href="your_linl"> select me </a>
in js:
$('#linkId').attr('href' , 'new link')
is it the answere you looking for ? if not, plz explain more .

Add "Size Guide" button or Icon to product pages

I sell shoes and clothes on My Website and I need to add an option for sizing guide. Probably you have seen it on most websites. Below the "add to cart" there is a small icon for "size guide". I need to make a button or icon to be able to show size charts. For example you can see this website :
http://www.zalando.co.uk/nike-sportswear-md-runner-txt-trainers-grey-ni112a02i-c11.html
I'd be much appreciated if you could help me step by step because I am beginner.
thank you
You can add whatever you'd like to a hook right after the add to cart form.
function so_26388014_after_add_to_cart(){
echo '<a id="size_guide" href="#link-to-size-guide" title="Size Guide">Size Guide</a>';
}
add_action( 'woocommerce_after_add_to_cart_form', 'so_26388014_after_add_to_cart' );
At first I thought you might need some conditional logic, but the woocommerce_after_add_to_cart_form hook really should only be showing on single product pages, so you probably don't need to use is_product() or similar.

How to make twitter links open in a new window

On my site the twitter links open in the parent window. I can't find any reference to the links in the HTML any ideas how to make them open in a new window?
www.wefewlondon.com
Thanks
The tweet markup is generated by the jQuery.tweet plugin. They explain how to achieve the desired outcome in example #6 on their homepage.
Effectively, all you need to do is add this line at line 33 of your main.js:
$(this).find("a").attr("target","_blank");
I looked at your javascript/lib/jquery.tweet.js file.. look at the
return ""+escapeHTML(text)+"";
part... add "target="_blank" and that should do it
return "<a href=\""+escapeHTML(url)+"\ target=_blank>"+escapeHTML(text)+"</a>";
Where the link is written, for example here:
$2
You can append the target attribute:
$2

Cakephp Link is not recognized in HTML

I generate in Cakephp with Html->link a link
echo $this->Html->link('Download',array(
'plugin'=> 'galleries',
'controller'=> 'galleries',
'action'=> 'download',
$download),array('class'=>'down'));
The output is
Download
This link is not recognized. I can not click on it.
But if I put the output link and implement it in the HTML code, all is fine
After this I tried to echo the link - same problem.
This is a snippet from my view
<nav>next<?php if($download){ echo $this->Html->link('Download',array('plugin' => 'galleries', 'controller' => 'galleries','action' => 'download', $download),array('class'=>'down')); } ?>prev</nav>
Maybe somebody can give me a little hint?
Solution:
It was not a PHP Problem but CSS Problem... specially a z-index Problem in my Jquery Plugin (ImageViewer) rolleyes
The schemata of the HTML is:
<article><div class="info"><nav></nav</div></article><article><div class="info"><nav></nav</div></article><article><div class="info"><nav></nav</div></article>
The Problem were the nav tags in every article tag. The "prev&next" links appear in every nav structure but not the "download" link. ergo: i can click on the "prev&next" links but not on the "download" link... So, for a fast solution i set the z-index for my current article view. But i must rework my HTML Code structure
Thanks for reading my question.