Jump to content

sak1981

Members
  • Content count

    14
  • Joined

  • Last visited

  1. Hello, I installed your InfoBox Admin v2.26 and it works fine for original "standard" infoboxes. However I cannot get any of the newer infoboxes that I have installed from contributions (eg Scrolling Specials) to display. They appear on the Admin side, but not on the actual website. Would you be able to give me any hints as to what I am doing wrong? Paul

  2. since i've installed ccgv-version (14 Apr 2009) the paypal website payment standard module doesnt work for me. after confirming an order the page redirect me to the checkout_success.php-page. normally the site should redirect to the paypal-homepage. so my customers cant make the payment. is there any solution for my problem?
  3. Hi, i have an problem with the PayPal Website Payments Standard-Module. Normally the page redirects to PayPal if a customer confirms the order. I dont know why, but my store is showing the checkout_success.php-page without redirecting the customer to the PayPal-page. i've checked the module paypal_standard.php, checkout_process.php and checkout_confirmation.php, but cant see any problem. also a reinstall of this module doesnt take effect. can somebody help me with my problem? which file i have to edit?
  4. hi jack, do you know how i can change the url from this: /products-name-p123.html to this: /category-name/subcategory-name/products-name_p123.html thank you for supporting this topic :)
  5. sak1981

    [Contribution] Mindsparx admin

    martin, thank you for your supprt. there was no br-tag in my code. but i found the solution by myself. i changed this part this echo '<li class="title">'.$value['text'].'</li>'; to echo $value['text']; at the beginning of every subcat $taxSub1= '</li><li><a class="menuBoxContentLink" href="#">'.BOX_HEADING_HEADER_TAGS_SEO.'</a> to $taxSub1= '<li><a class="menuBoxContentLink" href="#">' . BOX_HEADING_LOCATION_AND_TAXES . '</a> and at the end of every sub-categorie, i changed this: </ul> </li><li>'; to </ul> </li>';
  6. sak1981

    Seperate Pricing Per Customer v3.5

    try beyond comapre 2. for me it's better then winmerge.
  7. sak1981

    Seperate Pricing Per Customer v3.5

    no problem! you're welcome :)
  8. sak1981

    Seperate Pricing Per Customer v3.5

    i'm not sure, but try to delete this: // EOF Separate Pricing Per Customer tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$dup_products_id . "', '" . (int)$categories_id . "')"); looks like you are doing this here already, so you get this duplicate-entry error: tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$dup_products_id . "', '" . (int)$categories_id . "')"); $products_id = $dup_products_id; }
  9. sak1981

    Multi_Vendor_Shipping new thread

    thank you jim, this was the problem. i've had to comment out this part in checkout_confirmation.php also: //BOF osc_Giftwrap // load the selcted giftwrap module // require(DIR_WS_CLASSES . "gift.php"); // $giftwrap_modules = new gift($giftwrap); //EOF osc_Giftwrap now everything works fine. thank you again!
  10. sak1981

    Multi_Vendor_Shipping new thread

    hi, i am trying to include the giftWrap contrib (http://addons.oscommerce.com/info/1155) into MVS. as long as mvs is disabled the giftwrap-option is showing correctly. if i enable mvs the giftwrap is not displayed. i figured out, that the class vendor_shipping.php is called, if mvs is enabled. this file includes the shipping options for mvs. so i included this part of code of the giftwrap contrib into the class-file: //BOF osc_Giftwrap // load giftwrap module require(DIR_WS_CLASSES . 'gift.php'); $giftwrap_modules = new gift; // process the selected giftwrap method if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) { if (!tep_session_is_registered('giftwrap_info')) tep_session_register('giftwrap_info'); if (tep_count_giftwrap_modules() > 0) { if ( (isset($HTTP_POST_VARS['giftwrap'])) && (strpos($HTTP_POST_VARS['giftwrap'], '_')) ) { $giftwrap_info = $HTTP_POST_VARS['giftwrap']; list($module, $method) = explode('_', $giftwrap_info); if (is_object($$module)) { $quote1 = $giftwrap_modules->quote1($method, $module); if (isset($quote1['error'])) { tep_session_unregister('giftwrap'); } else { if ( (isset($quote1[0]['methods'][0]['title'])) && (isset($quote1[0]['methods'][0]['cost'])) ) { $giftwrap_info = array('id' => $giftwrap_info, 'title' => $quote1[0]['module'] . ' (' . $quote1[0]['methods'][0]['title'] . ')', 'cost' => $quote1[0]['methods'][0]['cost']); } } } else { tep_session_unregister('giftwrap_info'); } } } else { $giftwrap_info = false; } } // get all available giftwrap quotes $quotes1 = $giftwrap_modules->quote1(); // add gift message if ($HTTP_GET_VARS['action'] == 'update') { if (tep_not_null($HTTP_POST_VARS['giftMessage']) && tep_session_is_registered('giftwrap_info')) { $giftMessage = tep_db_prepare_input($HTTP_POST_VARS['giftMessage']); if (tep_session_is_registered('customer_id')) { tep_db_query("update " . TABLE_ORDERS . " set giftMessage = '" . tep_db_input($giftMessage) . "' where customers_id = '" . $customer_id . "' and orders_id = '" . $order_id . "'"); } else { tep_db_query("update " . TABLE_ORDERS . " set giftMessage = '" . tep_db_input($giftMessage) . "' where customers_id = '0' and orders_id = '" . $order_id . "'"); } tep_session_unregister('giftwrap_info'); } } //EOF osc_Giftwrap now the giftwrap option is available on the checkout_shipping page. but i get this error when i go to the checkout_confirmation page. there seems to be a problem with the declaration of the function cheapest, which is called twice. so used this to bypass the problem.: if (SELECT_VENDOR_SHIPPING == 'false') { now i get this error: maybe some already installed this to contribs and could give me a hint. i don't know how to handle it. thanks in advance ps: sorry for my english
  11. sak1981

    Javascript InfoBox v1.1

    hello, this is a nice contribution as i can see it on the screenshots. unfortunately the js_infobox_manager.php doesn't fill my database-fields. i think there is an compatibility-issue with php 5.2?. at the moment i've to fill in the database with phpmyadmin. it would be nice if somebody could fix the file.
  12. sak1981

    [Contribution] Mindsparx admin

    hi kenz, i've tried to use firebug before i posted my message. there is no way to change the css-file to display it correctly in internet explorer. with other browser, e.g. firefox and safari, there are no problems...
  13. sak1981

    [Contribution] Mindsparx admin

    hi janne, i have a problem, when creating submenus one after another, or when a submenu is at the top or the bottom of the dropdown-menu. here's an image of my problem: as you can see, there is a space between the menus. if i create submenus between two "normal" links it shows it correctly. this problem only appears on internet explorer. firefox displays it correctly. i've tried to customize the css-file, but i can't figure it out. maybe you have a solution for my problem. regards. ps: sorry for my english
  14. sak1981

    Seperate Pricing Per Customer v3.5

    lol, as easy as it is, this is exactly what i've been looking for. i tried to put it everywhere after it. thank you jan. :blush:
  15. sak1981

    Seperate Pricing Per Customer v3.5

    hello, i installed sppc and want to add this now: http://addons.oscommerce.com/info/4061 (Stock Viewer with Quantity per attribute). There is a part of code, i don't know where/how to put it in. this is my original code of my product_info.php <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' and find_in_set('".$customer_group_id."', attributes_hide_from_groups) = 0 order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.products_attributes_id from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' and find_in_set('".$customer_group_id."', attributes_hide_from_groups) = 0 order by pa.attribute_sort, pa.options_values_price"); $list_of_prdcts_attributes_id = ''; $products_options = array(); // makes sure this array is empty again while ($_products_options = tep_db_fetch_array($products_options_query)) { $products_options[] = $_products_options; $list_of_prdcts_attributes_id .= $_products_options['products_attributes_id'].","; } if (tep_not_null($list_of_prdcts_attributes_id) && $customer_group_id != '0') { $select_list_of_prdcts_attributes_ids = "(" . substr($list_of_prdcts_attributes_id, 0 , -1) . ")"; $pag_query = tep_db_query("select products_attributes_id, options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES_GROUPS . " where products_attributes_id IN " . $select_list_of_prdcts_attributes_ids . " AND customers_group_id = '" . $customer_group_id . "'"); while ($pag_array = tep_db_fetch_array($pag_query)) { $cg_attr_prices[] = $pag_array; } // substitute options_values_price and prefix for those for the customer group (if available) if ($customer_group_id != '0' && tep_not_null($cg_attr_prices)) { for ($n = 0; $n < count($products_options); $n++) { for ($i = 0; $i < count($cg_attr_prices); $i++) { if ($cg_attr_prices[$i]['products_attributes_id'] == $products_options[$n]['products_attributes_id']) { $products_options[$n]['price_prefix'] = $cg_attr_prices[$i]['price_prefix']; $products_options[$n]['options_values_price'] = $cg_attr_prices[$i]['options_values_price']; } } // end for ($i = 0; $i < count($cg_att_prices); $i++) } } // end if ($customer_group_id != '0' && (tep_not_null($cg_attr_prices)) } // end if (tep_not_null($list_of_prdcts_attributes_id) && $customer_group_id != '0') for ($n = 0; $n < count($products_options); $n++) { $products_options_array[] = array('id' => $products_options[$n]['products_options_values_id'], 'text' => $products_options[$n]['products_options_values_name']); //// BOF Actual Price Pull Down v1.2.3a $new_price ? $original_price = $new_price : $original_price = $product_info['products_price']; //// check if set special price $option_price = $products_options['options_values_price']; if ($products_options['price_prefix'] == "-") // in case price lowers, don't add values, subtract. $show_price = 0.0 + $original_price - $option_price; // force float (in case) using the 0.0; else if ($products_options['price_prefix'] == "+") $show_price = 0.0 + $original_price + $option_price; // force float (in case) using the 0.0; else $show_price = $original_price; // force float (in case) using the 0.0; //if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price(($products_options[$n]['options_values_price'] + $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } //// EOF Actual Price Pull Down v1.2.3a } // EOF SPPC attributes mod //// BOF Actual Price Pull Down v1.2.3a //// EOF Actual Price Pull Down v1.2.3a if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> and this is the part i have to put in: -BEGIN SOURCE CODE- $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } -END SOURCE CODE- Change with: -BEGIN SOURCE CODE- $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.options_quantity from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { if($products_options['options_quantity'] == 0) { // If quantity is 0 do not add to list. } else { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } -END SOURCE CODE- this contribution hides an option if there is no quantity. but i dont know how to type this in with sppc. anybody can help?
×