Guest User

Untitled

a guest
Nov 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. Fatal error: Uncaught Error: Call to a member function getFrontend() on boolean in /domains/domain.co.uk/http/app/design/frontend/Venustheme/cricket/Magento_Catalog/templates/product/view/attributes.phtml:12 Stack trace: #0 /domains/domain.co.uk/http/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /domains/domain.co.uk/http/vendor/magento/framework/View/Element/Template.php(255): MagentoFrameworkViewTemplateEnginePhp->render(Object(MagentoCatalogBlockProductViewAttributes), '/domains/operat...', Array) #2 /domains/domain.co.uk/http/vendor/magento/framework/View/Element/Template.php(279): MagentoFrameworkViewElementTemplate->fetchView('/domains/operat...') #3 /domains/domain.co.uk/http/vendor/magento/framework/View/Element/AbstractBlock.php(659): MagentoFrameworkViewElementTemplate->_toHtml() #4 /domains/domain.co.uk/http/vendor/magento/framework/View/Layout.php(542): MagentoFrameworkViewElementAbstractBlock->toHtml() #5 /domains/operatio in /domains/domain.co.uk/http/app/design/frontend/Venustheme/cricket/Magento_Catalog/templates/product/view/attributes.phtml on line 12
  2.  
  3. <block class="MagentoCatalogBlockProductViewDescription" name="product.info.attributes" template="product/view/attributes.phtml" after="-">
  4. <arguments>
  5. <argument name="at_call" xsi:type="string">getBottleSize</argument>
  6. <argument name="at_code" xsi:type="string">bottle_size</argument>
  7. <argument name="css_class" xsi:type="string">bottle_size</argument>
  8. <argument name="at_label" xsi:type="string">Bottle Size</argument>
  9. <argument name="add_attribute" xsi:type="string">itemprop="bottle_size"</argument>
  10. </arguments>
  11. </block>
  12.  
  13. <?php
  14. $_helper = $this->helper('MagentoCatalogHelperOutput');
  15. $_product = $block->getProduct();
  16. $_code = $block->getAtCode();
  17. $_className = $block->getCssClass();
  18. $_attributeLabel = $block->getAtLabel();
  19. $_attributeType = $block->getAtType();
  20. $_attributeAddAttribute = $block->getAddAttribute();
  21. if ($_attributeLabel && $_attributeLabel == 'default') {
  22. $_attributeLabel = $_product->getResource()->getAttribute($_code)->getFrontendLabel();
  23. }
  24. $_attributeValue =$_product->getResource()->getAttribute($_code)->getFrontend()->getValue($_product);
  25. ?>
  26. <?php if ($_attributeValue): ?>
  27. <div>
  28. <?php if ($_attributeLabel != 'none'): ?><strong class="type"><?php echo $_attributeLabel?></strong><?php endif; ?>
  29. <div class="value" <?php echo $_attributeAddAttribute;?>><?php echo $_attributeValue; ?></div>
  30. </div>
  31. <?php endif; ?>
Add Comment
Please, Sign In to add comment