I need to create a list of SKU separated by commas (sku1,sku2) to use them in the frontend of the site as a global variable. I tried adding it as an attribute per product and I also tried to create a category then loading a collection in order to show the SKU on the page but it seems to be overkill considering I only need it for less than 10 products. I just need a textbox or textarea where the SKU can be stored and loaded in the frontend. Probably in the configuration catalog. Something like the System > Configuration > Advanced > Developer > Developer Client Restrictions text box. Since these need to be changed easily.

1 Answer 1


You can use System custom variables. You can set custom variables by navigating to 'System' > 'Custom Variables' where you can set comma-separated text or HTML value also. You can access it in frontend with below code:

  • Let me check this out. I never used this before.
    – fja3omega
    Jun 22, 2018 at 7:08
  • 1
    Do accept the answer if it works out! Happy Coding :)
    – mighty_hk
    Jun 22, 2018 at 7:11
  • Used this instead: "$sku_var = Mage::getModel('core/variable')->loadByCode('instore_sku')->getValue('text');". It works great.
    – fja3omega
    Jun 22, 2018 at 9:17
  • 1
    Oops, sorry for minor error there.
    – mighty_hk
    Jun 22, 2018 at 9:33

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.