hi, ladies and gentlemen,
i update my question here:
a customer's email account is [email protected]
the vendor - testVender's email is set to [email protected]
a known variable of the stockQuantity is in Libraries\Nop.Services\Catalog\ProductExtensions.cs line#102
how to get the emails of the current customer and the vendor?
i want to add a condition in this program block to judge whether these two emails are the same
the answer i need becomes simpler, but still need help
thank you :)
i update my question here:
a customer's email account is [email protected]
the vendor - testVender's email is set to [email protected]
a known variable of the stockQuantity is in Libraries\Nop.Services\Catalog\ProductExtensions.cs line#102
how to get the emails of the current customer and the vendor?
i want to add a condition in this program block to judge whether these two emails are the same
the answer i need becomes simpler, but still need help
thank you :)
for getting the logged in customer email you have to use _workContext.CurrentCustomer.Email
and for getting the vendor email you need to use product.Vendor.Email
or first you need to get the vendor = _vendorservice.getVendorById(product.VendorId)
and then use vendor.Email