Jump to content


  • Content count

  • Joined

  • Last visited

About rselonke

  • Birthday 02/18/1970

Profile Information

  • Real Name
    Richard Selonke
  • Gender
  • Location
    London, United Kingdom
  1. having trouble with attribute cloner. worked

  2. I managed to fix this conflict. it turned out to be in the currencies class declaration. i found in line 183: require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); if i changed to require_once it now works correctly. require_once(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); worked for me, worth a try for anyone else, good luck... r
  3. Hi all, I have seen posts with this problem, but no one has offered a solution. I have installed version 3.34, all seems to go smoothly. If I enter the testing001 code the discount applies correctly etc. However, in Admin, if i go to my admin/coupon.php page, to add/edit coupons, the page is blank after the link to the instructions. If I view the html source in the browser, it ends at: Click here to read the Discount Coupon Codes manual for help editing coupons.</a></td> </tr> </table></td> </tr> I tried removing the code that builds the Coupon table down to the closing <!-- body_text_eof //--> and page displayed correctly, so I can only assume there is a simple HTML tag missing, malformed or broken due to another contrib somewhere in the file. Any ideas, anyone? thanks
  4. Hmm, now i'm really confused! i used print_r() as you suggested, and got the array. So i then used it both before AND after the unset() function. print_r($order_total_array); if ($order_total_array[0] = 'ot_quantity_discount') { echo "yes, i'm falling here "; unset($order_total_array[2]); echo ' |---| '; } print_r($order_total_array); It does indeed remove the ot_quantity_discount from the array. however the calculations have all been done and are in the array as values which have been reduced by the ot_quantity_discount in the SECOND print_r() AFTER the unset ahs been called. How do i recalculate the values? Any ideas? I was thinking maybe pre-empt the modules from doing ->output = array... or something else in the "function process() {" to prevent the calculations if the discount_coupon held data in the 'value' field. thanks again, you're a great help to me. rich
  5. OK, i have inserted the following bit of code, but is not skipping the ot_quantity_discount entry. maybe i have it in the wrong position in the structure - sry, i AM new to php :blush: function process() { $order_total_array = array(); if (is_array($this->modules)) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $GLOBALS[$class]->output = array(); $GLOBALS[$class]->process(); for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) { if (tep_not_null($GLOBALS[$class]->output[$i]['title']) && tep_not_null($GLOBALS[$class]->output[$i]['text'])) { $order_total_array[] = array('code' => $GLOBALS[$class]->code, 'title' => $GLOBALS[$class]->output[$i]['title'], 'text' => $GLOBALS[$class]->output[$i]['text'], 'value' => $GLOBALS[$class]->output[$i]['value'], 'sort_order' => $GLOBALS[$class]->sort_order); } } } } } // NEED TO DETERMINE IF DICOUNT COUPON CODE IS ENTERED, IF SO, IGNORE OTHER MODULES if (in_array('ot_discount_coupon', $order_total_array)) { unset($order_total_array['ot_quantity_discount']); } return $order_total_array; } function output() { $output_string = '';
  6. I am still new to PHP, so apologies for being dense, i have no idea how to cut the quantity discount from the array. :blush: I think if i use if (in_array("ot_discount_coupon", $order_total_array)) { it will tell me if a coupon has been used, but don't know how to exclude 'ot_quantity_discount'. can you point me in the right direction? I've looked through the PHP.net documentation referencing all ARRAY functions, but am still quite lost... -edit- Just thinking further ahead, for compatibility with other discounts, i should search the array for anything the reduces the order total value and exclude ALL except the discount_coupon - similar to excluding specials from the coupon, but in reverse... does that make sense? thanks for any help, rich
  7. Hello all, I have recently installed this contrib (with help from some of you forum members) but in addition, I also provide quantity discounts (http://addons.oscommerce.com/info/6751). Is there a way to disable other discounts when the Discount Code is used? I know it will exlude product Specials, is there a way to amend this to work? thanks for any help... richard I am using OSC v2.2rc2a. I only use one type of currency (GBP£) and one language (English). www.faculty-one.com/training/
  8. THANK YOU SOOO MUCH!! Anyone having this problem, this is the solution. First, I tried commenting out Line 183 require(DIR_WS_CLASSES . 'currencies.php'); IT WORKED! Out of interest, I also tried replacing with require_once and IT ALSO WORKED! Thanks for all the help... Rich
  9. I've downloaded version 3.34 today and installed it manually using the included install guide.
  10. Hello, I am getting the same error. Has anyone resolved this problem? I can't find any response to this post. I have an extensively modified site, and need some help urgently please. The site has gone live, and a discount offering has been negotiated but I can not get it to work!! (Sales team putting-cart-before-horse-cracks are well deserved) I am still new to PHP, so any help would be GREATLY appreciated... I am using OSC v2.2rc2a. I only use one type of currency (GBP£) and one language (English). Some of the contribs I have installed: Quantity Discount, Pay Without Account, Stats_products_orders PDF Admin Invoice, thanks to all, Richard www.faculty-one.com/
  11. What more can i say that others haven't - a real asset to the community, and the OSCommerce project.

  12. rselonke

    PDF File Upload and Display

    Hi all, I have installed the Add-on, and everything seems to work except the linking of the uploaded file to the product. When i go throught hte admin panel, the PDF files i select are uploaded to the server, but after i save the changes and go back into admin and edit the product again, the PDF fields are blank. If i look in the database table, the field for the PDF file (products_pdfupload) is empty. If i manually enter the filename of the PDF into the database products_pdfupload field it works great. All i can guess is that the admin/categories.php is not writing to the database. Any suggestions would be greatly appreciated! regards, Richard OSC: v2.2rc2a PROJECT: http://faculty-one.com/training/ WITH MANUAL DATABASE ENTRY: http://faculty-one.com/training/product_in.../products_id/48 WITH ADMIN ENTRY: http://faculty-one.com/training/product_in.../products_id/51 DISPLAYED IN ADMIN DISPLAYED IN SHOP
  13. Trying to convince to myself, among others, that I actually have any idea what I am doing.