Jump to content

ecartz

♥Ambassador
  • Content count

    2,157
  • Joined

  • Last visited

  • Days Won

    8

ecartz last won the day on November 21

ecartz had the most liked content!

7 Followers

Profile Information

Recent Profile Visitors

38,745 profile views
  1. It sounds like it's have a problem generating the PayPal menu in admin. That file should look something like https://github.com/gburton/CE-Phoenix/blob/master/includes/apps/paypal/admin/functions/boxes.php Yours seems to be claiming that it has two lines that say function app_paypal_get_admin_box_links() { Maybe go look at the file and see if you really have two lines?
  2. ecartz

    can't login in shop admin

    If the problem is the password in the administrators table, just delete the whole row. Note that sometimes the problem is the htpasswd. If that's it, move out the .htaccess file and .htpasswd_oscommerce file from the admin directory and recreate them again afterward.
  3. ecartz

    PayPal App for osCommerce Online Merchant

    Why? You don't process the payment until after checkout_confirmation. I.e. you wouldn't send the order number to the payment processor until after checkout_confirmation. The checkout payment page doesn't need an order number, as it only collects data from the customer, not the payment processor.
  4. ecartz

    install 2.3 modules to Phoenix?

    The change was here. define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); Which if we hardcode paths in it would become define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', 'images/icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', 'includes/functions/'); define('DIR_WS_CLASSES', 'includes/classes/'); define('DIR_WS_MODULES', 'includes/modules/'); define('DIR_WS_LANGUAGES', 'includes/languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); Replace occurrences of the values on the left (without quotes) with the values on the right (with quotes retained). If you have two hardcoded strings together, e.g. 'images/' . 'icons/' You can merge them like 'images/icons/' That makes no functional difference, but it may make them easier to read.
  5. 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?
  6. 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.
  7. 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.
  8. 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.
  9. ecartz

    How do I reset a forgotten admin password?

    Are you using the htpasswd? You might need to move the .htaccess and .htpasswd_oscommerce files out of the admin directory (move them rather than deleting them in case you need to move them back).
  10. Does adding a define('META_SEO_TITLE', 'Our GTCs'); help? May require ht_pages_seo to be installed in admin > Modules > Header Tags (if it is not already). You may also want to look at how ht_product_title.php works and adapt for your use. I'm thinking of copying that file to ht_heading_title.php, changing the class name and $code to ht_heading_title, replacing all instances of PRODUCT_TITLE with HEADING_TITLE, and replacing the contents of the execute function with something like function execute() { global $PHP_SELF, $oscTemplate; if (in_array(basename($PHP_SELF), [ 'attias_beratung.php', 'attias_impressum.php' ])) { $oscTemplate->setTitle(HEADING_TITLE); } } Adjust the list of file names as necessary for your shop. Remember that you have to install the module in admin before it will do anything. You want it to have a low sort order number, as you want it to act before other modules. And if it wasn't clear, change things like $this->title = MODULE_HEADER_TAGS_PRODUCT_TITLE_TITLE; to look like $this->title = MODULE_HEADER_TAGS_HEADING_TITLE_TITLE; throughout the file.
  11. Well, it's language specific, so I'd check the part of the language files that specifies that <htmldir="ltr" lang="de"> My guess is that you're missing a space in define('HTML_PARAMS', ' dir="ltr" lang="de"'); in the german.php file. Note that there should be a space before the dir entry. Your browser doesn't know what an htmldir tag is, so it assumes that it's part of the body. So your browser implicitly creates the html, head, and body tags. Then it removes the ones that template_top.php created.
  12. ecartz

    Weekly sales reporting in admin help needed

    Find the code $months_query = tep_db_query( "SELECT DISTINCT( monthname( date_purchased ) ) AS month, month( date_purchased ) AS m FROM " . TABLE_ORDERS . " WHERE date_purchased LIKE '" . $years['y'] . "-%' ORDER BY date_purchased DESC" ); while ( $months = tep_db_fetch_array( $months_query ) ) { $net_total_query = tep_db_query( "SELECT SUM( value ) AS total FROM orders_total ot, orders o WHERE ot.orders_id=o.orders_id AND year( o.date_purchased ) = " . $years['y'] . " AND month( o.date_purchased ) = " . $months['m'] . " AND ot.class = 'ot_subtotal'" ); $net_total = tep_db_fetch_array( $net_total_query ); $shipping_total_query = tep_db_query( "SELECT SUM( value ) AS total FROM orders_total ot, orders o WHERE ot.orders_id=o.orders_id AND year( o.date_purchased ) = " . $years['y'] . " AND month( o.date_purchased ) = " . $months['m'] . " AND ot.class = 'ot_shipping'" ); $shipping_total = tep_db_fetch_array( $shipping_total_query ); $tax_total_query = tep_db_query( "SELECT SUM( value ) AS total FROM orders_total ot, orders o WHERE ot.orders_id=o.orders_id AND year( o.date_purchased ) = " . $years['y'] . " AND month( o.date_purchased ) = " . $months['m'] . " AND ot.class = 'ot_tax'" ); Change to $months_query = tep_db_query( "SELECT DISTINCT( YEARWEEK( date_purchased ) ) AS month, WEEK( date_purchased ) AS m FROM orders WHERE YEAR(date_purchased) = '" . $years['y'] . "' ORDER BY date_purchased DESC" ); while ( $months = tep_db_fetch_array( $months_query ) ) { $net_total_query = tep_db_query( "SELECT SUM( value ) AS total FROM orders_total ot, orders o WHERE ot.orders_id=o.orders_id AND year( o.date_purchased ) = " . $years['y'] . " AND WEEK( o.date_purchased ) = " . $months['m'] . " AND ot.class = 'ot_subtotal'" ); $net_total = tep_db_fetch_array( $net_total_query ); $shipping_total_query = tep_db_query( "SELECT SUM( value ) AS total FROM orders_total ot, orders o WHERE ot.orders_id=o.orders_id AND year( o.date_purchased ) = " . $years['y'] . " AND WEEK( o.date_purchased ) = " . $months['m'] . " AND ot.class = 'ot_shipping'" ); $shipping_total = tep_db_fetch_array( $shipping_total_query ); $tax_total_query = tep_db_query( "SELECT SUM( value ) AS total FROM orders_total ot, orders o WHERE ot.orders_id=o.orders_id AND year( o.date_purchased ) = " . $years['y'] . " AND WEEK( o.date_purchased ) = " . $months['m'] . " AND ot.class = 'ot_tax'" ); See if that does what you want for that page. If so, change the other query the same way $orders_query = tep_db_query( "SELECT * FROM orders WHERE YEAR( date_purchased ) = " . (int)$_REQUEST['year'] . " AND YEARWEEK( date_purchased ) = '" . (int)$_REQUEST['month'] . "' ORDER BY date_purchased DESC" );
  13. Did you install the module at admin > Modules > Content? To see modules that aren't installed, you have to click the Install button in the upper right.
  14. ecartz

    HoneyPot Captcha

    What core changes did you make? As best I can see, the create_account link typically appears in content modules. You can already disable those in admin without core changes. I strongly suspect that there is a way to do at least most of this without core changes now. The thing that I might change, possibly not as part of my current project, would be to change what pages redirect to the login page. That would make it easier to install a purchase without account App. I.e. I'm thinking about moving the block of code that says // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link('login.php', '', 'SSL')); } into a hook file. I'm pretty sure that existing hook calls can be used.
  15. ecartz

    HoneyPot Captcha

    Yes. The relevant line from install/oscommerce.sql is INSERT INTO countries VALUES (222,'United Kingdom','GB','GBR','1'); That would have to be changed to make UK work as the key.
×