Jump to content

Pelvis

Members
  • Content count

    62
  • Joined

  • Last visited

Everything posted by Pelvis

  1. Hallo Community! When we add a new language, in the database some tables (eg products_description) get duplicated ids. For example we have for the same products_id values for both English and german ..the thing is that since in products_id is a Primary key,this seems to violate the uniqueness of the key and generally, Sql throws an error if we try to add a new row with an existing id. So the question is how can we do the same thing (duplicated rows for two ids), in tables apart from those that change when we add a language.
  2. Thank you so much! now I have understand how it works :-)
  3. Hello Everybody ...short question: My Inline code looks as follow: $cashondelivery_cost = "0.50"; ------- I want to convert this to dynamic, I mean I want to get the value "0.50" from the Db. The value "0.50" is stored on table "configuration" row called "configuration_value" of the key "CASHONDELIVERY" Code shown like this but I can not get anything: $cashondelivery_cost = tep_db_query("SELECT configuration_value from configuration where configuration_key='CASHONDELIVERY' "); Any Help :-) Thanks!
  4. I use OSCommerce v2.2 and what I want is when the user visits a page that redirects him to login after a successful login to be redirected to the page that initially visited. For example, the user receives an email that prompts him to visit the page review.php he clicks the page and gets redirect to login.php. After the login I want him to be redirected to review.php OSCommerce seems to have this functionality at login.php if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } And at the review.php file, the snapshot is set when the user is not logged in. $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); but then in application_top.php the following code seems to destroy the navigation snapshot // navigation history if (tep_session_is_registered('navigation')) { if (PHP_VERSION < 4) { $broken_navigation = $navigation; $navigation = new navigationHistory; $navigation->unserialize($broken_navigation); } } else { tep_session_register('navigation'); $navigation = new navigationHistory; } $navigation->add_current_page(); So before I fix this with my own session variables I would like to use the implemented functionality. Has anyone experienced the same problem and came up with a solution to the default functionality? P.S The PHP version of the site is 7.2 Thanks for your time :-)
  5. Thanks a lot! will try this
  6. 2 simple questions (of course i have searched and couldn find an answer). 1. If you have instaled b2b or the simplefied version of b2b and iosc-mobile, is B2B working in iosc mobile when somebody visit the site from a mobile phone I mean the prices did they apear as in the desktop version or must i install the b2b as a separet version for iosc-mobile again? Or a link where I can read something about that. 2. General question does this iosc-mobile contrib affect only to the design e.g. css or do you have to install all the contributions that the desktop shop have for to the iosc-mobile version again. Or a link where I can read about a small explantetion for how this contrib works.
  7. Thanks !!!! You must delete also in the Table "customers" the column "customers_guest" THank you for the fastest Help Reiner!!
  8. Help Reiner (Brauche Bitte deine hilfe) I meesed PWA up ...did something wrong (i haveOSC in 2 folders the second is a Backup but with the same DataBase) I have upgrade the files from 2.2r2 to 2.3 in one folder and did the same in the other folder and then uninstal and instal and i forgat to refresh in the other folder and click to uninstall again (in the Database it was uninstalled) Now when I go in admin to modules->login->Install->Login without Account Form 1060 - Duplicate column name 'customers_guest' alter table address_book add column `customers_guest` INT(1) NOT NULL DEFAULT '0' AFTER `customers_id` ----- I checked the Database at the Table "address_book" there is only one Column with the name "customers_guest" but in the Table Customers exists another one column with the same name "customers_guest".
  9. @@dominic Did the standard Tetimonials from Burt have this Problem? do you know?
  10. I have try everything and can not fix. The question is why the html_text are displayed with no problems in admin (at the right side of the page) and not on the Frontpage Box. I saw the code but I can;t transfer it at th FrontPage. Thanks for trying.
  11. Hallo Dominic! I found a "bug" in this Contib which I trying to fix for more than 5 Days but it is impossible I can't! (I am not a programmer) I use OSC about 11 Years and I learned a lot of things fixing this and that by my self. and with the help of the people of the OSC community. in my Language witch is Greek, I use utf8 encoding and everything is ok in the shop. The main Text in the Fontend displays a "utf8 Replacement character" it has something with the rendering of php or something like that. In the Database looks everything fine the characters are displayed o.k. but not in the Frondend. Put the follow text in a second Language in your database in the Table "testimonials_html_text" the character encoding of the text Tables must be set to "utf8_unicode_ci" and look in the Frontend how it is displayed. ================== testimonials_html_title: Καλά Παιδιά ================== testimonials_html_text: Άψογη εξυπηρέτηση, ασυναγώνιστη ποιότητα και πάνω από όλα καλές τιμές. ================== testimonials_name: Γιώργος Αντωνίου ==================== (See Attachement picture) https://dl.dropboxusercontent.com/u/17918482/testimonials_bug.jpg
  12. Pelvis

    [Addon} Modular Front Page

    Solved! Instruction for Others with the same Issue: In Catalog/includes/modules/content/front_page/templates/cm_fp_new_products.php Find This: <div class="row"> And Replace with this: <div class="row" style="display:-webkit-box; display:-webkit-flex; display:-ms-flexbox; display:flex; flex-wrap:wrap;"> -- In Catalog/includes/modules/content/front_page/templates/cm_fp_categories_images.php Find This: <div class="row"> And Replace with this: <div class="row" style="display:-webkit-box; display:-webkit-flex; display:-ms-flexbox; display:flex; flex-wrap:wrap;">
  13. Pelvis

    [Addon} Modular Front Page

    About the Categories Images Content Module. I had the OSC Edge before October with the Filenames. I have now upgrade it to the Latest with Depricated Filnames/Paths and have this Gap. I had the same Isue before and have fix that adding the folowing string in CATALOG/includes/modules/content/front_page/templates/cm_fp_categories_images.php ----- <div class="thumbnail equal-height-categories-images"> ----- and adding the folowing class in user.css .thumbnail .categories-images { height: 30px; padding: 1px; } ---- With the Latest Edge with Depricated Filnames/Paths i can't fix that. See atachment Photo https://dl.dropboxusercontent.com/u/17918482/osc_edge_gap.jpg
  14. Pelvis

    Display Tax Info V3.0

    Thanks! Solved was my mistake Confusing folders and I put a file that had to come to the "front/modules" folder in "admin/modules" folder to. I had inside the folder /catalog/admin/includes/modules/cfg_modules/ 2 files 1. st_tax_below_price.php (this is only needed in "front/modules" folder and was causing the error) 2. cfgm_store.php Thanks !
  15. Pelvis

    Display Tax Info V3.0

    Yes I Have Installed that before?
  16. Pelvis

    Display Tax Info V3.0

    I installed the Version 3.4 and Become the following Error (in Version 3.3 everything was o.k.) Warning: include(includes/languages/english/modules/cfg_modules/st_tax_below_price.php) [function.include]: failed to open stream: No such file or directory in /users/folder/www/catalog/admin/includes/classes/cfg_modules.php on line 28 Warning: include() [function.include]: Failed opening 'includes/languages/english/modules/cfg_modules/st_tax_below_price.php' for inclusion (include_path='.') in /users/folder/www/catalog/admin/includes/classes/cfg_modules.php on line 28 Fatal error: Class 'st_tax_below_price' not found in /users/folder/www/catalog/admin/includes/classes/cfg_modules.php on line 31 P.S. The Verson is OSC Edge the Newest with Depricaded names-paths ...
  17. Where Can a store owner find the History of the Changes or what in the BS every time new is. A friend of mine told me that in the new Release Header Tags and Testimonials Standard is also in the zip file and you don't have to install it as an addon where can I find that is somewhere a History of Releases ore Mayor Changes Like the Header Tags addon that are implement to the new release?
  18. Hallo Juanna Its a wonderful addon I mad your Instructions on The cm_footer_account.php I see the Button Disabled but the Button is not working (Click on Disable and nothing happens) After that I thought that you forget something or make a mistake in the code and I changed the code (marked with Red Color) but I can Fix it Nothing happens Again Here is the Changed Code: --------- function enable() { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'True' where configuration_key = 'MODULE_THIS_MODULE_STATUS'"); $this->enabled = (MODULE_CONTENT_FOOTER_ACCOUNT_STATUS == 'True'); } function disable() { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'False' where configuration_key = 'MODULE_THIS_MODULE_STATUS'"); $this->disable = (MODULE_CONTENT_FOOTER_ACCOUNT_STATUS == 'False'); } --------
  19. Pelvis

    Display Tax Info V3.0

    Maybe this time I am more Lucky and somebody will help I want to display the Product Price Like this: (in the middle the calculated Tax amount) Preis: 5,00€ +19%MwSt.: 0,95€ Total: 5,95€ I Have done This (In Germany the vat is19%) and it displays the vat also the 19 Preis: 5,00€ +19%MwSt.: 19,00€ Total: 5,95€ Here is the Code: ----------- function display_price($products_price, $products_tax, $quantity = 1, $show_tax_info = true) { if(DISPLAY_PRICES_NET_GROSS == 'true' && DISPLAY_PRICE_WITH_TAX == 'true' && $products_price > 0){ return '' . $this->format($products_price * $quantity . '<br /><small>', true, null, null, $products_tax, $show_tax_info) . $this->format($products_tax) . '<br />' . $this->format($this->calculate_price($products_price, $products_tax, $quantity)) . '</small>'; } else{ return $this->format($this->calculate_price($products_price, $products_tax, $quantity)); } } ----------- I don't know how to fix this part: . $this->format($products_tax) Would be happy if somebody could help
  20. Pelvis

    Display Tax Info V3.0

    I found the error In the data base at the Table "zones_to_geo_zones" the "zone_id" of the default zone must set to "0" it was set to "1" that "1" was giving the wrong tax calculation. If someone has the same problem the solution is set in the Table "zones_to_geo_zones" the "zone_id" to "0"
  21. Pelvis

    Display Tax Info V3.0

    What's Happening her With 19% Tax in Germany for a Product that Cost 5.00 EURO Net Price When in Configuration Display Prices with Tax "False" everything is fine I see 5.00 EURO. But when I Turn Display Prices with Tax "True" I see the amount of 16,28. It has nothing to do with the Modul when I Turn the Module off I see the same wrong number 16.28 I post it her because of the strange Tax amount under the price see the attached Pictures. https://www.dropbox.com/s/xrnfyxd6iu75zfl/Display%20Prices%20with%20Tax19%25_True.jpg?dl=0 https://www.dropbox.com/s/pu776n1q0r9hjn8/Display%20Prices%20with%20Tax19%25_False.jpg?dl=0
  22. Hallo Rainer Can You Check Please hier :-) Something seams to be wrong with the Versions and the time that you have Upload the Packages Holiday-Promotional Message BS 1.2 -> are from Juni (old) Version 1.1 -> are from Juli (New) And the Data inside if you Look at the version 1.0.zip the files are from Juli (new) if you look at the newest version 1.2.zip the files are from Juni also Older ? What's the newest package with the Corrections from the support thread 1.0 or 1.2 I think 1.0.zip is newer!
  23. Englisch The Problem was in the German Language File: Catalog/includes/languages/german/modules/content/footer/cm_footer_popup.php Find this: ------------- <?php <?php define('MODULE_CONTENT_FOOTER_POPUP_TITLE', 'Info Popup'); define('MODULE_CONTENT_FOOTER_POPUP_DESCRIPTION', 'Das Info Popup hinzufügen'); ------------- and Replace with this: ------------- <?php define('MODULE_CONTENT_FOOTER_POPUP_TITLE', 'Info Popup'); define('MODULE_CONTENT_FOOTER_POPUP_DESCRIPTION', 'Das Info Popup hinzufügen'); ------------- German Das problem lag in der Deutschen Sprachen datei: Catalog/includes/languages/german/modules/content/footer/cm_footer_popup.php Stadt dies (was die Fehlfunktion verursacht) ------------- <?php <?php define('MODULE_CONTENT_FOOTER_POPUP_TITLE', 'Info Popup'); define('MODULE_CONTENT_FOOTER_POPUP_DESCRIPTION', 'Das Info Popup hinzufügen'); ------------- soll man mit dieses ersetzen: ------------- <?php define('MODULE_CONTENT_FOOTER_POPUP_TITLE', 'Info Popup'); define('MODULE_CONTENT_FOOTER_POPUP_DESCRIPTION', 'Das Info Popup hinzufügen'); ------------- Der Fehler war der zweite "<?php"
×