Jump to content
Latest News: (loading..)

All Activity

This stream auto-updates     

  1. Past hour
  2. If there are no other reasons why we shouldn't, maybe within function get_product_name($pID){ right after line: $pName = $this->strip( $result['pName'] ); we can add something like: $pName = str_replace("-p-", "", $pName); $pName = str_replace("-c-", "", $pName); $pName = str_replace("-m-", "", $pName); $pName = str_replace("-pi-", "", $pName); $pName = str_replace("-by-", "", $pName); $pName = str_replace("-t-", "", $pName); $pName = str_replace("-a-", "", $pName); $pName = str_replace("-au-", "", $pName); $pName = str_replace("-pr-", "", $pName); $pName = str_replace("-pri-", "", $pName); $pName = str_replace("-f-", "", $pName); $pName = str_replace("-fc-", "", $pName); $pName = str_replace("-fri-", "", $pName); $pName = str_replace("-fra-", "", $pName); $pName = str_replace("-i-", "", $pName); $pName = str_replace("-links-", "", $pName); ................ which would remove the phrases that have no SEO benefits and may interfere with the SEO functionality . Thanks!
  3. I saw the RewriteRules (-by-, -au-, -links-, etc.) in the .htaccess file. Wouldn't it be a better idea to check for these key-phrases within the product name and remove them before the SEO link is generated? I took a quick look and couldn't find the code where the str_replace(" ", "-",... command is executed for product names. if you can point it out to me that would be helpful. Thanks!
  4. That makes sense and I was guessing that it has to be a kind of a key phrase. Then I guess I would simply get rid of it. Thanks.
  5. Today
  6. For a real store, especially with an exclusive product, the information content module is very important. An important role is played by the Article Manager, but it has not been updated for a long time and is not very well connected with the content of goods. A blog is a convenient and good solution.
  7. Hi, Already set up a Frozen store to compare both. Think i wil find the solution in there. Thanks for your time and work !!
  8. raiwa

    Help Updating Module

    In function keys there is the comma missing after sort order constant
  9. Hi everyone, I have installed the Modular Checkout pages addon so that I can add a modal info box to the products section of checkout_confirmation.... I have go it to work.... sort of ish... I include below my Modified includes/modules/content/checkout_confirmation/cm_cc_products.php file ... <?php /* $Id$ Modular Checkout by @raiwa info@oscaddons.com www.oscaddons.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 osCommerce Released under the GNU General Public License */ class cm_cc_products { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function __construct() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_TITLE; $this->description = MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_DESCRIPTION; $this->description .= '<div class="secWarning">' . MODULE_CONTENT_BOOTSTRAP_ROW_DESCRIPTION . '</div>'; if ( defined('MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_STATUS') ) { $this->sort_order = MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_SORT_ORDER; $this->enabled = (MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_STATUS == 'True'); } } function execute() { global $oscTemplate, $order, $currencies, $order_total_modules; $content_width = (int)MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_CONTENT_WIDTH; ob_start(); include('includes/modules/content/' . $this->group . '/templates/tpl_' . basename(__FILE__)); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Products information', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_STATUS', 'True', 'Should this module be shown on the checkout confirmation page?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_CONTENT_WIDTH', '12', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_SORT_ORDER', '200', 'Sort order of display. Lowest is displayed first.', '6', '1', now())"); * tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Modal Name', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_BUTTONNAME', 'Latest Updates', 'Name for your custom box', '6', '8', now())"); * tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Modal class', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_BUTTONCLASS', 'btn btn-primary', 'class', '6', '8', now())"); * tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Modal Box title', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_TITLE', 'Information', 'title', '6', '8', now())"); * tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Modal Box content', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_BODY', 'put your info here', 'modal content', '6', '8', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_STATUS', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_CONTENT_WIDTH', 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_SORT_ORDER' * 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_BUTTONNAME', * 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_BUTTONCLASS', * 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_TITLE', * 'MODULE_CONTENT_CHECKOUT_CONFIRMATION_PRODUCTS_MODAL_BODY'); } } I have added an '*' to the start of each line I have added ... as I said the modal part works my problem is that when I navigate to the Modules>Content>Products section of admin the extra fields I have created do not show up, essentially it looks identical to how it did before I added the extra lines of test. Likewise, when I save the changes to the module the default text that I have assigned to the fields does not show up... I only get the placeholders/variables showing up I have uninstalled and reinstalled the module a number of times, there is obviously something I am missing in modifying this file, any help would be appreciated.
  10. It's like I stated, the link you posted points to the EDGE master which has been updated to BS4 and has nothing to do any more with your version from 2/2017: <!-- bs 4.2.1 --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> Discount code BS will not work with BS 4, only BS3. If you wish to test with a clean unmodified version, please use FROZEN: https://github.com/gburton/Responsive-osCommerce/releases/tag/2341-Frozen This will work and then you can compare to your real store to find the problem.
  11. Here is my template_top <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 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> <html<?php echo HTML_PARAMS; ?>> <head> <meta charset="<?php echo CHARSET; ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <!-- bs 4.2.1 --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> <!-- fa 5.7.1 --> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> <link href="custom.css" rel="stylesheet"> <link href="user.css" rel="stylesheet"> <?php echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <?php echo $oscTemplate->getContent('navigation'); ?> <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <?php require('includes/header.php'); ?> <div class="row"> <div id="bodyContent" class="col order-xs-1 order-md-6">
  12. Jack_mcs

    Fake accounts

    As your host to enable ipset. It allows blocking large amounts of IP's at no cost to the server load. We have the temporary limit set to 20,000. There's about 3,000 currently blocked and the servers load hasn't changed at all.
  13. This addon uses certain characters to identify the page. For example, -p- is a product page and -c- is a category page. The -by- is used to identify All Product pages. So when that is used in the url, the code thinks it is a link to an All Products page and tries to create the url for it, which is invalid. The word by is not useful for SEO and will be ignored by the search engines. If you want it for your customers, you would have to change the code in this addon to use a different identifier.
  14. MrPhil

    My database do not work?

    osC 2.3.4? You're running an obsolete version. The proper one to run is "Frozen" (plus patches) -- see links below in my signature. PHP 7.2 is way too up-level for osC 2.3.4. Did your host just upgrade your server's PHP? It's not good to roll back for long to an unsupported PHP version (e.g., 5.4), but you might ask if there is a way for you to do that. See if your server control panel has something like "MultiPHP Manager" or the like, to let you select your PHP. If you can roll back PHP to the point where your store resumes working, use the grace period gained to upgrade to Frozen and transfer your store's data over. Long term, you should be running PHP 7.1 (or higher), the current lowest supported PHP version, which means going to Frozen. There is never a need to re-enter your store's data. You can always migrate the database content to the new layout (schema). It's a fairly simple (although tedious) job. Your configure.php files, in their database section, will tell you the name of the database you're using. You can then use your server control panel to delete the unused one, if you wish. Do NOT post your configure.php file content here without first removing or ***-ing out your database information!
  15. oh3gdo

    My database do not work?

    Oscomerce 2.3.4 === Some information HTTP Server: Apache Database server ============== Server type MySQL Server connection SSL is not being used Server version 5.6.43 MySql Community Server (GPL) Protocol vesion 10 User probyte@localhost Serve charset : UTF-8 Unicode (utf8) Web server =============== Database client version libmysql 5.1.73 PHP version 7.2.7 phpMyAdmin Version information 4.8.3 === When I try to connect to my oscommerce webshop, I get : Unable to connect to database server! I can connect to my main webpage, it works normally. I can use probyte.fi/cpanel, normally and also FTP. I have tried to correct database (probyte_db), but no help. There is also probyte_tietokanta (probyte database), but I don't know which is this. Maybe old database? It is 366MB large. How I know which database is mine? I mean can I remove that database. == What I can do? I have got always good help here- I have used Oscommerce almost 15 years. It has always worked well. I made a new Oscommerce last December. I took about two-three weeks! I must to do all my product again. Regards oh3gdo
  16. raiwa

    Wholesale (SPPC lite)

    I'm sorry, I can't give you further help for this within the support for Wholesale BS. I would need more details and code examples you are using. It is not possible in this support thread.
  17. davinci8

    Wholesale (SPPC lite)

    Your module works perfect. Thank you for that. I am still in a kind of problem with the minimum amounts of products wanted for the wholesale function, unwanted for the retail function. ( I have installed your suggestion ' minimum quantity per product', and al goes fine). So i thought to redirect to a 'normal' shop for retail selling. (My problem is the (working) minimum amount is also active for the retail group.) I have tried to make the addon 'Link to Product Model' by Landho working on Osc CE so i would have a link in the other shop where a customer can buy just one product trough advanced_search_result.php, but this failed. I know this is not a subject for your addon, but I could not find any posts of this matter to help me further. Reason for all of this is that retail customers are confused by the minimum amounts of products in the Wholesale. Hope you can help me. Best regards, Martin
  18. Can you please post your catalog/includes/template_top.php
  19. Hi Had header tag module already installed but nothing in checkout_payment. The link works for me and download the version I use. New Bootstrap store is not online yet but in testmode using WAMP.
  20. raiwa

    Different type of customer Login

    Hello Jay, Supposed you are using the BS responsive community version, you'll need the Wholesale (SPPC lite) add-on: https://apps.oscommerce.com/VWUpG&wholesale-sppc-lite If you are using the old official version, search for SPPC (Separate price per customer) add-on.
  21. Hello @MITCH70, The download link doesn't serve. This version is under continous development and the actual master version has nothing to do with your version from 02/2017. Anyway I keep a version from 05/2017 with fontawesome 5.7.0 and it works without any problem. Can you please first try to install the header tag discount module so you should have the discount input panel in checkout_payment.php and check if it shows correct there. Then please post or PM your store URL (supposed it is public available) and I'll have a look. Best regards Rainer
  22. Hi, Is there anyway that you can have 2 difference of login? Say 1 for wholesale and other 1 for retail customer?
  23. Hello, Fontawesome 5.7.1 is inside template_top.php. On checkout_payment.php there is no discount field or whatever. Tried the addon on a clean install and shows exactly the same problems. This is the one I use: https://github.com/gburton/osCommerce-234-bootstrap/archive/master.zip Just tried the addon on the GOLD version for reference and there its shows all fields and buttons correct just like yours. Best Regards.
  24. DAVID3733

    Request Product Reviews

    As a update now I have everything working I thought i would catalog what I had done to help others and to remind myself when I have forgotten I am not a coder, just a shop owner so cannot give advice, and what I have done may not be very slick but its working Running CE BS4, and PHP 7.2.16 I wanted a email to go out to request a review 7 days after "dispatch", as some of our products are ordered in especially, some we import in direct and some have to be made, so there can be no specific approx time after the order was made, and sending out a request for a review before the good were delivered is a no-no. Also on "dispatch" I wanted to send a email out at the end of the day with, link to their Invoice, a care sheet for the product which is important, we use a number of different couriers so contact and website tracing address for all of them (tracking number sent direct from admin when advised of dispatch), even put a voucher in there for good measure. I used the version 1.01 dated 18th February 2008 downloaded from below link http://www.oscommerce.com/community/contributions,5471 I do not use filenames in my version of OSC, there was a little bit of editing of review_mail.php but not much, PHP error log on my server proved a very informative place for finding the errors after the SQL was installed, which went without a hitch using PHP my admin INSERT INTO `configuration` VALUES (NULL, 'Days delay for review email', 'REVIEW_REMINDER_DELAY', '10', 'Number of days to wait before sending a review reminder email', 1, 998, now(), now(), NULL, NULL); INSERT INTO `configuration` VALUES (NULL, 'Review email limit', 'REVIEW_REMINDER_NEWSLETTER', '1', 'Send review reminder email only to customers who accept newsletters (set to 1)', 1, 999, now(), now(), NULL, NULL); ALTER TABLE `orders` ADD `reminder_sent` tinyint(1) NOT NULL default '0' AFTER `orders_status`; you must also set the - remonder_sent to 1, this stops you sending out to all your old orders while you are testing so do not forget it UPDATE orders SET reminder_sent = 1 As I stated I also wanted to send a different email out upon dispatch so i duplicated what i had done previously with a few changes INSERT INTO `configuration` VALUES (NULL, 'Days XXXXXXchangedxxxxxxdelay for dispatch email', 'XXXXXXchangedXXXXXDISPACTED_REMINDER_DELAY', 'XXXXXXchangedXXXXX0', 'Number of days to wait before sending a XXXXXXXXchangedXXXXX dispacth reminder email', 1, XXXXXXXXXchangedXXXXXX1001, now(), now(), NULL, NULL); Didnt need a copy of REVEIW_REMINDER_NEWSLETTER ALTER TABLE `orders` ADD `XXXXXXchangedXXXXXdispatched_sent` tinyint(1) NOT NULL default '0' AFTER `orders_status`; And of course don't want the emails going out while testing so UPDATE orders SET dispatched_sent = 1 Now the next problem I am using SEO-URL-5 and status handler, these caused problems, I do not know enough to know why, but noticed earlier in the thread that there was a fix from user - bassmaga this fix basically said in terms i understand that if the file requesting this page is review_mail.php then do not bother including URL-SEO t was called in catalog/includes/functions/html_output.php if (basename($_SERVER['SCRIPT_FILENAME']) != 'review_mail.php') { require_once DIR_WS_MODULES . 'ultimate_seo_urls5/main/usu5.php'; } I also had a request for a file (status handler) the file in catalog/includes/functions/general.php I would not have known about these if i hadn't been using the php error logs in my server to find issues becuase I do not really know what i am doing and could get "OR" or "||" working and i wanted to use more than one version of review_mail.php I changed it to $email_workaround = basename($_SERVER['SCRIPT_FILENAME']); $email_workaround_list = array ('review_mail3.php','review_mail.php','dispatched_mail.php'); if (in_array ($email_workaround,$email_workaround_list)) {} else{ require_once 'includes/modules/ultimate_seo_urls5/main/usu5.php'; } you will note that I have 3 files now 'review_mail3.php','review_mail.php','dispatched_mail.php' I have review mail in twice becuase we have 2 dispatched status codes, 3 and 50540, bit messy i know but our database goes back many years plus my new dispatched_mail.php Now I can run 3 cron jobs every night to send out the emails if you rename a copy of review_mail.php then remember to also keep the same name for template review_mail.tpl, ie review28_mail.php review28_mail.tpl Do not know much about templates but would recommend you use tables in them, seems to work much better and easier to keep things where you want them I would also recommend "Burts" "Order Keys" with this there is no need for the customer to log in, this is done for them, cannot find it on here, but if you search user name "Burt" I am sure he will point you in the right direction Kindest regards David
  25. hay I use oscommerce bootstrap, which PL Systems has set up and sold me. Only this guy has no idea what he's doing and I can fix the bugs now. the first problem is that the Paypal checkout does not include VAT. Shipping module is DHL... Shop total amount: 63,37€ and in the Checkout is already 62,47€. The 19% value added tax is missing... how can I correct this error? many many thx
  26. mcmannehan

    Upload Class File

    Changes in the Regex are wrong. For to allow only a-z A-Z 0-9 - _ . The regex must be: if (preg_match('/^[-A-Za-z0-9._]+$/i', $file['name']) == false) { $message = sprintf(ERROR_FILE_ILLEGAL_CHAR, $file['name']); if ($this->message_location == 'direct') { $messageStack->add($message, 'error'); } else { $messageStack->add_session($message, 'error'); } return false; }
  27. DAVID3733

    All Products SEO

    Hello I am not a expert but would thinks that main crawlers would have no problem navigating a modern OSC website Plus you have whats new, that can show all products, also if it has pagination and view-all then every product is available on a single page to the crawler, I am guessing that any version of OSC that is using BS4 would have these capabilities already, check you have them activated as header tags, without adding another module to complicate and increase the bots ability to crawl your site, remember they do have a limit of the number of pages they will crawl in a day and duplicating whats already available to them might not be the best use of the crawl budget But like i said, no expect just a shop owner regards
  1. Load more activity