Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- <block class="MagentoCatalogBlockProductViewDescription" name="product.info.attributes" template="product/view/attributes.phtml" after="-">
- <arguments>
- <argument name="at_call" xsi:type="string">getBottleSize</argument>
- <argument name="at_code" xsi:type="string">bottle_size</argument>
- <argument name="css_class" xsi:type="string">bottle_size</argument>
- <argument name="at_label" xsi:type="string">Bottle Size</argument>
- <argument name="add_attribute" xsi:type="string">itemprop="bottle_size"</argument>
- </arguments>
- </block>
- <?php
- $_helper = $this->helper('MagentoCatalogHelperOutput');
- $_product = $block->getProduct();
- $_code = $block->getAtCode();
- $_className = $block->getCssClass();
- $_attributeLabel = $block->getAtLabel();
- $_attributeType = $block->getAtType();
- $_attributeAddAttribute = $block->getAddAttribute();
- if ($_attributeLabel && $_attributeLabel == 'default') {
- $_attributeLabel = $_product->getResource()->getAttribute($_code)->getFrontendLabel();
- }
- $_attributeValue =$_product->getResource()->getAttribute($_code)->getFrontend()->getValue($_product);
- ?>
- <?php if ($_attributeValue): ?>
- <div>
- <?php if ($_attributeLabel != 'none'): ?><strong class="type"><?php echo $_attributeLabel?></strong><?php endif; ?>
- <div class="value" <?php echo $_attributeAddAttribute;?>><?php echo $_attributeValue; ?></div>
- </div>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment