Latest News: (loading..)

frankl

Community Sponsor
  • Content count

    545
  • Joined

  • Last visited

  • Days Won

    24

frankl last won the day on May 27

frankl had the most liked content!

7 Followers

About frankl

  • Rank
    One of the originals...

Profile Information

Recent Profile Visitors

16,091 profile views
  1. @richipy I'm not sure what you mean. What exactly are you trying to do?
  2. I would recommend @kymation @Jack_mcs or @burt who all have a good reputation and are quite active in the forums. I'm sure others will chime in with their own recommendations.
  3. Do the c.categories_id and cd.categories_id columns have an index on them in your database?
  4. For the new products, open catalog/index.php and change the following line include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); to //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); then below the ?> add <div> YOUR NEW CONTENT HERE </div>
  5. Create a new file catalog/includes/modules/boxes/bm_newbox.php Copy this information into it, and add your logic and/or data in the line indicated <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_newbox { var $code = 'bm_newbox'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_newbox() { $this->title = MODULE_BOXES_NEWBOX_TITLE; $this->description = MODULE_BOXES_NEWBOX_DESCRIPTION; if ( defined('MODULE_BOXES_NEWBOX_STATUS') ) { $this->sort_order = MODULE_BOXES_NEWBOX_SORT_ORDER; $this->enabled = (MODULE_BOXES_NEWBOX_STATUS == 'True'); $this->group = ((MODULE_BOXES_NEWBOX_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $oscTemplate; $data = 'YOUR LOGIC AND/OR DATA GOES HERE'; $oscTemplate->addBlock($data, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_NEWBOX_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable New Box Module', 'MODULE_BOXES_NEWBOX_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_NEWBOX_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_NEWBOX_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_NEWBOX_STATUS', 'MODULE_BOXES_NEWBOX_CONTENT_PLACEMENT', 'MODULE_BOXES_NEWBOX_SORT_ORDER'); } } ?> Create a new file called catalog\includes\languages\english\modules\boxes\bm_newbox.php and copy the following into it: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ define('MODULE_BOXES_NEWBOX_TITLE', 'New Box'); define('MODULE_BOXES_NEWBOX_DESCRIPTION', 'Show New Box'); define('MODULE_BOXES_NEWBOX_BOX_TITLE', 'New Box'); ?> You can change or add any definitions you need to. Go to admin -> Modules -> Boxes -> Install Module and install your new box.
  6. Which version of 2.3.4 are you using, the standard or the BS version?
  7. Looks good Harald. I miss the "go to last unread post" in each topic though :)
  8. @@douglaswalker I have all the documentation and an api key for zippay. The only thing I am missing is time to create a payment module :)
  9. @@BrockleyJohn You beat me to it. Great work. I see you've put a default for delivery date, but I was looking for a more finessed solution on how to handle the delivery date which took into account weekends and national holidays. I ended up with some basic code (just to show it could be done) and I think for those who want to be granular an admin page could be created to add specific holiday dates and delivery times for specific zones and shipping methods. It could get ugly if you ship worldwide and have lots of shipping methods so there would need to be some mechanism for copying information between zones and shipping methods :) Dates would need to be 'set and forget' so you don't have to go in and change them every year. There would need to be three different methods for entering dates in the following formats: - Easter (luckily there is a function in date() just for that!); - Particular dates (for example Christmas Day, New Years Day); and - Particular days of particular months (for example first Wednesday in March, Last Friday in November). This is rough code for the major Australian holidays //GET DELIVERY DATE FOR GOOGLE $days_to_ship = 3; //Number of business days to ship $yr = date('Y'); // Current year $holidays = array(date('Y-m-d', strtotime($yr . '-12-25')), date('Y-m-d', strtotime($yr . '-12-24')), date('Y-m-d', strtotime($yr . '-12-26')), date('Y-m-d', strtotime($yr+1 . '-01-01')), date('Y-m-d', strtotime($yr . '-12-31')), date('Y-m-d', strtotime($yr . '-01-26')), date('Y-m-d',easter_date()), date('Y-m-d',easter_date()-172800), date('Y-m-d',easter_date()+86400), date('Y-m-d', strtotime($yr . '-04-25')), date('Y-m-d', strtotime('second monday of June')), date('Y-m-d', strtotime('first monday of March')), date('Y-m-d', strtotime('second monday of March')), date('Y-m-d', strtotime('first monday of May')), date('Y-m-d', strtotime('first monday of October')), date('Y-m-d', strtotime('first tuesday of November'))); //Array of holidays $Today = date('Y-m-d'); //Today (duh!) // Add weekends and national holidays to shipping time $transit_days = array( date("Y-m-d", strtotime($Today. ' + 1 days')) , date("Y-m-d", strtotime($Today. ' + 2 days')) , date("Y-m-d", strtotime($Today. ' + 3 days')), date("Y-m-d", strtotime($Today. ' + 4 days')) , date("Y-m-d", strtotime($Today. ' + 5 days')) , date("Y-m-d", strtotime($Today. ' + 6 days')) , date("Y-m-d", strtotime($Today. ' + 7 days')) ); // This array can be cleaned up :) foreach($transit_days as $days) { if (in_array($days,$holidays)) { $days_to_ship = $days_to_ship+1; } } $NewDate = date('Y-m-d',strtotime($Today . '+' . $days_to_ship . ' weekdays')); // Gives the actual date of delivery accounting for weekends and national holidays Then again, it may be overkill :)
  10. Not that I know of. I made my own. You can have them if you want :) What @@14steve14 said.
  11. @@discxpress By that I mean the anchor text needs to have a tight relation to the link it is going to.
  12. @@pewe Shouldn't be hard to turn that into a module. Post in the Commercial Support forum http://forums.oscommerce.com/tracker/project-6-commercial-support-enquiries/
  13. Some of the things we do to generate link power are: Listing popular categories on the index page; Listing the top products in each category (i.e. if a category is clicked on, the category page shows sub categories and a list of top selling products); Canonical header tags; Prev/Next canonical on category pages which have pagination; Listing the top products on the index page; A link to new products on the index page Extensive cross linking of products through a 'Related Products' module; Correct breadcrumb linking and anchor text Note that links in heavily duplicated areas of pages such as boxes, headers, and columns don't carry as much weight with Google compared to links in the body of pages.
  14. @@richipy So all sorted?
  15. Try installing the module linked from this page https://www.2checkout.com/shopping-cart/oscommerce/