The concept of the direct product of finite family of B-algebras is introduced by Lingcong and Endam [J. A. V. Lingcong and J. C. Endam, Direct product of B-algebras, Int. J. Algebra,10(1):33-40, 2016.]. In this paper, we introduce the concept of the direct product of infinite family of B-algebras, we call the external direct product, which is a generalization of the direct product in the sense of Lingcong and Endam. Also, we introduce the concept of the weak direct product of B-algebras. Finally, we provide several fundamental theorems of (anti-)B-homomorphisms in view of the external direct product B-algebras.