Active
Project:
Ubercart Disable Store
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Jan 2014 at 04:30 UTC
Updated:
20 Mar 2014 at 20:53 UTC
Jump to comment: Most recent
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 commentedYou might look at https://drupal.org/project/uc_price_visibility.