Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

texmaxx

♥Ambassador
  • Posts

    98
  • Joined

  • Last visited

1 Follower

About texmaxx

  • Birthday 04/26/1958

Profile Information

  • Real Name
    Götz
  • Gender
    Male
  • Location
    South Germany

Recent Profile Visitors

10,720 profile views

texmaxx's Achievements

  1. @@khoking: Please find all details in the Dokumentation, look for Design_customization_css.docx
  2. Compared to catalog/advanced_search_result.php, there are missing brackets in catalog/smartsuggest.php. When one types in more than one keyword, actually the searchquery will not separate them and results are screwed: WHERE p.products_status = '1' and pd.language_id = '2' and (pd.products_name like '%needle1%' or p.products_model like '%needle1%' and pd.products_name like '%needle2%' or p.products_model like '%needle2%') adding brackets in the catalog/smartsuggest.php: if (isset($search_keywords) && (sizeof($search_keywords) > 0)) { $where_str .= " and ("; for ($i=0, $n=sizeof($search_keywords); $i<$n; $i++ ) { switch ($search_keywords[$i]) { case '(': case ')': case 'and': case 'or': $where_str .= " " . $search_keywords[$i] . " "; break; default: $where_str .= "("; if (SMARTSUGGEST_RESULT == 'Product Names') { $where_str .= "pd.products_name like '%" . tep_db_input($search_keywords[$i]) . "%' or p.products_model like '%" . tep_db_input($search_keywords[$i]) . "%'"; } else { $where_str .= "keywords LIKE '%". tep_db_input($search_keywords[$i]) . "%'"; } $where_str .= ")"; break; } } $where_str .= ")"; } will break down the result to items matching both keywords and the query is ok: WHERE p.products_status = '1' and pd.language_id = '2' and ((pd.products_name like '%needle1%' or p.products_model like '%needle1%') and (pd.products_name like '%needle2%' or p.products_model like '%needle2%'))
  3. Hello! Does someone have a hint about howto integrate a treeview for the categories? ...just like a layer that slides in from the side... Thanks for any idea! tex
  4. Hello @@raiwa, You made my day! Works out of the box. :thumbsup: The shop is getting close... Kind regards Götz P.S. I'm still searching the </div>... if I get no result, I'm going to post code :D
  5. I have the old PayPal module paypal_ipn installed, version from 2004... (w00t) however, payment works with the mobile shop, only coming back from the paypal site gives me this error Fatal error: Cannot redeclare class order_total in /.../.../.../includes/classes/ordertotal.php on line 13 Please help kind regards Götz
  6. I ment the form for entering new address. there is one closing </div> too much before the closing </form> <h1><?php echo TABLE_HEADING_NEW_PAYMENT_ADDRESS; ?></h1> <?php echo TEXT_CREATE_NEW_PAYMENT_ADDRESS; ?> <div id="bill_add"> <?php require(DIR_MOBILE_MODULES . 'checkout_new_address.php'); ?> </div> <?php } ?> <div class="bouton"> <?php echo tep_button_jquery(IMAGE_BUTTON_BACK , tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'b' , 'button' , 'data-icon="back" data-inline="true"' ); echo tep_draw_hidden_field('action', 'submit') . tep_button_jquery( IMAGE_BUTTON_CONTINUE , '', 'b' , 'submit' , 'data-icon="arrow-r" data-iconpos="right" data-inline="true"' ); ?> </div> </form> should be <h1><?php echo TABLE_HEADING_NEW_PAYMENT_ADDRESS; ?></h1> <?php echo TEXT_CREATE_NEW_PAYMENT_ADDRESS; ?> <div id="bill_add"> <?php require(DIR_MOBILE_MODULES . 'checkout_new_address.php'); ?> <?php } ?> <div class="bouton"> <?php echo tep_button_jquery(IMAGE_BUTTON_BACK , tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'b' , 'button' , 'data-icon="back" data-inline="true"' ); echo tep_draw_hidden_field('action', 'submit') . tep_button_jquery( IMAGE_BUTTON_CONTINUE , '', 'b' , 'submit' , 'data-icon="arrow-r" data-iconpos="right" data-inline="true"' ); ?> </div> </form>
  7. Hello! checkout_payment_address.php and checkout_shipping_address.php are not submitting new address at all. Anyone got a hint? Thanks!
  8. Thank you @@Rainer, got it. http://addons.oscommerce.com/info/3039 is installed, had to add to mobile/product_info after echo tep_draw_hidden_field('products_id', $product_info['products_id']); the line echo tep_draw_hidden_field('cart_quantity', $pf->adjustQty(1)); kind regards Götz
  9. Got it working with imagemagic, if someone needs... http://addons.oscommerce.com/info/6637 copy the catalog/imagemagic.php to catalog/mobile/ open the catalog/mobile/imagemagic.php modify lines 16 to 20 } else { // include server parameters require('../includes/configure.php'); } require('../includes/imagemagic/imagemagic.functions.php'); turn OFF caching on server in admin imagemagic settings
  10. hi all, adding same product twice or more to the basket works only from catalog_mb.php, not from product_info.php thanks for help!
  11. Thank you for this very important function. some other contribs remove /index.php from the url if in root. So no duplicates www.abc.com - www.abc.com/index.php If in this function, the switch $rem_index is set to true, it will remove index.php even if in category view, so we get the canonical www.abc.com/cpath/123 which makes no sense. To make this work, set the switch $rem_index = true; AND change the line if ($rem_index) $search[] = ('/index.php\/*/'); to if (!preg_match("/cPath/", $request_uri) && $rem_index) $search[] = ('/index.php\/*/');
  12. Hi, there is a call to function tep_draw_pull_down_date in advanced_search.php. anyone have this function please? regards tex
  13. Dear Jan, It works!!! What I don't understand: $pfs = new PriceFormatterStore; But there is no class PriceFormatterStore in my osc, or might it be that I have such an old version? Which one is that? I need to do this as well... Thank you very much! Kind regards Götz
  14. Dear Jan, Hi All, Only a small thing, but: SPPC + QPBPP: User is not logged in and filling up his cart with products which have qty_blocks = 1 in group 0, but > 1 in the group, he belongs to. After pressing CHECKOUT, he logs in and proceeds to checkout_shipping. The cart should be updated according to the setting of qty_blocks in his group, but it isn't. Can you please give me a hint? Thanks!
  15. Hide products from customer groups for SPPC When using function tep_has_category_subcategories($category_id), the nested categories appear in the query. catalog/includes/functions/general.php Change function tep_has_category_subcategories($category_id): //// // Return true if the category has subcategories // TABLES: categories function tep_has_category_subcategories($category_id) { global $sppc_customer_group_id; if(!tep_session_is_registered('sppc_customer_group_id')) { $customer_group_id = '0'; } else { $customer_group_id = $sppc_customer_group_id; } $child_category_query = tep_db_query("select count(*) as count from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$category_id . "' and find_in_set('" . $customer_group_id . "', categories_hide_from_groups) = 0"); $child_category = tep_db_fetch_array($child_category_query); if ($child_category['count'] > 0) { return true; } else { return false; } } If in a catergory are no products and all subcategories of that category are hidden, the message "There are no products to list in this category." does not appear. To get this message, the select in catalog/index.php - line 32 - needs the and find_in_set('".$customer_group_id."', categories_hide_from_groups) = 0 statement. catalog/index.php // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "' and find_in_set('".$customer_group_id."', categories_hide_from_groups) = 0"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } }
×
×
  • Create New...