Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

spou

Archived
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    Stephane

spou's Achievements

  1. look at a contribution called "Payment Type Surcharge" then, when you setup, just put "cod" as the payment method that will have said surcharge, set the amount, and you're done. And you should modify the COD output text, change the COD text to display "COD, extra $x.xx surcharge" in the shipping page. then, place it where you want in the order total module using the sort order it works well on 3 sites I manage. Spou
  2. I have found how to have it work, for the people here that are trying to redeem their points and can not. well, here it is: The readme stated that the contributor had the redemptions store as a parallel store, and that gave me a hint of the source of the following $_SESSION variable, ie $_SESSION['cot_redemptions'] in the OT_REDEMPTIONS.PHP file. This seems to indicate that the actual session is "special" somehow. Probably a tweak for the parallel store. So, I disabled the checks for the 4 if ($_SESSION['cot_redemptions']) simply by adding a NOT operator. it is now (!$_SESSION['cot_redemptions']) (note the"!" - NOT operator) and I can redeem my points. Be aware that there is a ill written form at one place, where it is actually spelled "$SESSION", with no underscore. you must change this one too. You also might want to change an other place where it checks if the products is redeemable by the model name. In the same file (OT_REDEMPTIONS.PHP), function selection_test() change if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION')) { return false; } for if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION')) { return true; } Now, I understand that this is not pretty, and does not reflect good coding practices. But it works, and as I'm short on time, I'll leave it that way and maybe recode it later in a more fashionable way. I just wanted to let people here that I had found a way to have it work. Bye, Spou
  3. I had this problem of SQL crash too. I can tell you that it might (it does, in fact) comes form the action of clicking on the breadcrum "shop by price" option while you are already in the "shop by price" mainpage. The script does not work because it does not receive parameters it should when you click on a range in the small infobox. therefor, the SQL query is missing something, the stuff that goes after the "and". I suppose that a fix would be somehow easy to do, but I'm not knowledgeable enough in PHP to do it myself. I use my mod sessions to learn PHP on the fly, but I'm not really ready to start fixing stuff like that. So, if one can fix that, I'd be really happy. Thanks in advance. Spou
×
×
  • Create New...