Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

XxWickedxX

Pioneers
  • Posts

    270
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jason
  • Gender
    Male

XxWickedxX's Achievements

  1. Thanks.. I will find this in the style sheet hopefully versus top level files.. I will see what kind of issues I run into.. The navigation bar you were speaking of will require redoing a little .psd file so we will see how it goes when I open this project up in the next day or so.
  2. domain pm'ed. There is one way I can expand the template that you will see which I have already expanded once already but the method may have less than desirable results once its fully expanded. I can make the product images on my home page bigger through the admin panel and then my template will automatically grow with the extra content size. Then all I have to do is fix all the graphics the "break" in the template and re-size them for the new width.
  3. Free of Charge Payment Module http://addons.oscommerce.com/info/3342 Once installed the module settings ask you what order status you would like the orders to be once completed using this method.. No matter what order status choice I choose it just goes to my admin set default order status. This makes the contrib unusable for me.. The contrib only consist of a language file and the payment module file. Here is the code for the module. Maybe this lies in this code? <?php /* $Id: freeofcharge.php,v 1.0 2005/07/11 17:04:32 cap Exp $ Free Of Charge Payment Module for osCommerce 2.2 MS2 Module written by Want A Better Website, Inc. http://www.wantabetterwebsite.com/ Module checks the grand total of the customer's shopping cart. If the grand total is $0.00 and this module is enabled, a Free Of Charge option is given to the customer on checkout. Module Copyright (c) 2005 Want A Better Website, Inc. osCommerce Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class freeofcharge { var $code, $title, $description, $enabled; // class constructor function freeofcharge() { global $order; $this->code = 'freeofcharge'; $this->title = MODULE_PAYMENT_FOC_TEXT_TITLE; $this->description = MODULE_PAYMENT_FOC_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_FOC_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_FOC_STATUS == 'True') ? true : false); if (is_object($order)) $this->update_status(); } // class methods function update_status() { global $order; // disable the module if the order only contains virtual products if ($this->enabled == true) { global $cart; if ($cart->show_total() >= 0.01) { $this->enabled = false; } } } function javascript_validation() { return false; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { return false; } function before_process() { return false; } function after_process() { return false; } function get_error() { return false; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_FOC_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } 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 Free of Charge Module', 'MODULE_PAYMENT_FOC_STATUS', 'True', 'Do you want to enable this module?', '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, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_FOC_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', 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 of display.', 'MODULE_PAYMENT_FOC_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_FOC_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_PAYMENT_FOC_STATUS', 'MODULE_PAYMENT_FOC_ZONE', 'MODULE_PAYMENT_FOC_ORDER_STATUS_ID', 'MODULE_PAYMENT_FOC_SORT_ORDER'); } } ?> Thanks.. Otherwise I do not know anything I can do to fix this outside of the code but I am pretty tired right now so not thinking right..
  4. This was an excellent resource. However [catalog]/includes/template_top.php does not even exist in my file structure. I suppose the custom template for the shop eliminated this method or my version did not include this file structure.
  5. I have osCommerce Online Merchant v2.2 RC2a with a custom template and numerous modifications. I know that alone deters anyone from offering advise on trouble shooting but all I am really looking for just a point in the right direction. I template does not take up the entire screen space. It is one one of those templates with a lot of white space on the left and right side of the template. My best and only real thought was to go straight to the stylesheet.css. I can not find what I am looking for though. I thought I would find some things that would be matter of changing pixel sizes or width percentages. Anyone have a shove in the right direction?
  6. Before every download contrib gets thrown at me real quick let me clarify exactly what I am looking for. Here is what I need my site to do. OsC already has the option for me to add product attributes such as which color of something a customer wants and each choice may or may not change the price. I need something nearly the same for my download products. I sell graphics. I just sell the graphics for x amount of dollars but I want to have a attribute options and choose to include the .PSD file (Photoshop build file). Now right now it looks like my product can only be connected to 1 download file. I want my product to be connected to the graphics only download but if they select to include the .PSD file for an additional 5 dollars then I want them to be able to download a new file with the PSD included based on their choice. Is there anything out like this?
  7. Really wanting to figure out why my my customers click to download and get a blank page?

  8. Installed a long time ago but decided to check out my sitemap page on the catalog side today and these errors were there Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/******.com/includes/functions/sitemap.php on line 25 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getfilesarray(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/********.com/includes/functions/sitemap.php on line 132 Now easily I just enabled allow_call_time_pass_reference in my php.ini file and it got rid of the errors. Now since this is deprecated is my concern. I am upgrading to php5 soon (not real familiar with it yet) and not sure that the option to even allow call time pass reference will be there. So alternatively I wanted to ask if you have already or are going to be making the change where this php.ini config is not needed? Thanks
  9. Thanks Jon. Made the change. Much appreciatied.
  10. That worked wonderfully. Not sure what you did. Perhaps Ill have more time later to compare. Thanks a lot Jon.
  11. Same problem for me as well. I know Jack mentioned he can not figure this one out but has anyone noticed the double "//" in the file path reference? Why is that the file path being shown that way? Is that the actual problem?
  12. Well Maynard I tried to extract the portions of this contrib that controls the check buttons and checks a particular directory for existing files. I was trying to place check buttons by the image upload browse buttons but was not successful I guess because of my limited knowledge. I gave it a good go though. Also the code in this package integrates into an already existing attributes input field where that is not an option it seems on the add a new product page. I know this in now way pertains to the support of your contrib but if you ever find yourself bored and want to point me in the right direction of how I can check the images directory for existing files to prevent them being overwritten by accident I would appreciate any advise. Thanks.
  13. Jon I have the same problem. Let me know if you figure out what fixes that. I will do the same if I figure it out. Thanks.
  14. If your willing to give up a percentage of your own profit there is this contrib I seen a few days back. Never looked it over though. http://addons.oscommerce.com/info/2169
  15. I've been on this for hours with no avail. A couple reasons preventing product images directory from being able to overwrite another file is as follows if its possible to do. *Multiple Admins uploading product images end up eventually overwriting another persons images. *A store with a high product volume becomes a higher risk at every upload of possibly overwriting an older product image by using the same file name when uploading. It seems a like a check could be added to prevent or flag an error before overwriting an existing image when uploading product images. I have already thought of permission changes as a first thought. Its not feasible because lowering perms below 644 causes a failure to render on the catalog for obvious reasons so its not that simple. Alternatively, if such a check can not be made I foresee a couple less than equal equivalents. A.) The file names could be uploaded automatically by being auto titled with something such as a date format preventing replication. (would work but probably not favored) B.) A more equal option would be to utilize some of the features the Contribution Download File Helper utilizes. This contrib as one feature it has is a check button that will check the download directory for a desired filename and reflect either a red or green fill color to acknowledge if a file with that name exist or not. Someone above my minor manipulation knowledge could use that feature from that mod and make place check buttons beside the browse buttons for the image directory instead. I tried to do this with no luck (Limited understanding). C.) Using the PHP IF FILE EXIST Function connected with a call to the text field of an entered value upon activating the submit process. I almost knew how to pull this off but do not know how to make the file name in the FILE EXIST FUNCTION to reflect a form submitted value rather than a hard coded input. I would be very interested to see this concept get picked up by someone with the know how. I feel its a needed feature since overwriting past product image files can be achieved accidentally so easily. I welcome any comments from those who would be interested in such a feature as well.
×
×
  • Create New...