Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. JcMagpie

    Making Phoenix Invoice look a bit better

    I don't think that the core code makes any distinction between a customer if the company name is used or not so you would need to do this as a mod. 1) Simple opton have two sections in your stock terms file so no code change required. 2) Add a simple "if" statment to check if company name sothing like "if ($company == 'true')" and if used show second terms.
  3. raiwa

    install 2.3 modules to Phoenix?

    Most modules will need the following updates: replace the class constructor name (first function in the module) to "__construct" for PHP 7 compatibility replace the path constants like "DIR_WS_INCLUDES" to hardcoded paths like "'includes/' FOr to know which have been removed compare the "includes/configure.php" files from your old store to the Phoenix files. The definitions which are not in Phoenix any more need to be replaced replace all database table names like "TABLE_CONFIGURATION" with hardcoded real names "'configuration'" if the module produces any html output, it might need to be updated to bootstrap 4. if the module uses any jquery script, it must be injected now in the footer script area. compare to some ht modules how it is done there Best is to have al look in the supplied core modules and compare
  4. Today
  5. I'm sorry if this has been asked before, but after searching through 50 pages my ADD took over so here I am asking; sorry. I have not touched osCommerce since 2.3.0. I do understand that the modules were not written for Phoenix, but in order to have a good shop one needs various shipping modules (ex. FedEx, UPS, Purolator, Canada Post, USPS, DHL, etc) as well as a few other modules (ex. choose quantity on product info page among others). I have not yet been able to find any for Phoenix. Is it possible to install some of the older ones into Phoenix? I don't mind tinkering with the code, but I want to check the possibilities before starting to tinker. Some of the screenshots I have seen for modules I have installed you can clearly see activated modules that I cannot seem to find for Phoenix anywhere. Thanks so much in advance. Phoenix v1.0.3.0 (Semi Fresh Install)
  6. JcMagpie

    Making Phoenix Invoice look a bit better

    Take your constant shilling to another thread 😂 It's of no intrest here.
  7. Heatherbell

    Making Phoenix Invoice look a bit better

    Glad you found Phoenix - you would be advised to join the Phoenix Club and become a supporter there - linked below.
  8. Lochlann

    Making Phoenix Invoice look a bit better

    Excellent find these were. Thanks so much. I'm new to Phoenix (haven't created any osCommerce sites since 2.3.0). The only thing that I think could make the invoice better is a call to display a different "NOTICE" & "TERMS" at the bottom "if" the customer entered a "Company Name" in their account otherwise it would just show the default "NOTICE" & "TERMS".
  9. Xeretha

    adding to specials and whats new boxes

    Thanks for the help, friends.
  10. raiwa

    KissIT Image Thumnailer

    1. paste again the whole tep_image function into your html_output.php 2. if you get again the same error, upload your file here (without any modification, comment etc.) 3. try with my modified file: html_output.php I had a look on the source code of your store index page and got the following wrong html: title="Shiny Red Apples" alt="Shiny Red Apples" class=img-fluid" card-img-top" /> on my test store I get this: title="Shiny Red Apples" alt="Shiny Red Apples" class="img-fluid card-img-top" /> Do you see the wrong placed double quotes in the image class? You must have applied a wrong modification.
  11. 14steve14

    Weekly sales reporting in admin help needed

    I will take a look at this when time allows later this week. Thanks for the input.
  12. MyBookShop

    KissIT Image Thumnailer

    Thank you for your response Raiwa. The cut and paste is fine, I have two Frozen sites perfect. And now a new site. Installation showed all green ticks for compatibility. As I said the original code installed with this module leaves me with a blank website. As stated this is a vanilla install with just this mod. The above prior changes gave me back my website with images but the images were stretched horizontally. -------------------------------------- I have now changed code to this, and it gives me my site with the images not stretched but also not centered on the main page only (index.php) the (product_info) pages appear to be centered. ... require_once 'includes/modules/kiss_image_thumbnailer/classes/Image_Helper.php'; $attributes = array( 'alt' => $alt, 'width' => $width, 'height' => $height ); $image = null; if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } $bs_parameters = ' class=img-fluid"'; // if (tep_not_null($responsive) && ($responsive === true)) { // $bs_parameters .= 'img-fluid'; //not working // $bs_parameters .= 'img-responsive'; //works // } -------------------------------------- I'm no coder. Rawia I'm just trying to get this plugin to work on my config. I'm not saying this is a solution, just that it brings the site back for me. It appears to me that some parameters are not being added together or passed through to other functions or are the incorrect type, but the log shows no such error. As stated I'm trying to tell you what I'm doing to get my site up in case anybody else has this trouble and diagnose if there is a problem that only manifests on some configs. I really would appreciate any help, can provide you (Raiwa) with site access if you like, Thankyou. Mark http://www.143books.com.au/index.php
  13. ecartz

    very strange session variable behavior

    Just some troubleshooting thoughts to give you some places to check. Are you using the same includes/application_top.php for all pages? Phoenix uses a different name for the session ID than older versions of osCommerce did. Is the session ID in the URL or do you have a cookie? Have you checked the cookie to see what values it has? In general, have you viewed cookies on each page load to see what's happening with them? Have you tried disabling cookies (in your browser, with Force Cookies set to false in admin) to see if you have the same behavior? Have you checked for weird things like Apache mod_rewrite rules? Have you tried making the site all https? Have you checked for goofball things like characters before the opening <?php tag in the file? The infamous byte order mark is an invisible example that you could see with a hex editor. Check files included before the session starts. Does this happen in every browser? Or just one? If you are using Firefox, have you tried Web Developer tools like Web Console and Network while navigating the site? Have you checked your error logs? Have you checked your configure.php values to make sure that they match each other for HTTP and HTTPS?
  14. Supertex

    PayPal App for osCommerce Online Merchant

    Yes, generally I believe the order number is created after the transaction is completed. However with PayPal it requires an order number to be generated prior to the transaction completion... As near as I can tell, and perhaps Ponce de Leon can weigh in here, but what you're seeing is entirely the result of dealing with PayPal. For instance, when using authorize.net, there is no order number transmitted to authorize.net. no actual order exists until the transaction is complete. At that time the customer basket becomes an order. When you see the order number skipping, it is because the customer is changing the contents of his cart after reaching either the payment module and choosing PayPal or the final confirmation page. In my case I have altered the code on the orders page not to show orders with the status assigned to PayPal pending orders. So my orders page only shows completed transactions, and there is always a gap in the numeric sequence.
  15. So we are in the midst of adjusting to Phoenix, building out my site onto the engine. It's a very big educational site that began a long development process years ago with an oscommerce 2.2 core. A few years ago we built out a Bootstrap 3 presentation layer. Now we are putting in the new engine and and adjusting to Bootstrap 4. It's fun! We have run into an issue that has us confused, though. It doesn't make any sense at all. We log in at index.php and when we return to home the navbar tells us we still need to 'login'. It doesn't look like login was successful. $_session['customer_id'] is not available to the page. However, if we travel to products_info.php, navbar tells us we are actually logged in and $_session['customer_id'] is now available. Then if we go to account.php it redirects us to 'login.php' but when we get there $_session['customer_id'] is now available again! If you can figure this out you will have my eternal gratitude. Best.
  16. Dan Cole

    Column Width Issue

    Thanks guys....I decided to just update the page to the version, as Matt suggested, since it also added some selectors that I could style. Dan
  17. Yesterday
  18. 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
  19. 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.
  20. 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.
  21. 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/
  22. okay me toooo - same prob subcategries not shown in phoenix --- merge with 2.3.4 bs - at first view no different (exclude updates)
  23. 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
  24. 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:"); } } } 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.
  25. Thanks ecartz, your advice was very helpful!
  26. @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! -:)
  27. 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
  1. Load more activity