Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aarondwyer

Archived
  • Posts

    30
  • Joined

  • Last visited

Everything posted by aarondwyer

  1. Hi All The EP contributions area has gone bannanas since I was last in there hasn't it. I'd like to ask if anyone has ever used the Easy Populate system to enter in CATEGORY images and sort order etc. I don't think this has been done, but you never know. If it hasn't I may have to sit down and write it. Thanks Aaron
  2. Jared I've tested this with Firefox and IE 6. No problems for me. Check over your install again, and perhaps you have conflicting code from other contributions. Sorry looks like you're going to have that sore head after all. :( Aaron
  3. You should check through the install again. You must have missed or added a } somewhere Aaron Sorry you may be on your own working in those other contributions. In the past I've always tried to get troublesome contributions working on there own first with a clean install of osCommerce, then merge them in from there. Aaron
  4. There were one or two little warnings etc from javascript. But I ignored them since it wasn't an error. No time for warnings. :) If you can fix them without loosing any functionality, post just what you changed (rather than the whole function) and we'll all give it a go. If it's good it should be wrapped into the mod. Aaron
  5. Hi Tim You should read the posts above, they will probably answer your question. Check image setup that you don't have both width and heights set. Also see my above posts regarding windows. Try to turn caching off first. Aaron
  6. Lots of echo's and 1/2 hour later I have solved the mysterious Windows issues. You must use the full path. DIR_FS_CATALOG. Adjusted to remove the extra slashes. I can't see why full path wouldn't work under unix as well. We'll soon see. Tom maybe you can make this code better and work something into your contrib. in file /catalog/imagemagic.php in function modify_tn_path($file, $check_cache) //create the directory tree if not already there $create_path=dirname($tn_path. $file); //added this line for windows $create_path = substr(DIR_FS_CATALOG,0,strlen(DIR_FS_CATALOG)-1) . $create_path; and // return $tn_path. $file; //comment the above line, added this line for windows return substr(DIR_FS_CATALOG,0,strlen(DIR_FS_CATALOG)-1) . $tn_path . $file; Thanks Aaron
  7. Hopefully someone else that runs Windows can confirm. But the server side caching isn't creating directories or of course the thumbnails. Time to break out the debug strings to find out what is going on. Thanks Aaron
  8. You were correct. It wasn't using ImageMagic before at all. The fix you just mentioned now works like a treat, and the ImageMagic is now actually being used. I can now run with Image Required = false. Thank you. I'm one of the ones from On the Fly that could *never* get server caching to work on windows. It didn't bother me before because I develop on windows and host with linux and it worked on linux. Now I have a task to get it onto a host running windows and am still not able to server cache. Does Image Magic store in an 'thumbnails' sub directory for each image directory or in 1 /images/thumbnails folder? I wasn't sure what the readme was referring to. I have several subdirectories since I've categorised my image directory. My windows system is not writing the thumbnails to the drive at all. At least ImageMagic doesn't die badly when you have server cache turned on unlike On the Fly. Thanks Aaron
  9. After toggling options for the last half hour, I've worked out that you have to have set in the Images configuration for Image Required = true This allows the images to be shown, and Image Magic is now doing it's thing. I don't really want to have this set, since there are several instances of where I don't have an image, and I'd rather not see a failed image holder. Any ideas? Thanks Aaron
  10. Ok I'll be first cab off the rank and raise my hand to be dolt of the day. Is anyone else unable to get their images to show.? My product images <img src="blah"> tags are completely missing in the final html, hence no images are showing. The other images (non-product) are all showing up ok. I think this could be related to the shop / non shop image selection option (which is a good option to have). I'm still investigating. Anyone have any ideas for me. Thanks Aaron
  11. Well done Tom. Just going through it now and integrating it. Issue with the readme.html in the install with html_output.php, the code is missing a ';' on the $image_size line. Should be this. if (strtolower(getcwd())."/" != strtolower(DIR_FS_CATALOG)) { $image_size = @getimagesize("../..".$src); $src=str_replace(DIR_WS_CATALOG_IMAGES,DIR_WS_IMAGES,$src); } Thanks Aaron
  12. Ok I think that's nailed it now. I've just posted v1.2 to the contributions section. Thanks for the help. Jonyo should be proud of this, it took a fair bit of effort to get it together. I know I am. I wonder if he's seen this yet? :) Cheers Aaron
  13. Tried to reproduce this following your example, and it works fine for me. Can anyone else using Mike's 1,2,3,4 steps produce the Redeem button error.? PS As for turning the check box into a radio button, I thought of doing that as well, but then thought that using a voucher should look different - mostly since not every gift voucher covers the whole cost. So it's always an add on to a payment option, not an option in itself. Hope that makes sense. Thanks Aaron
  14. Sorry I missed adding the Begin and End markers on that change when I first merged the code, so it didn't make it into the install. I've now added it to v1.2 of this contribution which is pending on Mike investigating his redeem button issue. You never know there may be some other issue. I don't have that issue on either Firefox or IE6. What browser are you using.? You actually only need to do this to make it work. The other code you commented out shouldn't affect the outcome. Locate this within the function credit_selection() and make the change while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) { // #################### Begin Added CGV JONYO ###################### //$use_credit_string = $GLOBALS[$class]->use_credit_amount(); // #################### End Added CGV JONYO ###################### if ($selection_string =='') $selection_string = $GLOBALS[$class]->credit_selection(); if ( ($use_credit_string !='' ) || ($selection_string != '') ) { Let me know about any other issues and I'll roll them into v1.2 Thanks Aaron
  15. Ok since we've have a couple of independant installers now successully running with this mod, I'll release the v1.1 to the contribution section which covers what's been mentioned in the previous posts after my initial post. Aaron
  16. Mike What's the go with the extra brace you were talking about. I must be going blind, I can't see the problem. function pre_confirmation_check() { // #################### Begin Added CGV JONYO ###################### global $payment, $order, $credit_covers, $customer_id; // #################### End Added CGV JONYO ###################### if (MODULE_ORDER_TOTAL_INSTALLED) { $total_deductions = 0; reset($this->modules); $order_total = $order->info['total']; while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); $order_total=$this->get_order_total_main($class,$order_total); if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $total_deductions = $total_deductions + $GLOBALS[$class]->pre_confirmation_check($order_total); $order_total = $order_total - $GLOBALS[$class]->pre_confirmation_check($order_total); } //end if } //end while // #################### Begin Added CGV JONYO ###################### $gv_query=tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result=tep_db_fetch_array($gv_query); $gv_payment_amount = $gv_result['amount']; // echo 'total='. $order->info['total']; // echo ' deduc='. $total_deductions; // echo ' gvamount='. $gv_payment_amount; // if ($order->info['total'] - $total_deductions <= 0 ) { if ($order->info['total'] - $gv_payment_amount <= 0 ) { if(!tep_session_is_registered('credit_covers')) tep_session_register('credit_covers'); $credit_covers = true; } else { // belts and suspenders to get rid of credit_covers variable if it gets set once and they put something else in the cart if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers'); } //end else // #################### End Added CGV JONYO ###################### } //end if (MODULE_ORDER_TOTAL_INSTALLED) } //end function Looks like it needs both. Aaron
  17. It appears I've left something else out of the readme.html [sorry] This is to go in /catalog/includes/classes/order_total.php if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $post_var = 'c' . $GLOBALS[$class]->code; // #################### Begin Added CGV JONYO ###################### // if ($HTTP_POST_VARS[$post_var]) $_SESSION[$post_var] = $HTTP_POST_VARS[$post_var]; // if (!tep_session_is_registered($post_var)) tep_session_register($post_var); if ($HTTP_POST_VARS[$post_var]) { if (!tep_session_is_registered($post_var)) tep_session_register($post_var); // ############ Added CCGV Contribution ########## $post_var = $HTTP_POST_VARS[$post_var]; // ############ End Added CCGV Contribution ########## } // #################### End Added CGV JONYO ###################### $GLOBALS[$class]->collect_posts(); } I'll add this to the installer as well before I resubmit for v1.1 Aaron
  18. Hi Mike My bad on that one. Thank you for finding that. I left out the mod_process function in the installer. I'll fix up the readme and repost to the contribution area. I knew I'd miss something. I'm glad people are getting into it. Aaron This is what the first section of the installer html should have been for ot_gv.php $this->show_redeem_box = MODULE_ORDER_TOTAL_GV_REDEEM_BOX; $this->credit_class = true; // #################### Begin Added CGV JONYO ###################### // $this->checkbox = $this->user_prompt . '<input type="checkbox" onClick="submitFunction()" name="' . 'c' . $this->code . '">'; $this->checkbox = $this->user_prompt . '<input type="checkbox" onClick="clearRadeos()" name="' . 'c' . $this->code . '">'; // #################### End Added CGV JONYO ###################### $this->output = array(); } // #################### Begin Added CGV JONYO ###################### // #################### if you set it in admin to not include tax or shipping in the amount function process() { global $order, $currencies, $cot_gv; // if ($_SESSION['cot_gv']) { // old code Strider if (tep_session_is_registered('cot_gv')) { $order_total = $this->get_order_total(); $od_amount = $this->calculate_credit($order_total); if ($this->calculate_tax != "None") { $tod_amount = $this->calculate_tax_deduction($order_total, $od_amount, $this->calculate_tax); $od_amount = $this->calculate_credit($order_total); } $this->deduction = $od_amount; // if (($this->calculate_tax == "Credit Note") && (DISPLAY_PRICE_WITH_TAX != 'true')) { // $od_amount -= $tod_amount; // $order->info['total'] -= $tod_amount; // } $order->info['total'] = $order->info['total'] - $od_amount; if ($od_amount > 0) { $this->output[] = array('title' => $this->title . ':', 'text' => '<b>' . $currencies->format($od_amount) . '</b>', 'value' => $od_amount); } } } function mod_process() { global $currencies; $my_order_total = $this->get_order_total(); $my_od_amount = $this->calculate_credit($my_order_total); if ($this->calculate_tax != "None") { $tod_amount = $this->calculate_tax_deduction($my_order_total, $my_od_amount, $this->calculate_tax); $my_od_amount = $this->calculate_credit($my_order_total); } $this->deduction = $my_od_amount; //$order->info['total'] = $order->info['total'] - $my_od_amount; if ($my_od_amount > 0) { $this->my_output[] = array('title' => $this->title . ':', 'text' => '<b>' . $currencies->format($my_od_amount) . '</b>', 'value' => $my_od_amount); } } // #################### End Added CGV JONYO ###################### function selection_test() { global $customer_id; Aaron
  19. Not sure what that could be. There was quite a bit to change. We'll wait to see if others have problems as well, because it's working for me. Aaron
  20. Hi All I've finally pulled finger and after a couple of months have brought together a bunch of code that began in the middle of the main Credit Class and Gift Voucher support thread here http://www.oscommerce.com/forums/index.php?sho...=158518&st=2037 It was originally coded by Jonyo and it is a very nice addon that makes the payment screen for customers that wish to use their gift vouchers easier to understand. I've taken the code and massaged it into shape and made the contribution installer for it. The code is spread over many pages of the main support thread, and was almost impossible to get working. This installer should now make it easier for everyone to have this in their shop. I've separated this thread from the main one, because it is really an addon to main contribution. The contribution itself will go into the normal Credit Class and Gift Voucher contribution. I will be posting the contribution shortly, but needed to make this thread first, so that I could reference it in the readme file. Regards Aaron
  21. That looks bloody brilliant. Can't wait. My local development box (Windows OS) still can't get the images to display without doing this $tn_server_cache = false; Even with Tom's modified function modify_tn_path($file) Oh well. As long as it works on the server (I hope it still does) Thanks Aaron
  22. Hi tomjmul I think there is something not right about your code. The replacement code looks the same as the code to replace. From what you mention this is exactly what I need to implement to get this working. Please repost again. Regards Aaron
  23. I'm getting ERROR where my images are meant to be. Is there anyway of debugging easily to find out what is going on. Previous version <2.0.0 was working ok. Thanks Aaron
  24. Hi all Well I've finally sorted out the age old Paypal IPN email problem with customers not returning to the site and the final section of the ordering process not taking place. I have based this on Paypal IPN v1.1, and before I release the addon to the contribution section, I need some others to test it out. Preferably those with secure connections to Paypal. I have tested this with an unsecure connection and it works fine. Even if a customer doesn't hit that pesky final return to the site button, they and you will get a confirmation email of the order. The method that I have chosen I believe does not have a race condition associated with it, and should solve this problem. Also the good news is that it is like the Paypal IPN mod completely stand alone from the core files. Please send me an email of your interest to test this, because I would like to put this into the contributions. In a nutshell the idea is that on the confirmation button being pushed by the customer, instead of the user being directed to Paypal, they get sent to a new page which then sends the emails etc, then they automatically get sent over to Paypal. Of course the Paypal IPN process area has the emails turned off so that 2 emails aren't sent. Simple eh. But it did take some thinking. Thanks Aaron
  25. Nevermind. My dodgey Paymate hacks had come back to haunt me. I've returned checkout_process.php to it's original and I'm now able to get straight into the Paypal paid area instead of the homepage.
×
×
  • Create New...