Dear Sir,
The module work fine to hide "Add to Cart" for condition unless logged in.
Thanks.

However how can add code that also hide "sell_price" (or display_price) under same condition.
I noted the following code area (uc_disable.module) may modify can do that ?

function uc_disable_form_alter(&$form, &$form_state, $form_id) {
// disarm add_to_cart form
if (strstr($form_id, 'uc_product_add_to_cart_form_')) {
if (!user_access('enable store checkout')) {
$form['#access'] = false;
}
}
}

Do anyone can give some idea how to do that ?

best regards,
Andy

Comments

Poieo’s picture