I want to add custom text to the product page,
Here how can i achieve this task, which is the recommended way to do that: Module (or) Events Observer (or) Preference. What kind of workout safe for future version upgrade?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You can add Custom Text on Product Page using below 2 ways:
If Custom Text is product specific, you can create Product Attribute and add text value from backend. For Frontend, you can create new template and using layout block can show this Product Attribute value on desired location on product page.
If its Same Text for all the products, you can create static block containing that custom text. Using layout block, you can place static block on desired location on product page.
This task you need to do in your theme so no module, observer and preference required.