Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. ecartz

    Column Width Issue

    Here's line 221 in the current version: echo '</div>'; A little more looking with blame found this commit which changed the line you described to echo '<div class="col">'; So you should just be able to update to the latest version of that page, as released in 1.0.3.0.
  3. Dan Cole

    Column Width Issue

    Happy to....should be line 221. Dan PS: Also thanks for pointing out my spelling mistake. It's always a challenge getting what's in my head to reach the screen.
  4. ecartz

    Column Width Issue

    I don't see that code in the core checkout_confirmation.php page. Could you perhaps point to where you see it? Unrelated to your question, but "log in to" is misspelled in your text.
  5. JcMagpie

    Column Width Issue

    All depends on how you are achiving the out put but this should help, "block" https://getbootstrap.com/docs/4.0/utilities/display/
  6. okay me toooo - same prob subcategries not shown in phoenix --- merge with 2.3.4 bs - at first view no different (exclude updates)
  7. Dan Cole

    Column Width Issue

    Got another coding issue I'm stuck on. I'm working on updating a payment module and want to display a message in the Payment Information area on the checkout confirmation page as shown below. I'm referring to the area shown in the alert danger color. The width is hard coded (sort of) as.... echo '<div class="col-sm-6">'; within the checkout_confirmation.php page. I want to change that to col-sm-12 so it will show full width but that seems to require a core change that I'm trying to avoid. Anyone have a suggestion to accomplish what I want with touching the core? Here is the look I'm trying to achieve. Am I stuck making a core code change? Dan
  8. vmn

    Google XML Sitemap SEO

    I could not get the running from command-line to work without the following changes. My catalog resides in a sub-folder where I also wanted to put the sitemap. I'm redirecting all traffic pointing to document root to a sub-folder called portal. The direcotry structure is: / /portal /shop Maybe this is why it did not work. in index.php after include_once('includes/application_top.php'); insert $run_env = php_sapi_name(); echo 'Environment:' . $run_env . "\n"; if ($run_env === 'cli' || $run_env === 'cgi-fcgi') { //DO NOT CHECK IP } else { if (! empty(GOOGLE_XML_SITEMAP_SECURE_IP)) { $safe_ips = explode(',', GOOGLE_XML_SITEMAP_SECURE_IP); if (! in_array($_SERVER['REMOTE_ADDR'], $safe_ips)) { header("location:http:127.0.0.1"); } } } after echo 'For your convenience here is the <strong>CRON command</strong> for your site:' . "\n\n"; replace echo "\t" . '<strong>php ' . dirname($_SERVER['SCRIPT_FILENAME']) . '/index.php</strong>' . "\n\n"; with echo "\t" . '<strong>php ' . __FILE__ . '</strong>' . "\n\n"; in sitemap.class.php before $this->base_url = $domain_name; add $run_env = php_sapi_name(); if ($run_env === 'cli' || $run_env === 'cgi-fcgi') { if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'this->savepath:' . $this->savepath . "\n"; $temp = getcwd(); $temp .= (substr($temp, -1) !== '/') ? '/' : ''; //append a slash if needed if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'temp:' . $temp . "\n"; if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'DIR_FS_CATALOG:' . DIR_FS_CATALOG . "\n"; $this->savepath = substr($temp, 0, strpos($temp, DIR_FS_CATALOG)) . $this->savepath; if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'this->savepath:' . $this->savepath . "\n"; } I noticed that categories are retrieved multiple times (in all shop languages): find $sql = "SELECT c.categories_id as cID, c.date_added, c.last_modified as last_mod replace $sql = "SELECT distinct c.categories_id as cID, c.date_added, c.last_modified as last_mod after $path = (($pos = strpos(DIR_FS_CATALOG, "googlesitemap")) !== FALSE) ? substr(DIR_FS_CATALOG, 0, -strlen('googlesitemap') - $slash) : DIR_FS_CATALOG; insert $run_env = php_sapi_name(); if ($run_env === 'cli' || $run_env === 'cgi-fcgi') { if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'path:' . $path . "\n"; $temp = getcwd(); $temp .= (substr($temp, -1) !== '/') ? '/' : ''; //append a slash if needed if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'temp:' . $temp . "\n"; if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'DIR_FS_CATALOG:' . DIR_FS_CATALOG . "\n"; $path = substr($temp, 0, strpos($temp, DIR_FS_CATALOG)) . $path; if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true') echo 'path:' . $path . "\n"; } There is some unnecessary stuff, e.g.: class MySQL_DataBase (because DB handling is done in the core). I removed all usage of the class MySQL_DataBase.
  9. Thanks ecartz, your advice was very helpful!
  10. @ecartz Thank you very much, the first part is exactly what i needed. The second part i will go on later. Studying the "ht_pages_seo" which i already activated, I found out that the next step having the <meta name= "description" content included is also defined there. So for conditions.php in english i defined: define('META_SEO_TITLE', 'Our GTCs'); define('META_SEO_DESCRIPTION', 'General Terms of Conditions (GTCs) of Philatelie Attias, CH-5620 Bremgarten AG'); as for further languages i did this too. And this works fine for title and meta in html code!!! Great! So I hope now, with these points in this topic to reduce my 4500 error pages by google to 0! -:)
  11. Yes. Be sure to use my addon instead of the worldpay module delivered with Phoenix because that still has an unfixed bug in it and you'll get blank order emails. The addon also brings people who cancel back into the checkout process, and records more info on the order history. addon: https://apps.oscommerce.com/brAIY&amp;worldpay-hosted-payments-extended
  12. BrockleyJohn

    PayPal App for osCommerce Online Merchant

    Many of the payment modules, including paypal, create an order in the preparing state before leaving checkout. If the customer returns to the choose payment page, the preparing order is deleted and thus an order number is skipped. You are right. No one sees that as a flaw.
  13. Hello Rainer @raiwa Yes the latest Phoenix 1.0.3.0 and latest Point and rewards. Strangely there is nothing changed in my checkout_payment.php after installing the addon. Installing did go well with no error messages. Will PM you a print-screen.
  14. Hello Michael @MITCH70, I suppose you are running Phoenix 1.0.3.0 and the latest Points and rewards version for Phoenix. Please post or upload your checkout_payment.php.
  15. raiwa

    KissIT Image Thumnailer

    Hello Mark @MyBookShop, Your solution is incorrect. The provided code in the instructions is correct and should be used in Phoenix and all other Bootstrap 4 based Stores. Please try again: if (tep_not_null($responsive) && ($responsive === true)) { $bs_parameters .= 'img-fluid'; } You probably had introduced a copy/paste/typo error. Before providing wrong "solutions" please post for help if something doesn't work as expected. If you experience the same problem again, please post your code (tep_image function) to see which is the error. THis is urelated to KissIt image thumbnail. Please check this first with your hosting. Then post in the general support area. Kind regards Rainer
  16. alexiscruz007

    Category Problem for update.

    this work, the language and currency have only <? in the header.php
  17. MyBookShop

    KissIT Image Thumnailer

    I had some trouble installing this, its a vanilla CE-Phoenix-1.0.3.0 new install with just this to reduce any conflict. I run 3 sites from the same hosting platform, I guess its the PHP version or a host issue the two existing Frozen CE sites had no issue in install. In Phoenix : After install the site is blank. Admin side works (I did not install on admin side) the KissIt gallery module was installed, the gallery removed. No Kissit options appeared in Admin :- Images settings. The DataBase appears not installed. Apache Log shows errors : [Sun Nov 17 15:56:05.715202 2019] [proxy_fcgi:error] [pid 24890] [client 204.12.###.###:58108] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected '\xef\xbb\xbf' (T_STRING) in /web/includes/functions/html_output.php on line 139\n' [Sun Nov 17 15:56:10.267878 2019] [proxy_fcgi:error] [pid 24884] [client 204.12.###.###:36812] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant KISS_DISABLE_UPSIZE - assumed 'KISS_DISABLE_UPSIZE' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 273\nPHP message: PHP Warning: Use of undefined constant KISSIT_MAIN_PRODUCT_WATERMARK_PLACEMENT - assumed 'KISSIT_MAIN_PRODUCT_WATERMARK_PLACEMENT' (this will throw an Error in a future version of PHP) in web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 402\nPHP message: PHP Warning: Use of undefined constant KISSIT_SHARPEN_THUMBNAIL - assumed 'KISSIT_SHARPEN_THUMBNAIL' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 290\nPHP message: PHP Warning: Use of undefined constant KISSIT_SHARPEN_THUMBNAIL - assumed 'KISSIT_SHARPEN_THUMBNAIL' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 443\nPHP message: PHP Warning: Use of undefined constant KISSIT_APPLY_BACKGROUND - assumed 'KISSIT_APPLY_BACKGROUND' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 300\n' Comparing html_output.php to the working CE install I changed the line Approx 139 back to : if (tep_not_null($responsive) && ($responsive === true)) { $bs_parameters .= 'img-responsive'; } This brought the site back to life and KissIt installed in the Admin :- Image options. I also have this error showing regularly in the Apache log and may be related. [Sun Nov 17 13:58:30.084360 2019] [proxy_fcgi:error] [pid 17091] [client 207.180.###.###:44052] AH01071: Got error 'Primary script unknown\n' I provide this post as a solution if anyone else has a similar issue to try. Mark
  18. alexiscruz007

    Category Problem for update.

    yes this works in product info.php, have a <? only. i fix with <?php
  19. Dan Cole

    Unique orders status id.

    That's awesome and works perfectly. Thanks Matt. I appreciate it. Dan
  20. ecartz

    Unique orders status id.

    tep_db_query("INSERT INTO orders_status (orders_status_id, language_id, orders_status_name ) SELECT MAX(orders_status_id) + 1, '1', 'Waiting for payment' FROM orders_status"); I believe that works. Test of course. First by running just the select in phpMyAdmin or similar and then try to write with it if the results are what you expect.
  21. Dan Cole

    Unique orders status id.

    I'm looking to update an old payment module Interac Email Money Transfer and it adds an orders status id to the database to set up an order status of "Waiting for Payment". Unfortunately it just adds the orders_status_id of 4 in a table update as follows: tep_db_query("insert into orders_status (orders_status_id, language_id, orders_status_name ) values ('4', '1', 'Waiting for payment')"); In my case I already have an orders_status_id of 4 in my database so it fails. Obviously I can easily fudge the id in my case but if I'm going to upload the contribution back to the community it'll cause problems for others so I'm wondering if there is a simple way to just have it add a unique id to the database or if I need to query the database for the last added id and go from there? That too is not a problem but this has me wondering if that is the best/simplest approach. Suggestions anyone? Dan
  22. Yesterday
  23. cables24h

    PayPal App for osCommerce Online Merchant

    No one here see an order go from 100............ suddenly it is same order........... but contain a new id: like orID 103............ No one see that as a flaw? Just asking here!
  24. cables24h

    PayPal App for osCommerce Online Merchant

    I say here i might loose the point......................... But i think this is exactly where all this conversation bounces to. I might be wrong here................. I might be right. But i think it situates the issue. Orders are go from 1 ( initial order)...............while processing.............. to order 3 in our DB That is a strange behavior and prob is related to the initial question asked. ( and i think more prob's).
  25. cables24h

    PayPal App for osCommerce Online Merchant

    I agree 100% if this topic try to raise: orders table, and while the order is processed, the shop get like 3 times a "update".And the update simply skip from order id 1 to order id 3. When after look in the DB.............. you will not find an order ID 1 or 2. Just 3. I think this is not right. but i might loose here the point!
  26. cables24h

    PayPal App for osCommerce Online Merchant

    Is most checkouts not count on the payment gateway sequence? IPN is where oscommerce most count on? Not sure if that should be handled via application_top.php It definitely would result in a "Headers already sent". Curious about this handling.
  1. Load more activity
×