to anyone that cares, i figured out how to get the prices inside the attribute tables to hide when not logged in. In includes/modules/your_template/attributes.php at around line 47:
PHP Code:
if ($check_attributes_fields == true) {
I noticed Absolute added his entire Attribute Grid code (for this .php file, anyways) in this function. So I created a
PHP Code:
if ($_SESSION['customer_id']){
}
function while just inside the $check_attributes_fields statement and enclosed whatever was inside. I then copied that entire code into an else{} statement, but this time commented out this line, around line 88:
PHP Code:
'price' => $products_options->fields['options_values_price'],
Commenting out the 'price' variable in the $grid_records[$rd]['options'][] array gets rid of the prices that display in the grid.
So the basic layout of my coding solution is that if a user is logged in, the attribute grid performs normally. But, if the user is not logged in, then the attribute grid performs with the price display manually disabled through commenting out the 'price' variable.
I'm sure there is a much easier way of getting this done. It feels like there is a quick one line code method of being able to get 'hide prices until logged in' functionality with the attribute grid, but my programming knowledge is limited.
Bookmarks