app/code/Mage/New I have created a module, a view code file, and a translation language package. But my page doesn't work. code: view file


 <a target="_blank" href="<?php echo $item->getProductUrl() ?>">
                       <button><?= __('Buy Now') ?></button>

Bellow is a language file:


"Buy Now",立即購買,module,Mage_New
"Buy Now",立即購買,module,Mage_New

1 Answer 1


Please follow this tutorial for the same. I hope this will work for you.


Thanks, Rashi

  • Thanks ,very good
    – sq y
    Dec 3, 2021 at 2:59
  • Welcome. Please vote if solution worked for you Dec 3, 2021 at 6:33

Your Answer

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

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