socrates
Archived-
Posts
14 -
Joined
-
Last visited
Profile Information
-
Real Name
Christian
socrates's Achievements
-
@matty, i have made some changes in my products_info.php to have an other way to display the slave-products. you can see it here : testsystem. soc.
-
that was it for the porduct_info.php. but now i'm standign for the next problem: the new_products.php. is anybody there to help me? thanx soc.
-
ok i got it! :D :D here is the code: <?php if ($product_master['product_master_status'] == 0) { $products_options_query = tep_db_query("select options_values_price from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { if (($products_options['options_values_price'] != 0) ) { $pref=0; } } //displays product price logged_in if (PRICES_LOGGED_IN == 'false') { $product_price_d = $products_price; } if ((PRICES_LOGGED_IN == 'true') && (!tep_session_is_registered('customer_id'))) { $product_price_d = ('<a href="' . tep_href_link(FILENAME_LOGIN, '','SSL') . '">' . PRICES_LOGGED_IN_SUBMIT . '</a> ' ); } else { //!UNCOMMENT LINES BELOW IF YOU DONT WANNA DISPLAY YOUR BASED PRICE TO REGISTERED CUSTOMERS group zero //if ( $customer_group['customers_group_id'] == 0) { //$product_price_d = ('<BR>Preis auf Anfrage' ); // } else { $product_price_d = $products_price; //} if($pref != '0'){ echo $product_price_d; }else{ echo 'ab '.$product_price_d; } # echo $product_price_d; } }else{ $products_slave_query = tep_db_query("select products_price from " . TABLE_PRODUCTS . " where products_master = '" . (int)$HTTP_GET_VARS['products_id'] . "' and products_id != '" . (int)$HTTP_GET_VARS['products_id'] . "' order by products_price desc " ); while ($products_slave_array = tep_db_fetch_array($products_slave_query)) { $products_slave_price = nl2br($products_slave_array['products_price']); $slave_price = $currencies->display_price($products_slave_price, tep_get_tax_rate($product_info['products_tax_class_id'])); if (($products_slave_array['products_price'] != 0) ) { $pref=0; } } //displays product price logged_in if (PRICES_LOGGED_IN == 'false') { $product_price_d = $slave_price; } if ((PRICES_LOGGED_IN == 'true') && (!tep_session_is_registered('customer_id'))) { $product_price_d = ('<a href="' . tep_href_link(FILENAME_LOGIN, '','SSL') . '">' . PRICES_LOGGED_IN_SUBMIT . '</a> ' ); } else { //!UNCOMMENT LINES BELOW IF YOU DONT WANNA DISPLAY YOUR BASED PRICE TO REGISTERED CUSTOMERS group zero //if ( $customer_group['customers_group_id'] == 0) { //$product_price_d = ('<BR>Preis auf Anfrage' ); // } else { $product_price_d = $slave_price; //} if($pref != '0'){ echo $product_price_d; }else{ echo 'ab '.$product_price_d; } # echo $product_price_d; } } this is with b2b suite, but parts of the code works without b2b suite. soc.
-
post scriptum: there's a "ab" and no price at the master-products. the other prices are ok. soc.
-
hi, i'v a problem with the display of master-product prices. in one of my previous post i asked about the posibility to show "ab(from) 10$" when the slave-prices are different. now i tried to make it like this: <?php if ($product_master['product_master_status'] == 0) { $products_options_query = tep_db_query("select options_values_price from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { if (($products_options['options_values_price'] != 0) ) { $pref=0; } } //displays product price logged_in if (PRICES_LOGGED_IN == 'false') { $product_price_d = $products_price; } if ((PRICES_LOGGED_IN == 'true') && (!tep_session_is_registered('customer_id'))) { $product_price_d = ('<a href="' . tep_href_link(FILENAME_LOGIN, '','SSL') . '">' . PRICES_LOGGED_IN_SUBMIT . '</a> ' ); } else { //!UNCOMMENT LINES BELOW IF YOU DONT WANNA DISPLAY YOUR BASED PRICE TO REGISTERED CUSTOMERS group zero //if ( $customer_group['customers_group_id'] == 0) { //$product_price_d = ('<BR>Preis auf Anfrage' ); // } else { $product_price_d = $products_price; //} if($pref != '0'){ echo $product_price_d; }else{ echo 'ab '.$product_price_d; } # echo $product_price_d; } }else{ $products_slave_query = tep_db_query("select products_price from " . TABLE_PRODUCTS . " where products_master = '" . (int)$HTTP_GET_VARS['products_id'] . "' and products_id != '" . (int)$HTTP_GET_VARS['products_id'] . "'"); while ($products_slave = tep_db_fetch_array($products_slave_query)) { if (($products_slave['products_price'] != 0) ) { $pref=0; } } //displays product price logged_in if (PRICES_LOGGED_IN == 'false') { $product_price_d = $products_price; } if ((PRICES_LOGGED_IN == 'true') && (!tep_session_is_registered('customer_id'))) { $product_price_d = ('<a href="' . tep_href_link(FILENAME_LOGIN, '','SSL') . '">' . PRICES_LOGGED_IN_SUBMIT . '</a> ' ); } else { //!UNCOMMENT LINES BELOW IF YOU DONT WANNA DISPLAY YOUR BASED PRICE TO REGISTERED CUSTOMERS group zero //if ( $customer_group['customers_group_id'] == 0) { //$product_price_d = ('<BR>Preis auf Anfrage' ); // } else { $product_price_d = $products_price; //} if($pref != '0'){ echo $product_price_d; }else{ echo 'ab '.$product_price_d; } # echo $product_price_d; } } now ther's a "ab" but no price :( where is my problem? thx soc.
-
ok, i tried to find the problem and i think it's in the cutomers_groups.php. there is no query about the the categories to update. i tried to write such a query but i think i'm too stupid for that. so if someone has an idea please help me "out of the box". thx soc.
-
hi, i've installed this verry good contrib in version 0.8. but now i've got a little problem. when i have set a category-discont for a group and press the "update_group_price-button" all products in my shop have the discont! for example: group : vips category : valves (number 87) / 5 products-> 10% -> press button -> all products in my shop hves the 10% discont -> :( :( . what's the problem?? thx soc.
-
hi matti, thx for your quick replay. master_products 1.2 ist running in testmode on my system. i combined it with b2b_suite0.8, and it works verry well since two days (on my stage-sys). perhaps i can take it in two or three days in production (than i'll poste a url). it is a great contrib - many thankx to you and the other. soc.
-
hi matt, thx for your help. now i have another problem. i've some products with slave, where the slaves have different prices: for example: master: no price slave 1: 10 EUR slave 2: 10 EUR slave 3: 15 EUR now i need in the product listing.php and other scripts the following displaying-feature: master ab(from) 10 EUR how can i realize that? thx soc.
-
hi, i have installed this contrib too, but i have the same problem. has anyone an idea to solve it? thx soc.
-
hi Johnson, this was the right hind!! it works - you've done a verry good job!. :P :D thx soc.
-
hi, i have installed it and it works verry nice. but i have a little problem with the index page (i think it's the new_products.php). on this page the "nonschown" slaves are visible. how can i get them off? thx soc. i don't have a link because it's my testsys.
-
hello, has anyone installed the atribute_copier_and_sorter in osc2.2ms2? because i'm not able to install it into my shop. the product_infp.php is too different (v1.48(contrib) and v1.52 (osc)). who can help me to solve the problem? thx soc.