Abhijeet kumar sharma
Abhijeet kumar sharma

Reputation: 530

Magento Custom Attribute

I have created a multi-website store in Magento with a custom attribute called Bar-code which is visible on product view page.

I just want to display this Bar-code attribute on a single website not on all the websites or web store.

How can I do it?

Upvotes: 1

Views: 1080

Answers (1)

Dmytro Zavalkin
Dmytro Zavalkin

Reputation: 5277

  1. You should set needed scope for your attribute: Change attribute scope

  2. Go to edit product page and switch to needed website or store view level, set attribute value for this website/sore view. Set attribute value for needed website For other website this attribute value will be empty.

  3. In your on product view page template render this attribute only if it is not empty.

Upvotes: 1

Related Questions