I have used this function to hide price that was good but stil add to cart button was active to hide add to cart button I have used this
<?php
function uc_product_forms(){
$products = db_query("SELECT DISTINCT nid FROM {uc_products}");
global $user;
if ($user->uid) {
while ($product = db_fetch_object($products)){
$forms['uc_product_add_to_cart_form_'. $product->nid] = array('callback' => 'uc_product_add_to_cart_form');
$forms['uc_catalog_buy_it_now_form_'. $product->nid] = array('callback' => 'uc_catalog_buy_it_now_form');
}
}
return $forms;
}
?>after doing this I am getting this error in logs
<?php
call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argumented is expected to be a valid callback, 'uc_product_add_to_cart_form_168' was given in /home/designsd/public_html/wholesale/includes/form.inc on line 218.
?>As I have 10 products on front page so I will get 10 times error with differnt form id
Can anyone helps me
Thanks in advance



Joined: 08/08/2007