Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Poieo CreditAttribution: Poieo commentedYou might look at https://drupal.org/project/uc_price_visibility.