Weighted singular value decomposition (WSVD) of a quaternion matrix and with its help determinantal representations of the quaternion weighted Moore-Penrose inverse have been derived recently by the author. In this paper, using these determinantal representations, explicit determinantal representation formulas for the solution of the restricted quaternion matrix equations, AXB = D, and consequently, AX = D and XB = D are obtained within the framework of the theory of columnrow determinants. We consider all possible cases depending on weighted matrices.