1

I have a custom attribute that can be Yes or No. If a product has this attribute set to Yes then in product page view I want to display a block below "Add to Cart" button.

How can I achieve this?

1 Answer 1

1

go to app/design/frontend/YourPackage/YourTheme/template/catalog/product/view/addtocart.phtml

and add code there.

if($product->getAttributeCode()){
     echo $this->getLayout()->createBlock('Yourblock');
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.