Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
  1. john_t_h

    Flat rate for orders under xx Kg??

    I figured it out!!! Using this post http://forums.oscommerce.com/index.php?showtopic=140153&st=0 I modifed the flat rate shipping file like this Change this function quote($method = '') { global $order; To this function quote($method = '') { global $order,$shipping_weight; And this if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } To This if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); if ( ($this->enabled == true) && ($shipping_weight >= .5) ) { $this->enabled = false; return; } return $this->quotes; } I also modifed another package using the same method but it only appears if the weight is greater than the amount I specified. So now orders under 0.5kg display the flat rate only and orders over 0.5kg display the calculated shipping method only. :)
  2. I am looking for a shipping module that will offer a flat rate shipping amount if the total order weight is under a selected weight. If the total weight exceeds the selected weight then the method would not be available. I tried to seach for one but it seems there is nothing that does this. can anyone help me out??
  3. john_t_h

    [Contribution] FCKosc 2.2 Support

    I have the same issue. I applied the a fix I found in the connector.php file // Get the "UserFiles" path. $GLOBALS["UserFilesPath"] = '/'; $GLOBALS["UserFilesDirectory"] = '/home/httpd/vhosts/domain.com/httpdocs/images' . $GLOBALS["UserFilesPath"]; I don't get any errors when uploading files in FCKeditor. It just says uploading then nothing. If I try and create a new folder it says I don't have permission I have 777 the following folders /images /images/UserFiles I'm assuming that it's not looking at the right directory but where is it looking??? It gives no error messages to debug the problem :(
  4. I have the Credit Class & Gift Voucher contribution installed along with the Aust Bank Transfer. When customers purchase normal products the Aust Bank Transfer is available as an option no problems. I have created a gift voucher as a product but when a customer tries to purchase it the Aust Bank Transfer payment option is not displayed in the checkout. If I add a normal product to the cart along with the gift voucher then the full proccess through shipping-> payments is done and Aust Bank Transfer option is displayed as an option. Anyone have any ideas on why the Aust Bank Transfer option is not displaying for gift vouchers??
  5. john_t_h

    Payment contribution using HTTP Post?

    Here is the sample code supplied by ematters if that can help anyone point me in the right direction <html> <head> <title>POSTed Payment Page</title> </head> <body> <form METHOD="post" ACTION="https://merchant.eMatters.com.au/cmaonline.nsf/ePayForm?OpenForm"> <input type="hidden" name="__Click" value="0"> <p>UID <input type="hidden" name="UID" value="1" size="20"></p> <p>CompanyName<input type="hidden" name="CompanyName" value="Your Company Name" size="20"> </p> <p>ReturneMail<input type="hidden" name="Returnemail" value="you@yourcomapnyname.com.au" size="20"> </p> <p>ReturnHTTP<input type="hidden" name="ReturnHTTP" value="*" size="20"> </p> <p>MerchantID<input type="hidden" name="MerchantID" value="36" size="6"> </p> <p>Sendemail<input type="hidden" name="SendeMail" value="Yes" size="3"> </p> <p>ABN<input type="hidden" name="ABN" size="20" value="ABN xx xxx xxx xxx"> </p> <p>IPAddress<input type="hidden" name="IPAddress" size="20" value=""> </p> <p>MultiBank<input type="hidden" name="MultiBank" size="3" value="No"> </p> <p>SubMerchant<input type="hidden" name="SubMerchant" size="20" value="SubMerchant Name"></p> <p>Bank <input type="hidden" name="Bank" size="10" value="National"></p> <p>Platform<input type="hidden" name="Platform" size="20" value="PlainText"> </p> <p>Mode <input type="hidden" name="Mode" size="20" value="Live"></p> <p>readers<input type="hidden" name="readers" size="7" value="MEL0036"> </p> <p>Principal<input type="hidden" name="Principal" value="Payments@eMatters.com.au" size="20"> </p> <p>Desc<textarea type="hidden" name="Desc" size="20" rows="1" cols="20"></textarea></p> <p>API<input type="hidden" name="API" size="10" value="V1.0"></p> <p>NewMerchantID<input type="hidden" name="NewMerchantID" size="10" value="36"></p> <p>MerchantID3D<input type="hidden" name="MerchantID3D" size="10" value="123456789012345"></p> <p>Visa3D<input type="hidden" name="Visa3D" size="10" value="Yes"></p> <p>Name<input NAME="Name" VALUE="Chris Dwyer" SIZE="20" MAXLENGTH="40"></p> <p>eMail<input NAME="Email" VALUE="cdwyer@eMatters.com.au" SIZE="25" MAXLENGTH="40"></p> <p>CVV<input type="text" name="CVV" size="4" value="123"></p> <p>Card Number<input NAME="CreditCardNumber" VALUE="4557 0130 0031 4262" SIZE="24" MAXLENGTH="22"></p> <p>Expiry<select NAME="CreditCardExpiryMonth" size="1"> <option value="<month>"><month></option> <option>01 </option> <option>02 </option> <option>03 </option> <option>04 </option> <option>05 </option> <option>06 </option> <option>07 </option> <option>08 </option> <option>09 </option> <option>10 </option> <option>11 </option> <option>12</option> </select> / <select NAME="CreditCardExpiryYear" size="1"> <option value="<year>"><year></option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> </select> </font></p> <p>Cardholder name<font FACE="Verdana"><input NAME="CreditCardHolderName"SIZE="20" MAXLENGTH="40"></font></p> <p>Total Price<input NAME="FinalPrice" VALUE="$1.00" SIZE="10" MAXLENGTH="10"></p> <p>.<input TYPE="SUBMIT" VALUE="SUBMIT"></p> </form> </body> </html>
  6. Does anyone know what (if any) payment contributions use HTTP Post to send Credit Card details? I want to use it to modify and create a contribution for www.ematters.com.au Any help would be appeciated.
  7. I want to offer free shipping to certain customers. Does anyone know if shipping modules can be flagged to only appear to specified customers?
  8. john_t_h

    Eway Payment Contribtion

    What format is the $order->info['total'] sent in before formating? is it 3,123.25? I guess it still needs to be formated so it is sent to eway as 312325. Can the number_format function strip out the "," and the "." from the variable? Or perhaps there is some other function that can do it?
  9. john_t_h

    Eway Payment Contribtion

    Yeah I had that second line in the code. Here is the function process_button ( I have the $amount = $order->info['total']; commented out for now as I have reverted back to the original. function process_button() { global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $CardNumber, $order, $customer_id, $zone_id, $zone_query; $year = $HTTP_POST_VARS['eway_cc_expires_year']; $zone_query = tep_db_query("select * from zones where zone_name = '" . $order->delivery['state'] . "'"); if (tep_db_num_rows($zone_query) == 1) { $zone_values = tep_db_fetch_array($zone_query); $zone_id = $zone_values['zone_code']; } else $zone_id='KA'; $amount = number_format($order->info['total'],2); //$amount = $order->info['total']; $amount = $amount * 100; $process_button_string = tep_draw_hidden_field('my_customerid', MODULE_PAYMENT_EWAY_CUSTOMER_ID) . tep_draw_hidden_field('my_invoice_ref', $customer_id . '-' . date('Ymdhis')) . tep_draw_hidden_field('my_totalamount', $amount) . tep_draw_hidden_field('my_firstname', $order->customer['firstname']) . tep_draw_hidden_field('my_lastname', $order->billing['lastname']) . tep_draw_hidden_field('my_address', $order->billing['street_address']) . tep_draw_hidden_field('my_postcode', $order->customer['postcode']) . tep_draw_hidden_field('eWAYURL ', tep_href_link(FILENAME_CHECKOUT_PROCESS,'','SSL',false)) . tep_draw_hidden_field('eWAYAutoRedirect', '1') . tep_draw_hidden_field('my_email', $order->customer['email_address']) . tep_draw_hidden_field('my_card_name', $this->cc_owner) . tep_draw_hidden_field('my_card_number', $this->cc_number) . tep_draw_hidden_field('my_card_exp_month', $this->cc_expires_month) . tep_draw_hidden_field('my_card_exp_year', $year). tep_draw_hidden_field('my_ewayOption1', tep_session_id()); tep_draw_hidden_field('my_invoice_description', tep_session_id()); return $process_button_string; }
  10. john_t_h

    Eway Payment Contribtion

    ummm I gave that a quick test with a $2.28 transaction and was returned this error Now I didn't have enough in the card I used to cover $228 but it still needs some sort of formatting? :(
  11. I have a problem with the eway payment contribution. http://www.oscommerce.com/community/contributions,875 It seems that a transaction with the total amount of $3,195.86 went through as $3.00. As transactions under $1000 go through no problems I am assuming that the "," seperator is being sent in the total amount. The eway gateway requires the total amount to be sent in cents. i.e. $3,195.86 should be sent as 319586 I'm assuming that to fix this I will need to do a simple number_format() Anyone have any ideas?
  12. Yes, now the total and idle time works! Thanks :D
  13. No matter what I try, I can't get the total time and idle time to work. I have tried deleting the numbers, adding the numbers, subtracting the numbers..... As an example with no 28800 or 82800 or whatever I get this: Now to me I would think it should show something like this
  14. john_t_h

    [contribution] Simple Template System (sts)

    cool What is the go for upgrading from 1.9? Do I just need to replace the sts_***.php files with the new ones?
  15. I've had a look through the contributions but I can't seem to see anything in there. What I'm looking for is something that can manage dealings with wholesaler/suppliers as well as retail clients. I guess I would like to have the supplier listed against each product with their cost price, and the ability to generate a purchase order to restock items. Is there anything like this around?