I would like to use the default article layout instead of any of the alternative article layouts. My problem is the Share On and Buy on Amazon buttons don’t appear by default on the default layout. I have found code relating to both in the alternative track layout directory of templatesja_muzichtmlcom_contentarticledefault-track.php I copied the following code to the default layout:
<?php if(isset($metadata->jcontent_amazonsell) && $metadata->jcontent_amazonsell !=” ) : ?>
<a class=”btn btn-source btn-buy” href=”<?php echo $metadata->jcontent_amazonsell;?>”><?php echo JText::_(‘TPL_BUY_ON_AMAZON’); ?></a>
<?php endif;?>
<button class=”btn btn-source btn-share” data-toggle=”modal” href=”#myModal”><?php echo JText::_(‘TPL_SHARE_ON’); ?></button>
<div class=”modal hide fade” id=”myModal”>
<div class=”modal-header”>
<a class=”close” data-dismiss=”modal”>×</a>
<h3><?php echo JText::_(‘TPL_SHARE_ON’); ?></h3>
The Share On button now appears and works, but the Buy on Amazon button doesn’t and there is an error in a yellow box: Warning
Error loading feed data
What other files, folders, or code might need to be applied to the default article layout for the Buy on Amazon button to work? Any assistance or ideas is appreciated.