passing price minus CostOfGoods as AdWords ConversionValue

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
crockettdunn
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Sun Oct 26, 2008 6:32 pm
Contact:

passing price minus CostOfGoods as AdWords ConversionValue

Post by crockettdunn » Mon Nov 04, 2013 1:00 am

I'm in the process of setting up a ConversionValue to pass to Google AdWords, but I'm stuck on what is probably a basic .Net context issue.

I calculate the total CostOfGoods in OrderTotalSummary.ascx.cs, and stick it into a string (asp:Label) in OrderTotalSummary.ascx.

The total price and conversion value are calculated in ReceiptPage.ascx.cs.

:?: How do I access the CostOfGoods (in OrderTotalSummary.ascx/.cs) from the "calling" page, ReceiptPage.ascx(/.cs), without getting an error like this?
error CS0103: The name 'Subtotal_cog' does not exist in the current context

Post Reply