
Originally Posted by
Dave224
Cindy,
I've been trying out OPC with guest checkout and it works great. But I'd like to apply the group discount to certain guests. I've set up an observer to check if a guest customer should get a discount when the guest enters their name and address. If so, I set the group_pricing field in the customers table for the special "do not remove" guest customers_id, expecting that during checkout, the group pricing order total module will calculate the discount and apply the discount. And although the table has been modified, the group pricing module is never called during guest checkout. The discount is applied to normal logged in customers in the group. Thoughts?
Thanks!
Dave
Ok, I see. ot_group_pricing excludes guests.
Code:
if ($order->info['total'] == 0 || !zen_is_logged_in() || zen_in_guest_checkout()) {
return;
}
Dave
Bookmarks