I finally got attributes to add to the cart with the right price when logged in as wholesale customer or retail. 
I followed all the steps on post #687
As Twitch suggested I changed all variables:
- customer_whole
- customer_wholesale and
- customers_whole
to only 'customers_wholesale'.
Then I only added two small bits of code to shopping_cart.php.
It can be found /includes/classes/shopping_cart.php
Find line (around 755):
PHP Code:
$new_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
Add this below:
PHP Code:
if ($_SESSION['customer_id']) {
if ($customer_check->fields['customers_wholesale'] != "0") {
$new_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price_w'], $qty);
}
}
Then find line (around line 946):
PHP Code:
$new_attributes_price = zen_get_discount_calc($products_id, $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
Add this below:
PHP Code:
if ($_SESSION['customer_id']) {
if ($customer_check->fields['customers_wholesale'] != "0") {
$new_attributes_price = zen_get_discount_calc($products_id, $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price_w'], $qty);
}
}
The first code will adjust the sub total in the cart to match the wholesale pricing. The second will make the actually price match the wholesale price. If you have other discounts applied like coupons or sales you will have modify the codes similar to what I have done. I'm not using any discounts so this works for me. At least this gives you the idea of what you have to do.
Thanks for all of your help!
Bookmarks