Correct option is B
The error in the sentence is in part (B). The phrase "only but" is incorrect. It should be "but only." The correct phrase is "but only," which sets a specific condition for who receives the discount.
Corrected sentence: The store offered a discount,
but only to members of its loyalty program, encouraging more customers to sign up.