miconib Posted June 20, 2007 Posted June 20, 2007 I am trying to setup a distribution site with OS Commerce. Is there any way that i can hide the price for customers who are not logged in threw there email address and password. Also has anyone see a add-in or module for tier pricing ? thanks In advance
Guest Posted June 20, 2007 Posted June 20, 2007 I am trying to setup a distribution site with OS Commerce. Is there any way that i can hide the price for customers who are not logged in threw there email address and password. Also has anyone see a add-in or module for tier pricing ? thanks In advance What you could do is go to the file where the price is being shown on the page and put in an if statement. Like this: if(tep_session_is_registered('customer_id')){ echo --price--; } That should be all that you need
Guest Posted June 20, 2007 Posted June 20, 2007 there are contributions http://www.oscommerce.com/community/contributions,601
c_engine Posted September 28, 2007 Posted September 28, 2007 what if we want to hide prices of only selected items. is these a a way to do that. many thanks in advance for your help
Nullachtfuffzehn Posted September 28, 2007 Posted September 28, 2007 hide the prices of selected items for non logged in customers or hide them in general?
c_engine Posted February 26, 2008 Posted February 26, 2008 hide the prices of selected items for non logged in customers. for example a product can only be for members and it will hide it until they become a member to see the price ONLY IF THE PRODUCT is selected to be hidden. I really appritiate if you could help me on this. I will return the favour Many Many Thanks
Jan Zonjee Posted February 26, 2008 Posted February 26, 2008 hide the prices of selected items for non logged in customers. for example a product can only be for members and it will hide it until they become a member to see the price ONLY IF THE PRODUCT is selected to be hidden. Make your members not retail (customer group id not zero). Then use the Hide Price if $0 contribution to hide the price and buy now button, but not the complete product for retail customers.
amyqzus Posted September 25, 2008 Posted September 25, 2008 I have installed the display product in column contribution, the hide $0 price does not function right after that Anybody could help on hide $0 price in the display product in column. Here is the code for display the price in the display product in column. if ($listing_values['specials_new_products_price']) { $lc_text .= ' <s>' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> '; } else { $lc_text .= ' ' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' '; } Here is hide price $0 code case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . (($listing['products_price'] > 0) ? $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) : '') . ' '; } break;
Recommended Posts
Archived
This topic is now archived and is closed to further replies.