Where Is Declaring Procuts Price

hi guys

Please see the attacchment

i am begin build my modifications. but where is declaring product price on fn_catalog.php ?

i cant find it ? plase help me this

price.png

function fn_get_product_data



Here:


$field_list .= ", MIN(IF(?:product_prices.percentage_discount = 0, ?:product_prices.price, ?:product_prices.price - (?:product_prices.price * ?:product_prices.percentage_discount)/100)) as price";



and here:



$field_list .= ', IF('
. 'shared_prices.product_id IS NOT NULL,'
. 'MIN(IF(shared_prices.percentage_discount = 0, shared_prices.price, shared_prices.price - (shared_prices.price * shared_prices.percentage_discount)/100)),'
. 'MIN(IF(?:product_prices.percentage_discount = 0, ?:product_prices.price, ?:product_prices.price - (?:product_prices.price * ?:product_prices.percentage_discount)/100))'
. ') as price'
;

got it. eg: i added some fields to database in products_prices tables

price_main and currency fields

if currency not base price will show selected price.



i changed this lines showing my fields but currency code still getting base



where can i edit that ? any idea

hmm also thats field_list's getting only detail page. any idea for category listing pages ?

[quote name='cavemin' timestamp='1408545254' post='190092']

hmm also thats field_list's getting only detail page. any idea for category listing pages ?

[/quote]



the same file, function fn_get_products

[quote name='cavemin' timestamp='1408545254' post='190092']

hmm also thats field_list's getting only detail page. any idea for category listing pages ?

[/quote]



If you use CS-Cart, not Multi-Vendor, also check the fn_ult_get_products function in the fn.ultimate.php file. It uses hook in the fn_get_products function and extends it