I need to add an if/then to checkout so that I am only allowing payment methods when taxexempt = true for a shopping cart item.
My problem is that I can't seem to get to the shopping cart item variants from CheckoutPaymentMethod.ascx.cs.
I have added this, but no matter what I try, I can't pass in the right variable for "ShoppingCartItem shoppingCartItem"
public bool GetProductVariantTaxExempt(ShoppingCartItem shoppingCartItem)
{
var productVariant = shoppingCartItem.ProductVariant;
if (productVariant != null)
return productVariant.IsTaxExempt;
return productVariant.IsTaxExempt;
}
Thank you for the help..
-Matt