Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


PWS last won the day on June 30 2014

PWS had the most liked content!

Profile Information

  1. please, paste here the array first and after so that I can see the difference
  2. well done. I have a different SPPC since i cannot chose OT for my groups, but only shipping and payment modules. Chek also if copons exclusions work with groups or you won't be able to separate coupons by group. @rselonke I do not trust very much in in_array function so first you have to check if the code fall into this condition. You can do it by inserting this 2 lines print "yes, i'm falling here"; exit; just after the if (in_array('ot_discount_coupon', $order_total_array)) { statement. the position seems to be right, it's just what i meant. let me know Bye i forgot to tell you that dumping the array can help you print_r($order_total_array) put this just before the return $ot_total_array
  3. sometimes you have to uninstall all the ot modules and reinstall them from the admin order totals section. try this: unistall all the modules than try only to reinstall counpons
  4. yes, it should tell you if there is a discount coupon inside the order_total array next you can // destroy a single element of an array unset($order_total_array['ot_discount_coupon']);
  5. you should check in admin-> Modules->Order Totals if one or more of the other modules have the same sort number of DCC. This could overwrite the DCC module in checkout_confirmation.php
  6. very nice OT module. well this hack it's not so simple. one way to proceed could be to modify the order_total.php file in include/classes. Find the method process in the file. before returning $order_total_array you have to chek if it contains both coupons and discount. If so you have to cut the quantity discount elemento from the array. the same thing could be done on the output method in the order_total class. Maybe this could be a little better because you can use string function on before returning the output string. bye bye
  7. yes i confirm the the minimum order quantity does not work. let me take the time to view the bug and will reply with the patch
  8. try to comment this line near 183 require(DIR_WS_CLASSES . 'currencies.php'); if it doesn't work you can try to replace the line with require_once(DIR_WS_CLASSES . 'currencies.php');
  9. hello, which version of discount coupon you have insalled?
  10. since i made my own mod on a n SPPC oscommerce heavly modified, I'm posting only the hack on coupons_exclusions.php class that was the real issue. Infact the original code cannot deal php and js parameters due to a malformed variable names. Here it is how it can work with both JS function for the 2 mutliple selects and PHP POST. this patch should work on every Discount Coupons contrib version. bye bye /---------------------------------------/ in admin/includes/classes/coupons_exclusions.php Near line 140 select from '.tep_draw_form to </form> and replace with the following '.tep_draw_form( 'choose'.$this->type, FILENAME_DISCOUNT_COUPONS_EXCLUSIONS, 'cID='.$this->coupons_id.'&type='.$this->type, 'post', 'onsubmit="form_submission( document.getElementById([\'selected_'.$this->type.'[]\']) )"' ).' <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="main">'.HEADING_AVAILABLE.'</td> <td align="center"> </td> <td align="center" class="main">'.HEADING_SELECTED.'</td> </tr> <tr> <td rowspan="5" align="center">'.tep_draw_pull_down_menu('available_'.$this->type.'[]', $this->all_options, '', 'size="20" multiple="multiple" style="width: 300px" id="available_'.$this->type.'[]"').'</td> <td align="center"><input name="choose_all" type="button" id="choose_all" value="Choose All >" onclick="selectAll( document.getElementById([\'selected_'.$this->type.'[]\']), document.getElementById([\'available_'.$this->type.'[]\']) )"></td> <td rowspan="5" align="center">'.tep_draw_pull_down_menu('selected_'.$this->type.'[]', $this->selected_options, '', 'size="20" multiple="multiple" style="width: 300px" id="selected_'.$this->type.'[]"').'</td> </tr> <tr> <td align="center"><input name="add" type="button" id="add" value="> >" onclick="updateSelect( document.getElementById([\'selected_'.$this->type.'[]\']), document.getElementById([\'available_'.$this->type.'[]\']) )"></td> </tr> <tr> <td align="center"><input name="subtract" type="button" id="subtract" value="< <" onclick="updateSelect( document.getElementById([\'available_'.$this->type.'[]\']), document.getElementById([\'selected_'.$this->type.'[]\']))"></td> </tr> <tr> <td align="center"><input name="remove_all" type="button" id="remove_all" value="< Remove All" onclick="selectAll( document.getElementById([\'available_'.$this->type.'[]\']), document.getElementById([\'selected_'.$this->type.'[]\']))"></td> </tr> <tr> <td align="center"><input name="action" type="submit" id="action" value="Save"> <input name="action" type="submit" id="action" value="Cancel"></td> </tr> </table> </form>
  11. ok after 2 days of hard work the coupons works great. Just a little doubt about zone exclusions. If someone is interest i can repack all the files to a new zip and post it on the contribution page
  12. Hello, anyone can use coupon excllusions? I mean the javascript code in coupons esclusions class do not work. I tried some code hack but when JS functions works it cannot pass post arrays to php, when the posts works, the select multple js function stop working