Jump to content

allaboutwicker

Members
  • Content count

    455
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by allaboutwicker

  1. allaboutwicker

    [Contribution] Discount Coupon Codes

    Hi, I am not sure if this is what you are needing as it has been quite some time since I installed this module and my memory is not good, but it may help. Anyway, check in your paypal_ipn.php file or whatever paypal file you use (under includes/modules/payment) and see if the following code is in there: //kgt - discount coupons if( tep_session_is_registered( 'coupon' ) && $order->info['coupon'] != '' ) { $sql_data_array = array( 'coupons_id' => $order->info['coupon'], 'orders_id' => $order_id ); tep_db_perform( TABLE_DISCOUNT_COUPONS_TO_ORDERS, $sql_data_array ); } //end kgt - discount coupons In my file that comes after this: tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); Then further down in that file make sure you have the discount coupon code in this section as well: // unregister session variables used during checkout tep_session_unregister('sendto'); tep_session_unregister('billto'); tep_session_unregister('shipping'); tep_session_unregister('payment'); tep_session_unregister('comments'); //kgt - discount coupons tep_session_unregister('coupon'); //end kgt - discount coupons tep_session_unregister('cart_PayPal_IPN_ID'); I hope that is some help. I must get some sleep now as I am very tired and hope that made sense. If that doesn't work I would suggest doing a search for the type of PayPal addon you use and see if the info is in that discussion to configure it with discount coupons.
  2. allaboutwicker

    One Page Checkout Support

    Hi, I do not use the Paypal Express checkout, but a different Paypal. However, it may work in a similar manner. It has been quite a while, but I remember that I had to go into my actual Paypal account and there is somewhere in there, preferences perhaps, where you assign what webpage the cutstomer is to be sent to after Paypal processing. I am just working on implementing this OPC so still have mine set to checkout_success.php, but it may need to be changed to something else for this contribution. Hope that helps, Leslie
  3. allaboutwicker

    One Page Checkout Support

    I have sort of put trying to add this contribution on hold at the moment as I tried to do it a little while ago and had several issues, probably because we have a very modified oscommerce store already and am not really all that good at this coding stuff. It is our peak busy season right now, so we are busy just filling orders and not much time for website modifications. I am keeping an eye on the forums though to see if others are getting some of the issues I was having worked out.
  4. allaboutwicker

    One Page Checkout Support

    Try this it worked for me, although I have not fully gotten this add-on installed, this works to bring them back in regular mode. Log into your Paypal account. Go to My Acoount, then Profile, then Website Payment Preferences. That is where you set Auto Return to ON and place your webpage checkout_success url in the blank as mine is: http://allaboutwicker.com/checkout_success.php Hope that helps.
  5. allaboutwicker

    One Page Checkout Support

    Hi Rob, I was just on your site and see what you mean about the wording. It is there, but is blending in. I am sorry, but I am not sure of how to adjust that. I am having the issue of the State not showing up on my end. Is it supposed to be like that? I have not tried to install the newest version yet, but am hoping to try soon as most of the bugs seem to be worked out now. I had tried an older version a while ago and it was a disaster for me. I also noticed that while I was filling in the info on your site I got that updating message quite a bit. Not sure if it is supposed to be that often. Best wishes that you get this up an running as you need. Leslie
  6. allaboutwicker

    [Contribution] Discount Coupon Codes

    I found this thread which may be helpful: http://forums.oscommerce.com/topic/314747-table-discount-coupons-does-not-exist/
  7. allaboutwicker

    [Contribution] Discount Coupon Codes

    Hi Cath, I am not 100% sure on this, but I did a google search for the error you are getting which is something I found can be quite helpful to find answers besides going through the forums here. Anyway, this came up and may be what you need. It has been such a long time ago now since I installed this one I can't remember if I had this issue or not: Here is the response first, then the issue that sounds like yours below that they responded to: -------------------------------------------------------------------------------------------------------------------------------- Posted 25 September 2007 - 08:26 AM If you go to the contribute site where you downloaded the Discount Coupon Module, you will see updates to the admin/includes/boxes/catalog.php page and the admin/includes/boxes/report.php page. It says: At the code was missing two (.) : 1) At admin/includes/boxes/catalog.php has to be //kgt - discount coupons '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>'. '<a href="' . tep_href_link(FILENAME_DISCOUNT_COUPONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_DISCOUNT_COUPONS . '</a>' ); /*************** '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' ); ***************/ //end kgt - discount coupons and 2) At admin/includes/boxes/reports.php has to be //kgt - discount coupons report '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>'. '<a href="' . tep_href_link(FILENAME_STATS_DISCOUNT_COUPONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_DISCOUNT_COUPONS . '</a>'); /************* '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>'); *************/ //end kgt - discount coupons report So, instead of changing these files the way it suggested in the Installation document, you would change them according to the instructions above. This may help. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- bargaingiftsstore, on Jul 29 2007, 08:36 PM, said: Warning: order::require_once(includes/classes/discount_coupon.php) [function.order-require-once]: failed to open stream: No such file or directory in /home/bargaing/public_html/includes/classes/order.php on line 304 Fatal error: order::require_once() [function.require]: Failed opening required 'includes/classes/discount_coupon.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bargaing/public_html/includes/classes/order.php on line 304 I thought my site was PERFECT then, I had an idea....I already have gift cards so why not use the code I have on them to use for the coupon code. Well I did that and went to try it out and the above bull crap is what I got. I have absolutely no idea and certainly have not found that ANYWHERE. How nice it is to be unique. I emplore someone to please help me. If someone wanted to install this for me I'm willing to pay. Long as you have paypal. Please this is a complete and utter disaster. This is what my code is in order.php Line 302 //kgt - discount coupon Line 303 if( is_object( $this->coupon ) ) { Line 304 $this->info['total'] = $this->coupon->finalize_discount( $this->info ); Line 305 } Line 306 //end kgt - discount coupon Line 307 } ----------------------------------------------------------------------------------------------------------------------------------------------------- Hope that is helpful to you
  8. allaboutwicker

    [Contribution] Discount Coupon Codes

    Have you run the sql file on your database?
  9. allaboutwicker

    [Contribution] Discount Coupon Codes

    Hi Kandy, I am not 100% sure if I am right as it has been quite a while since I installed this and I am not one of those oscommerce gurus, but it sounds to me like there may be an sql file which you did not run through your database. Look to see if you missed that. I don't know what it is named, but look for a file ending in .sql and run that. If you are not sure how to do that post back and I will try to explain it for you. Hope that helps.
  10. allaboutwicker

    One Page Checkout Support

    Hi Chris, Can you give me a link to your website? I would love to see this working. I had given up trying to get it working on mine a little while ago as I was having such trouble, probably because mine is heavy modified. Anyway, I am inspired to hear that you got it working and maybe will try again. Thanks
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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.
  16. 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??
  17. 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!!!!
  18. 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.
  19. 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
  20. 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?
  21. allaboutwicker

    AJAX Attribute Manager support

    Has anyone else come across this error and if so, how did you fix it???
  22. 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.
  23. Setting the 'Product Listing Image Width' to a blank value did it! My images look great now! Thank you!!!!!
  24. 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??
  25. 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!!
×