Custom Control - CalculatePrice() Function

Posted By BORNXenon Wed 14 May 2014
Add to Favorites0
Author Message
BORNXenon
 Posted Wed 14 May 2014
Supreme Being

Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)Supreme Being - (35,411 reputation)

Group: Forum Members
Last Active: Mon 23 Apr 2018
Posts: 59, Visits: 291
Hi,

While creating my custom control for cut-to-size products, I have noticed that there is a Public Overrides Function at the top of the SampleCustomControl.ascx.vb page called 'CalculatePrice()' which is heavily commented as being required and 'Primarily used to check if stored price in the db/basket is correct, used before checkout code processes an order'.

The only reference to it that I can find (aside from within the Custom Control itself) is in KartrisClasses.vb where it is declared.

My question is, from where is this function called?

Am I supposed to use this function to calculate my custom price, or is it there to double check the price calculated from my own function? Either way, I can't see where it is called (even in the SampleCustomControl.ascx.vb) and it doesn't fire when adding an item to the basket, or at checkout.
Wed 14 May 2014 by BORNXenon


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top