Jump to content

stratula

♥Ambassador
  • Content count

    103
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by stratula

  1. 2.3.4.1 CE BS responsive / PHP 7.1.15 Hello, i want to make an extra field in create_account for VAT ID below company. It should be as option like company. The problem is that i do not understand of all what is to do. I'm sure to start in create_account and make changes like this: in catalog/create_account.php on line: 33 if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($_POST['company']); to: if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($_POST['company']); if (ACCOUNT_VAT-ID == 'true') $vat-id = tep_db_prepare_input($_POST['vat-id']); on line: 196 if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company; to if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company; if (ACCOUNT_VAT-ID == 'true') $sql_data_array['entry_vat-id'] = $vat-id; on line: 346 <?php if (ACCOUNT_COMPANY == 'true') { ?> <h2 class="h3"><?php echo CATEGORY_COMPANY; ?></h2> <div class="contentText"> <div class="form-group"> <label for="inputCompany" class="control-label col-sm-3"><?php echo ENTRY_COMPANY; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('company', NULL, 'id="inputCompany" placeholder="' . ENTRY_COMPANY_TEXT . '"'); ?> </div> </div> </div> <?php } ?> to <?php if (ACCOUNT_COMPANY == 'true') { ?> <h2 class="h3"><?php echo CATEGORY_COMPANY; ?></h2> <div class="contentText"> <div class="form-group"> <label for="inputCompany" class="control-label col-sm-3"><?php echo ENTRY_COMPANY; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('company', NULL, 'id="inputCompany" placeholder="' . ENTRY_COMPANY_TEXT . '"'); ?> </div> </div> </div> <?php } ?> <?php if (ACCOUNT_VAT-ID == 'true') { ?> <h2 class="h3"><?php echo CATEGORY_VAT-ID; ?></h2> <div class="contentText"> <div class="form-group"> <label for="inputVAT-ID" class="control-label col-sm-3"><?php echo ENTRY_VAT-ID; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('vat-id', NULL, 'id="inputVAT-ID" placeholder="' . ENTRY_VAT-ID_TEXT . '"'); ?> </div> </div> </div> <?php } ?> After this i think in admin/customers.php making the same kind of changes and of course the languages files. But from this point i need help, i don't know what else files have to be change and how to write the sql for dbase. Any kind of help for this would be nice thx Stefan
  2. stratula

    NEW! Complete Order Editing Tool!

    Hi Dan, yes it displays the details of the order I've clicked on. But as country it shows always the first country of the countries.php. Means that a customer from germany on loaded edit_orders.php display with the first country from countries.php (Albania) thx and Br Stefan
  3. stratula

    NEW! Complete Order Editing Tool!

    hello, i've installed this addon and it seems that its working ok. But there is still one problem: On the edit_orders.php it shows all customers with the first country from the countries.php. Is this normal or do i miss something? thx and Br Stefan
  4. @valquiria23 I installed the addon but it didn't work on my CE/BS3. After i tried the version of your category_tree.php it works fine. /*Begin Distinguish sub categories category box*/ if ( $level === 0 ) { $result .= $this->root_start_string; } else { switch ($level) { case 1: $result .= '<i class="text-info fas fa-chevron-circle-right pull-left" style="margin-top:13px; margin-left:13px; "></i>'; break; case 2: $result .= '<i class="text-info fas fa-sign-out-alt pull-left" style="margin-top:13px; margin-left:13px; "></i>'; break; case 3: $result .= '<i class="text-info fas fa-chevron-circle-right pull-left" style="margin-top:13px; margin-left:13px; color:#3cbecc"></i>'; break; case 4: $result .= '<i class="text-info fas fas fa-sign-out-alt pull-left" style="margin-top:13px; margin-left:13px; color:#3cbecc"></i>'; break; default: $result .= $this->root_start_string; } } /*End Distinguish sub categories category box*/ The addon from the marketplace has a missing } at the end. thanks for your work Best Regards Stefan
  5. stratula

    extra field for VAT ID in create_account

    @LeeFoster Thank you for the infos. Is it for the account section only the address_book.php if i want the same rules like company? The SQL will be a problem for me...😩 @piernas The only addon i found is for 2.3.3 and its not the same i want. I need just an extra field straight below company wich follows the same rules like company. No need to make it switchable in admin. best regards stefan
  6. stratula

    17 Years Young!

    Congrats and many many thanks for all the work and support on osc over the years!! I started with Milestone and did 4 years ago a 2.3.1 and now i am working on a 2.3.4.1 CE response and like it 👌 Please keep on!!
  7. stratula

    Entscheidungsfindung

    @Chrisso here is a good working german language pack German language pack for BS_CE
  8. stratula

    Wholesale (SPPC lite)

    @raiwa i do not understand this in the Manual_File_Modifications at the beginning: If you need it to distinguish between wholesaler and retailer for other uses, you can code it like this: // wholesale (SPPC Lite) BEGIN global $ wholesale_group; if ($wholesale_group > 0) { echo 'wholesaler'; // wholesalers code } else { // default echo 'retailer'; // retailer code } // wholesale (SPPC Lite) END ..???
  9. ok thx, but what do i have to change?
  10. hello i have installed a osc 2.3.4.1 bs (responsive master) on php 7.2.3 and i got a warning message in admin modules content page: Warning: Use of undefined constant - assumed 'OSCOM_APP_PAYPAL_LOGIN_SORT_ORDER' (this will throw an Error in a future version of PHP) in /kunden/media-promote.de/2.3.4.1_reponsive/includes/modules/content/login/cm_paypal_login.php on line 41 i tried to uninstall the paypal login module and got other errors, after reinstalling i have the same problem as before. it seems that somewhat somehow doesn't work with php 7.2 i need a little help thx stefan
  11. hello, does MultiGeoZone MultiTable Shipping work with osc responsive master on PHP 7.2.3 ?
  12. stratula

    Master Products - MS2

    Hi Tsimi, first of all thx for your help. I don't understand why the part with the manufactures_id is not in your one or is this only the lower part of the changes? br stefan
  13. stratula

    Master Products - MS2

    Hello, i try to install Master Products for 2.3 into a 2.3.1 store. I have a problem with ../includes/modules/products_listing.php It says: On or around line 128/131, change: if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) { $prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>'; } else { $prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>'; } break; case 'PRODUCT_LIST_BUY_NOW': $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; to // Master Products if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) { $prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . tep_master_link($listing['products_master_status'], $listing['products_master'], $listing['products_id'])) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>'; } else { $prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . tep_master_link($listing['products_master_status'], $listing['products_master'], $listing['products_id'])) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>'; } // Master Products EOF break; case 'PRODUCT_LIST_BUY_NOW': // Master Products if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') { $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; } elseif ($listing['products_master'] != '0') { $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . ((strpos(trim(str_replace('_', '', $listing['products_master'])), ' ') !== false) ? (trim(str_replace('_', '', $listing['products_master']))) : ($listing['products_id'])))) . '</td>'; } else { $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; } // Master Products EOF but I don't know how to include it because my product_listing.php is little different from the above! my product_listing.php: if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) { $prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>'; } else { $prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>'; } break; case 'PRODUCT_LIST_BUY_NOW': $prod_list_contents .= ' <td align="center">' . tep_draw_form('buy_now', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . '<table cellSpacing="6" cellPadding="0" width="90%"><tr><td align="right" width="25%">' . tep_draw_input_field('buyqty', '1', 'size=3 maxlength=3') . '</td><td align="center" width="75%" valign="absmiddle">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart') . '<td align="absmiddle">' . '</td></tr></table></form>'; Please can anyone assist me? THX Stefan
  14. Hello Chris, ymm is a great addon and has been working without any problems in 2.2rca. Now I build a 2.3.1 and get ymm with 4. filter not to run properly. The ymm list on the product_info.php always appears in TAB5, in addition it is necessary that something is in TAB5 so that the list will appear there. There currently are only 5 products in the shop with something in TAB5 (english -> Model List and german -> Verwendungsliste). The five products are the three Galaxy and the two graphics cards. (Galaxy None and the graphics cards are Universal Products) It also filters into the subcategories but not universal products and the box in the left column shows not uprightly according to the selection. Please can you have a look on www.motopart24.de ? - maybe there is a quick solution wich i do not see. I really read the last 13 pages on this thread more than once and didn't find the solution. br & thx Stefan
  15. stratula

    CONTRIBUTION Product Tabs

    THX Jim, that works but in includes/template_top.php greets stefan
  16. stratula

    CONTRIBUTION Product Tabs

    Hi EchoGuns, i had to update jquery for accordion_categories and now ProductTabs is no longer working like it did. The whole shopsite is now showing in the ProductTab i've seen that i'm not the first person with this problem. - do you have any idea how to solve this? http://www.motopart24.de/product_info.php?cPath=21&products_id=28 greets stefan
  17. DONE, YOU ARE THE MAN !! >> http://www.racingmedia.de many many thx greets stefan
  18. ok i have on server: ../ext/jquery/jquery-1.4.2.min.js ../ext/jquery/ui/jquery-ui-1.8.6.min.js ../ext/jquery/ui/redmond/jquery-ui-1.8.6.css and in download from jQuery: js/jquery-1.9.1.js js/jquery-ui-1.10.1.custom.js js/jquery-ui-1.10.1.custom.min.js css/custom-theme/jquery-ui-1.10.1.custom.css css/custom-theme/jquery-ui-1.10.1.custom.min.css Wich one do i have to replace with wich one?
  19. Have a look now how it looks like with the stock jquery-ui-1.8.6.css everthing seems to be alright but soon as i make changes on this file by using themeRoller at jQuery site it will mixed up. Something is different in 1.9.2 and 1.10.1 from there wich make this failure but i can't locate it in the file. I work since 2004 with osc but this jQuery is new for me so sorry for my stupidity and thx for your patience so far.
  20. Jim, please take a lock at http://www.racingmedia.de this is a fresh installed 2.3.1 with only built in the accordion_box
  21. Older Version? It is a download from last week from osc hompage. Where can i get a newer version of 2.3.1 if not from there? I checket with chrome, firefox, opera, ie >>> all the same result
  22. Here is my templete_top.php from a fresh installed 2.3.1 and it says 1.8.6 same as my files so can it be that it will not work with the newer versions? /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ $oscTemplate->buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" /> <script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script> <link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" /> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <?php echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <div id="bodyWrapper" class="container_<?php echo $oscTemplate->getGridContainerWidth(); ?>"> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?>">
  23. I changed the jQurey from a fresh installed osc and got the same result. On the jQuery site its only 1.9.2 or 1.10.1 available for download but osc has 1.8.6 !! Where can i modify the 1.8.6 and download so that it will fit for osc?? - because rename the newer once won't work with this addon. greets stefan
  24. Now the whole shop is down - shit I really do not know wich files i have to upload from the download from jQuery. There are lots of files in the download from jQuery, where can i inform myself about that mystery. greets stefan
×