Jump to content

allaboutwicker

Members
  • Content count

    467
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by allaboutwicker

  1. allaboutwicker

    One Page Checkout Support

    Hi Steve, Thanks for your advice. I did try that, but it really throws some errors, so I changed it back. I got this when I had it set without the // in place: Warning: Invalid argument supplied for foreach() in /includes/classes/discount_coupon.php on line 413 Warning: array_sum() [function.array-sum]: The argument should be an array in /includes/modules/order_total/ot_discount_coupon.php on line 29 Plus I got the error setting payment contact us message as well. I will keep messing with it when I have time or maybe someone else has ideas. Thanks again, Leslie
  2. allaboutwicker

    One Page Checkout Support

    Hi, I hope there is someone who has more of a grasp on this php coding then I, as I can get this to work with the discount coupon module if I do some manuvering of files, so I think I am on to something. First I do not have the Gift Voucher Addon installed, so I removed that code at the bottom of includes/checkout/payment_method. Not 100% sure if that is revelant to this issue or not in general, but it was for me as I get errors. O.K. regarding includes/classes/onepage_checkout I made the following changes: Find: //$order->info['applied_discount'] = $onepage['info']['applied_discount']; //$order->info['subtotal'] = $onepage['info']['subtotal']; and uncomment as follows: $order->info['applied_discount'] = $onepage['info']['applied_discount']; $order->info['subtotal'] = $onepage['info']['subtotal']; Find: //kgt - discount coupon if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) ) { //$order->coupon->applied_discount = $applied_discount; $order->info['total'] = $order->coupon->finalize_discount( $order->info ); $onepage['coupon'] = $order->coupon; } //end kgt - discount coupon and uncomment the one line as follows: //kgt - discount coupon if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon ) ) { //$order->coupon->applied_discount = $applied_discount; //$order->info['total'] = $order->coupon->finalize_discount( $order->info ); $onepage['coupon'] = $order->coupon; } //end kgt - discount coupon Then find: /* Comment line below for oscommerce versions before MS2.2 RC2a */ $confirmation = $GLOBALS[$payment]->confirmation(); /* Uncomment line below for oscommerce versions before MS2.2 RC2a */ //$confirmation = $GLOBALS[$payment]->selection(); and change to: //$confirmation = $GLOBALS[$payment]->confirmation(); /* Uncomment line below for oscommerce versions before MS2.2 RC2a */ $confirmation = $GLOBALS[$payment]->selection(); Now for the tricky part. If I change this part of the code in includes/classes/onepage_checkout //BOF KGT if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' && is_object( $order->coupon )){ //kgt - discount coupons $applied_discount = 0; $discount = $order->coupon->calculate_discount( $order->products[$i], $valid_products_count ); if( $discount['applied_discount'] > 0 ) $valid_products_count++; $shown_price = $order->coupon->calculate_shown_price( $discount, $order->products[$i] ); //var_dump($shown_price); $shown_price = $shown_price['actual_shown_price']; } else { $shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty']; } $order->info['subtotal'] += $shown_price; /************** $shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty']; $order->info['subtotal'] += $shown_price; **************/ //end kgt - discount coupons //EOF KGT To: $shown_price = tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty']; $order->info['subtotal'] += $shown_price; and upload that file, the checkout page will come up, but will not acknowledge coupons. Then if I upload the file with the last code back in and refresh the checkout page it works!! Also, I believe I had to be signed in as a customer for it to work. Sorry if this is not making sense as I was up late messing with this to try and figure it out so not much sleep between then and getting up to get kids to school. Anyway, I tried to move that bit of code lower on the page to see if I did that there might be something above it that loaded first without it it would be happy, but nothing I tried worked. Does anyone know if the coupon code on the page here would be able to be triggered by the customer clicking on a radio button that would do what I was doing? I do not understand this php coding very well, so I am not sure if what I have found can be taken by someone and actually made to work. Feel free to contact me to discuss this as I have many hours in this endeaver and would love to get this working. The only problem I do have once I got it to work was that the coupon amount is being deducted from the subtotal right away and I really need it to be later and not effect the subtotal since most of the discounts I give are for shipping purposes, so I am hoping that someone will know how to adjust that part as well, but lets see if we can get it to work at all I guess. Thanks, Leslie
  3. allaboutwicker

    One Page Checkout Support

    Hi All, I am really struggling with this add on. I am hoping someone can guide me in the right direction. I am getting this error when I have discount module turned on: Fatal error: Call to undefined method: stdClass->calculate_discount() in ............................. classes/onepage_checkout.php on line 190 I have seen a few mentions of it on the thread, but no actual resolve of the problem. Does anyone have a clue for me?? Many Thanks
  4. allaboutwicker

    One Page Checkout Support

    I too am getting this error if I have discount module turned on. Did you ever figure this out? Thanks for any advice
  5. I have not been able to figure this out. I installed another contribution and now my images in the "grid" mode are all coming up as the full image size, but they are the thumbnail size in "List" mode. I am not sure where this information is pulled from so I am at a lost as to where to look. I have to keep it set to List mode, but I set it to Grid mode and saved it here: My link -Grid View and here is the page when I have it set to "list" mode: My link -list view Thanks in advance for any advice.
  6. I was just wondering if you thought that this thumbnail issue might have anything to do with another problem I am having which I have been ripping my hair out to try to find the solution. I cannot for the life of me get the ajax attribute manager contrib elements to show anymore on my product page in admin, so I cannot add or change any of the attributes there now. Do you think this thumbnail contribution issue is related??
  7. I believe you are right On the Fly, sounds like it. I will work on changing this later today when I have a block of time to devote to it. I will post back my results. Thank you for your help and all your contributions. They are Great!!!!
  8. Hi Sam, I am not sure which thumbnail contrib I installed as it has been so long now, but I will try to go through my old notes as I believe I still have them after we moved, I hope. Is there any way to check in the coding to tell which one I have installed that way? Thanks for your help.
  9. I have had this contribution installed for a while now and it was working fine in the thumbnails in grid mode which is what I prefer. However, now that I have added the simple multi image contribution I need to have it set to list as my images are huge in the grids where before they were small thumbnails. I checked the image source in each mode and found that in list mode I see this before the image source: /product_thumb.php?img= and in grid mode, that is not there, so it is just pulling the full image directly. Is there somewhere in the coding where I can change it so the grid mode will work so they will be small thumbnails? Thanks
  10. allaboutwicker

    AJAX Attribute Manager support

    I have an issue where I had the ajax attribute manager working, but some time ago I went to change attributes of an item and discovered it no longer is working. I have tried to upload several different versions of this contribution, but none of them work for me. Here is a screenshot of what I get when I go to the product page: And here is the source code I get on this page where the ajax attribute manager is: <td class="main"><img src="images/pixel_trans.gif" border="0" alt="" width="24" height="15"> <input type="text" name="products_price_gross" value="129.0000" OnKeyUp="updateNet()"></td> </tr> <!-- BOF - Zappo - Option Types v2 - AttribManager - AJAX Attribute Manager plugin //--> <tr> <td colspan="2"><div id="attributeManager"></div></td> </tr> <!-- EOF - Zappo - Option Types v2 - AttribManager - AJAX Attribute Manager plugin //--> <tr> <td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td> </tr> <script language="javascript"><!-- updateGross(); //--></script> <tr> <td class="main" valign="top">Products Description:</td> Does anyone have any ideas for me to look into to get this fixed?
  11. allaboutwicker

    AJAX Attribute Manager support

    Has anyone else come across this error and if so, how did you fix it???
  12. allaboutwicker

    AJAX Attribute Manager support

    Hi, I hope someone might be able to help me. I had this contrib working until recently, but now when I go into a product and upload a saved template of attributes I lose the attribute section on that product when I go back in to edit it. It just disappears. I can still add and delete attributes in products that I have not tried to add a template to without incident, but as soon as I try to load a saved template that whole section on the screen is gone when I go back into it and I can't figure out how to get it to come back. Thank you in advance for any advice you can give.
  13. Setting the 'Product Listing Image Width' to a blank value did it! My images look great now! Thank you!!!!!
  14. Hi, I was having an issue where it was pulling the image to display from the first additional image if there was any additional images as I have that contrib installed and Spooks advised me to comment out that one line in products_listing.php. That did solve that issue, however, it is still creating distorted thumbnails. It appears to be using the small image and mutating it so it is distorted and out of proportion. Any suggestions??
  15. Thank you so much, that worked as far as it now brings up the correct image. However, I am noticing that some, not all, of the thumbnails are pretty tiny and I can't seem to figure out why. I thought it had something to do with the additional images thing, but as I look at it, I realize some of the products don't have any extra images, so I don't think that is causing it. Any thoughts on that one?? Thanks again for your help!!
  16. Hi, Thank you for a wonderful contrib! I am wondering if I did something wrong or if I have a setting off somewhere. I have the Additional Images contrib installed as well and if I use the setting "thumbnail" it pulls the first additional image that I have added for the product and displays that instead of the main image for the product. If I have it set to listing view it is fine. Any ideas??? Thanks!
  17. allaboutwicker

    Links Manager II

    My main error message is as follows: Warning: mysql_query() [function.mysql-query]: Unable to save result set in /homepages/12/d188340574/htdocs/store/includes/functions/database.php on line 44 2008 - MySQL client ran out of memory I have looked at database.php which is mentioned in the error message around line 44 and see this coding: if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); } $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error()); if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { $result_error = mysql_error(); error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); } return $result; } I am not a programmer so I do not understand much of this php coding stuff. I have a feeling though that there may be something in here which is causing my error. I do hope someone can help me on this one as I am losing back links since their links do not come up on my website right now, just the error message. Thanks again for any help!!!
  18. allaboutwicker

    Links Manager II

    Hi Jack, I got this response from my host, 1 and 1: This is an update regarding the conversation we had about the mysql error on your website. The reason why your website is showing the said error right now has to do with a the limitation allowed for your mysql database. The thing is the Max_used_connections allowed within our shared hosting package for mysql is only up to 60. You have already exceeded this limit since you have a Max_used_connections of 65. Do you have any idea what he means by this or does this give you any incite as to what may be triggering this error message as it is only happening on my links.php page??? Thanks!
  19. allaboutwicker

    Links Manager II

    Thanks Jack, I was pulling my hair out trying to figure out what I had done wrong. I will contact them as you suggested.
  20. allaboutwicker

    Links Manager II

    Hello, I have tried to find a solution to the error message I now get when you go to my links page, but have not been able to find one. It used to work and I don't remember changing anything in my links files recently, but I just discovered that when you click to go to my links.php page it looks like it will go then you get this at the top of the page: Warning: mysql_query() [function.mysql-query]: Unable to save result set in bla..bla...bla.../includes/functions/database.php on line 44 2008 - MySQL client ran out of memory select l.links_status from links l LEFT JOIN ( links_description ld, links_to_link_categories l2c, link_categories lc ) on (l.links_status = 2 and ld.language_id = '1' and l2c.links_id = l.links_id and lc.parent_id = '0') [TEP STOP] 2013 - Lost connection to MySQL server during query select count(*) as total from sessions where sesskey = '85a7f0f6b20152ef64d270b92831f404' [TEP STOP] Does anyone have any clue how to fix this??? I only get this error message in links and only on the store side, admin appears to be working fine. Thanks in advance!
  21. allaboutwicker

    [Contribution] Additional Images Module

    Hi Patrick, I am not sure if this will help you to locate where the add image button can be found, but I thought why not. I took a screenshot of my admin/catalog for you: Click Here Do you see it on the bottom right corner below the main product image? hope that helps!
  22. allaboutwicker

    [Contribution] Discount Coupon Codes

    Hi, I am not sure on your checkout page being changed, but I think you missed adding the following to your includes/database_tables.php file: //kgt - discount coupons define('TABLE_DISCOUNT_COUPONS', 'discount_coupons'); define('TABLE_DISCOUNT_COUPONS_TO_ORDERS', 'discount_coupons_to_orders'); //end kgt - discount coupons I believe this may be giving you the error message.
  23. allaboutwicker

    [Contribution] Additional Images Module

    Hi, I had the same thing happen and I had read somewhere that if the file name is too long it can't accept it. Try when you are in a product and click to add image to delete all info except leave the file as "products/" in the upload location box and see if it will take it then. I hope that helps!
  24. allaboutwicker

    [Contribution] Discount Coupon Codes

    Hi, I am not sure on this, but it is an easy thing to try. Go into your Admin->Modules->Order Total and check to see how you have the order of the choices there. I remember I had to play around with mine when I had installed this contrib. I have mine as: Sub Total - 1, Tax - 2, Shipping - 3, Discount Coupon - 4 and Total - 5 Hope this helps!
  25. allaboutwicker

    [Contribution] Discount Coupon Codes

    Hi, I am not sure if I installed the same exact contrib, but mine has this in the instructions: The module will automatically create the database tables needed, there is no SQL script you need to run, unless the script encountered an error creating the tables (this can happen if the user osCommerce connects with does not have CREATE TABLE permissions). See the common problems section if you need to manually run the create table statements. Then down in the problem section it has: # Creating the database tables failed, and I need the SQL statements. Here you go: CREATE TABLE IF NOT EXISTS discount_coupons ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', coupons_description VARCHAR(64) NOT NULL DEFAULT '', coupons_discount_amount DECIMAL(15,12) NOT NULL DEFAULT '0.0000', coupons_discount_type ENUM ('fixed','percent','shipping') NOT NULL DEFAULT 'percent', coupons_date_start DATETIME DEFAULT NULL, coupons_date_end DATETIME DEFAULT NULL, coupons_max_use INT(3) NOT NULL DEFAULT 0, coupons_min_order DECIMAL(15,4) NOT NULL DEFAULT '0.0000', coupons_min_order_type ENUM('price','quantity') DEFAULT 'price', coupons_number_available INT(3) NOT NULL DEFAULT 0, PRIMARY KEY (coupons_id) ); CREATE TABLE IF NOT EXISTS discount_coupons_to_orders ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', orders_id INT(11) DEFAULT '0', PRIMARY KEY (coupons_id,orders_id) ); CREATE TABLE IF NOT EXISTS discount_coupons_to_categories ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', categories_id INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (coupons_id,categories_id) ); CREATE TABLE IF NOT EXISTS discount_coupons_to_products ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', products_id INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (coupons_id,products_id) ); CREATE TABLE IF NOT EXISTS discount_coupons_to_manufacturers ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', manufacturers_id INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (coupons_id,manufacturers_id) ); CREATE TABLE IF NOT EXISTS discount_coupons_to_customers ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', customers_id INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (coupons_id,customers_id) ); CREATE TABLE IF NOT EXISTS discount_coupons_to_zones ( coupons_id VARCHAR(32) NOT NULL DEFAULT '', geo_zone_id INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (coupons_id,geo_zone_id) ); Hope that helps!
×