Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by adx

  1. Have been using imagemagic for good 2 years also and recently move to new server. Come here to look for solution for the same problem as the above post. I'm suprised that they removed it from oscommerce site? Why? :'( I just can't believe it.. BTW, if anyone found the solution please post here. EDIT: CHMOD thumbnail and it sub directory to 777 solved my problem but still why did they remove it.. Hope Tom can make it available for new user soon. Thanks.
  2. adx

    NEW! Complete Order Editing Tool!

    Hi all, I've been using version 1.61b of OE with SPCC and SPCC Price Break. But everytime I add some product to the order made by our wholesale customer, OE calculate the total value using the special price for retail customer. How can I fix this? BTW, could someone advice me which version of OE that works with SPCC and SPCC Price Break. I've been to contrib page, it's to many version there. Which one is the newest that works with SPCC and SPCC Price Break? Thanks.
  3. maybe you can modify this contrib to suite your needs http://www.oscommerce.com/community/contributions,3703
  4. I don't have that contrib installed. I think you might want to check your Country-State Selector contrib. Also, you might want to check your zones table.
  5. You've made your point. However, tep_mail() has strip_tags() that strip the HTML tags. If that the case you can try to add <b> to strips_tags function in tep_mail() in function/general.php to exclude it. But, where is </b> in this line : '<b>' . EMAIL_NEW_CLIENT_ID . ' ' . $customer_id . "\n" .
  6. have you set state option in configuration -> customer details to True? Check you create account page to see if it is there. $state does nothing complicated, it just capture state info when customer input it. It seems like there was no state info to capture.
  7. I think is better for you to do text formatting in the language file.
  8. There's more you can add to date() function in php including time. You can refer to online manual here : http://my.php.net/date. As for ip address, $HTTP_SERVER_VARS["REMOTE_ADDR"] can capture it.
  9. I think the easiest way is to add: (in catalog\create_account.php) $date = date('M d, Y'); anywhere before $email_text_owner and add: EMAIL_CREATED_DATE . ' ' . $date . "\n" . after $email_text_owner = EMAIL_NEW_CLIENT_ID . ' ' . $customer_id . "\n" . next, open catalog\include\languages\english\create_account.php and add: define('EMAIL_CREATED_DATE', 'Account created on: '); I think that will do.
  10. Below is the install note : Both text in red color should be the same. If it is different copy the one in the first tep_mail function to the second tep_mail function. Hope that will help. Thanks
  11. adx


    Hi everyone, Mine also the same, the first page I got when autologon enable is logoff page. Anybody fix this yet? Thanks.
  12. Hi all, Is there any contrib where certain customer group (I've SPCC installed) can upload file to osc and then I want it to be display as a link for others to download the file. I want to make it like torrents site where ppl can choose which file from his computer to upload, enter the file title/name and write short description about it. He then click on submit. Then his name, file title/name and description appear on page(maybe download page). I've consider article manager but it seems too complicated for this. Any advice? TIA.
  13. Hi, I'm a bit confused. In readme.html, there's instruction to backup "catalog/admin/includes/functions/html_output.php" but along the way down there's no instruction to change this file. Am I missing something here? Also, I've install 'On The Fly' Auto Thumbnailer before. I've removed it just to see what happen and my admin section have no image anymore. Advice? Adx
  14. Karen, My tep_draw_separator is working now. Try change "allow thumbnails larger than original" to True in i/m setting. It works for me. Thanks.
  15. My mistake... So, what do you think tom?
  16. The same problem here as giapet. tep_draw_separator assign image as '%' in width. There's a line in tep_image function in html_output.php to don't calculate if image width or height value is '%'. Every tep_draw separator in my store now has width=1 and height=1. Why it doesn't seem to work?? Any suggestion??
  17. you seem to have double /public_html/ directory. I think that's the problem..
  18. adx

    [Contribution] Admin Notes

    I've the same problem as djmatrix. In trial and error solution, I've edit admin_notes.php on line 278 : $sInfo_array = array_merge($admin_quer, ' '); to $sInfo_array = array_merge($admin_quer); All 3 errors gone and now I can edit, delete, etc..etc.. Question, what's the purpose of that ' ' ? By removing that piece, will it break this contrib somewhere? Thanks.
  19. adx

    State Based Region Shipping Rates

    Well, found the solution myself. So, I post it here if someone else might need it. This is just a kind of quick solution but it works for me. My shipping options are like this : 1. 1st 500g = 4.50, every increment of 250g after that charge 1.00 2. if below than 500g = 4.50 above only apply to weight below than 2KG, if more : 1. 1st 500g = 8.00, every increment of 500g after that charge 2.00 Here we go: 1. Find below code: if (MODULE_SHIPPING_REGIONS_MODE == 'weight') { for ($i=0; $i<sizeof($regions_table); $i+=2) { if ($order_total_price <= $regions_table[$i]) { $shipping = $regions_table[$i+1]; $shipping_method = MODULE_SHIPPING_REGIONS_WEIGHT . ' ' . $shipping_weight . ' ' . MODULE_SHIPPING_REGIONS_WEIGHT_TEXT . ' ' . "$dest_state, $dest_country" . ' ' . MODULE_SHIPPING_REGIONS_TEXT_UNITS; break; } } } 2. Replace with : if (MODULE_SHIPPING_REGIONS_MODE == 'weight') { if ($order_total_price <= 0.5) $shipping = 4.50; elseif (($order_total_price > 0.5) && ($order_total_price <= 2.0)) { $shipping = 0; $base = $regions_table[0]; $costbase = $regions_table[1]; $incr = $regions_table[2]; $costincr = $regions_table[3]; $shipping = $costbase + ($costincr * (($order_total_price - $base) / $incr)); } else { $shipping = 0; $base = $regions_table[4]; $costbase = $regions_table[5]; $incr = $regions_table[6]; $costincr = $regions_table[7]; $shipping = $costbase + ($costincr * (($order_total_price - $base) / $incr)); } $shipping_method = MODULE_SHIPPING_REGIONS_WEIGHT . ' ' . $shipping_weight . ' ' . MODULE_SHIPPING_REGIONS_WEIGHT_TEXT . ' ' . "$dest_state, $dest_country" . ' ' . MODULE_SHIPPING_REGIONS_TEXT_UNITS; } Change whatever you need in hardcoded values and add yours in shipping table according to this format : [baseweight]:[basecost]:[incrementweight]:[incrementcost]:[>2KGbaseweight]:[>2KGbasecost]:[>2KGincrementweight]:[>2KGincrementcost] Done. Maybe there's a better way to do this ;) Thanks.
  20. adx

    State Based Region Shipping Rates

    Hi all, Thanks for this contrib. Works like charm. However I need to modify the code so it can calculate based on initial shipping price of the package and thereafter a linear increment (only for weight option). I need to configure baseprice:increment:incrementcost in table. The formula should go something like this ( I think :rolleyes: ) : $shipping = 0; $base = $table_cost[0]; $incr = $table_cost[1]; $costinc = $table_cost[2]; $shipping = $base + ($order_total * ($costinc / $incr)- ($costinc / $incr)); where should I put this formula? TIA - BTW, great contrib.
  21. Hi, I don't know if it just me but when I click on print invoice button, invoice# on the top and order# (below address) just blank. Go through the code and I've replaced $oID with $HTTP_GET_VARS['order_id'] and it fix the problem. I also comment out $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); Is this ok? Or am I using a wrong solution here? Don't know much about PHP.. :(
  22. Hi, I don't know if it just me but when I click on print invoice button, invoice# on the top and order# (below address) just blank. Go through the code and I've replaced $oID with $HTTP_GET_VARS['order_id'] and it fix the problem. I also comment out $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); Is this ok? Or am I using a wrong solution here? Don't know much about PHP.. :( Sorry, wrong thread.. :lol:
  23. Hi all, firstly, thanks for this great software and sorry for my bad english. I've poking around the whole evening searching for solution to my shipping problem but still no luck. Well, I get a feeling that maybe I can combine a few contrib. to achieve this but have no clue to it. I need a shipping method as below : 1. Need to configure 2 shipping method - normal delivery and fast delivery. 2. Each method need to have 4 different zone which will include multiple parts of my country 3. Shipping cost will be base on total item weight, calculated as initial shipping price and thereafter a linear increment. Example : base cost for 1st 500g = $2.00 + every additional 250g = $1.00. 4. I also need to apply free shipping for certain items(not all) when customer's order reach a certain level of weight. Any suggestion? Is there any contrib exist or can I combine multiple contrib to achieve this? After searching around there's "basecostandincrementhack" contrib to achieve no 3 (but hard coded), "dualzones" contrib to achieve no 2 but I might have problem with register_globals(mine turn off - hosting requirement) and maybe per item shipping contrib can achieve no 4? Please help or give me a right direction. Thanks in advance.
  24. adx

    Help! Shipping method (newb)

    I know someone will say that sooner or later (in this case sooner :D ). Anyway, thanks for the tips and i'll post here if I can come out with some results . If no post, then you can assume that I've become what you thought of me :lol: . Thanks.