rbrookstx Posted November 29, 2012 Share Posted November 29, 2012 (edited) I'm not sure what I'm doing wrong, but I can't buy new giftcards. I manually add a balance to the database (and this works great to send the balances and stuff) but the actual purchase of them doesn't work for some reason. they never even show up in my queue. I made my giftcard a selectable product (with upper prices as attributes. but the base model is GIFT. will this not work? test.richhippie.com is the demo store Edited November 29, 2012 by rbrookstx Quote Link to comment Share on other sites More sharing options...
rbrookstx Posted November 30, 2012 Share Posted November 30, 2012 I fixed this issue, there is a barcode plugin that I wrote that contained a barcode that started with GIFT when I imported it. they were cancelling each other out. I removed the offending barcode and it's working. next step is to finish the integration API for the in-store POS system....OSCommerce, here comes a SOAP API!!!! Quote Link to comment Share on other sites More sharing options...
rbrookstx Posted December 1, 2012 Share Posted December 1, 2012 for those of you still having the line 13 issue with paypal and CCGV (cannot redeclare class order_total on line 13). I have found a resolution (atleast for our store YMMV). I have to go into the files in the modules/classes/order_total/XXX.php and change the class declaration to if ( class_exists('order_total') ) {return;} class order_total { from class order_total { and I did that to pretty much ALL the files. I'm running 2.3.1 Quote Link to comment Share on other sites More sharing options...
shuefly80 Posted December 8, 2012 Share Posted December 8, 2012 Hi everyone, I´m using the contrib on oscommerce 2.3.3 and am experiencing some problems in combination with the "category discount" contrib that I had already installed. Whenever I try to redeem a code, I get the following error-message: Warning: Cannot modify header information - headers already sent by (output started at /home2/www/sgwebdesign/_md/theater-im-fluss.com/kartenverkauf/catalog/includes/modules/order_total/ot_cat_qty_discount.php:168) in /home2/www/sgwebdesign/_md/theater-im-fluss.com/kartenverkauf/catalog/includes/functions/general.php on line 49 Can anyone help me???? Thanks a lot, Verena Quote Link to comment Share on other sites More sharing options...
rbrookstx Posted December 18, 2012 Share Posted December 18, 2012 it means you're incuding application_top more than once or trying to do a header redirect when something has already been sent to the browser. Quote Link to comment Share on other sites More sharing options...
yois Posted December 23, 2012 Share Posted December 23, 2012 (edited) I am using version 2.3.3 of OSC. Error I get after loading this credit voucher add-on (when clicking on Confirm Order) is: Fatal error: Cannot redeclare class moneyorder in /home/yoisnet/public_html/catalog/includes/modules/payment/moneyorder.php on line 13 Starting at line 13 in that file is: class moneyorder { var $code, $title, $description, $enabled; // class constructor function moneyorder() { global $order; $this->code = 'moneyorder'; $this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE; $this->description = MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_MONEYORDER_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->email_footer = MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER; } What file(s) should I edit now to have the voucher program work and the cart successfully conclude? The cart is broken now with or without a coupon number being redeemed. None of the products are sale items that I tested. Does anyone have a working knowledge of the problem and can provide facts without questions? I get the same error using the cod payment option: Fatal error: Cannot redeclare class cod in /home/yoisnet/public_html/catalog/includes/modules/payment/cod.php on line 13 FYI Edited December 23, 2012 by yois Quote Link to comment Share on other sites More sharing options...
♥kymation Posted December 23, 2012 Share Posted December 23, 2012 "Cannot redeclare ..." The definitive help Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rudolfl Posted December 24, 2012 Share Posted December 24, 2012 Is that just me or there is a big problem in checkout_payment.php? I have 2 payment methods available. i think, problem will not exists if single method is in use. Actually, sometimes it works for two methods too, but thsi is purely by accident. Anyway, two payment methods exist. Select a method, click on "continue" and get a message "please select payment method". Close look revealed that clicking on radio button generates JS error "undefined......". And so does click on continue button. This is the code that causes issue: /* CCGV - BEGIN */ if (!document.checkout_payment.payment[0].disabled) { /* CCGV - END */ document.checkout_payment.payment does not exist. Put some debugging and realised that CCGV contribution added new form (the one where you can re-deem coupon). And this form is named "checkout_payment". Same as main form on payment page. JS can not find right entry in DOM and fails. For the test, I quickly renamed main form and adjusted JS to cope with new name. All seem to work. I iwll now go through CCGV code to fix the issue at the source, but this sort of error should be fixed in contribution. Rudolf Quote Link to comment Share on other sites More sharing options...
rbrookstx Posted January 1, 2013 Share Posted January 1, 2013 @@yois - change class moneyorder { to if ( class_exists('moneyorder') ) {return;} class moneyorder { Quote Link to comment Share on other sites More sharing options...
♥kymation Posted January 1, 2013 Share Posted January 1, 2013 @@rbrookstx That will remove the error message, but will not fix the original problem. Sometimes you can get away with that, but it usually just causes more problems to surface. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
rudolfl Posted January 1, 2013 Share Posted January 1, 2013 Cannot Redeclare Error FIXED. There is a bug in checkout_process.php introduced by CCGV. Find this code: /* CCGV - BEGIN */ if ($credit_covers) $payment=''; $payment_modules = new payment($payment); /* CCGV - END */ Replace with: /* CCGV - BEGIN */ if ($credit_covers){ $payment=''; $payment_modules = new payment($payment); } /* CCGV - END */ Rudolf Quote Link to comment Share on other sites More sharing options...
rbrookstx Posted January 2, 2013 Share Posted January 2, 2013 you are correct @@kymation in that it is only suppressing the error in this case. I did quite a bit of testing before posting that fix though to make sure, in my case at least, it didn't cause issues. As with all things OSC, YMMV. I really wish they would have adopted a better plugin system earlier on, but I still love OSC. It's a PITA to develop for sometimes, but it's certainly the most flexible for competent developers... Now if only I could find an easy way to add extra text to the options drop downs..... Quote Link to comment Share on other sites More sharing options...
omat Posted January 19, 2013 Share Posted January 19, 2013 I did an intsall of CCGV - it appears to work fine except when you get to checkout it skips the shipping so there is shipping charges in. Can anyone Help ....please! Quote Link to comment Share on other sites More sharing options...
newburns Posted February 13, 2013 Share Posted February 13, 2013 What POS are you using @@rbrookstx? Quote Link to comment Share on other sites More sharing options...
MountainMan Posted February 27, 2013 Share Posted February 27, 2013 I've installed the version of for 2.3.3 by yansfung and am testing it out. For some reason it is not picking up the language file (english) for ot_gv.php when I am in /catalog/checkout_payment.php so that TEXT_ENTER_GV_CODE is displayed instead of its contents. Am getting no page errors, even if I delete that language file from the server, so it must not be calling for it at all. Stumped....help appreciated. Quote Link to comment Share on other sites More sharing options...
newburns Posted February 28, 2013 Share Posted February 28, 2013 I've tried to install. I've tried to make install instructions. I'm a failure!!! I cannot get this to work no matter what. Now I am sure it has something to do with my other addons, so I'm going to try it against a test site later on this evening. If anyone can confirm against my instructions, that would really help. Thanks!! CCGV Installation Instructions 97-03.doc Quote Link to comment Share on other sites More sharing options...
newburns Posted February 28, 2013 Share Posted February 28, 2013 I've tried to install. I've tried to make install instructions. I'm a failure!!! I cannot get this to work no matter what. Now I am sure it has something to do with my other addons, so I'm going to try it against a test site later on this evening. If anyone can confirm against my instructions, that would really help. Thanks!! CCGV Installation Instructions 97-03.doc :::My other addons are::: NEW STORE INSTALL LIST 1. Super Download Store 2.3 (Overwriting upload) (SQL Database) 2. KISS Error Reporting 3. Theme Switcher 4. Admin Theme Switcher 5. iOSC 5.2 (SQL Database change in ReadMe)(Issues with display, not working properly)(reinstall) 6. Security Pro r11 7. KISSit Image THUMBnailer 8. Product Info Page Box (SQL Database change) 9. Free Product Checkout 10. Enhanced Contact Us v1.2 (Change text according to your store in languages/english/contact_us.php) 11. Password Strength Meter 12. Free Product Box 13. Ultimate SEO URL 5 14. CrossSell 3.0 (XSell) [Needs some work!] (SQL Database change) 15. PHP POS (Needs Development in order to work properly with osCommerce Database!) 16. Magneticone POS (Perfect) 17. iOS 5.3 update 18. MyAccountInfo Box 19. Modular Front Page 20. Orders at a Glance Admin Dashboard Panel 21. Ask a Question (Did not install, issue with product_info.php) 22. Barcode for products 23. Sitemap Generator with images 24. Magento osCommerce POS 25. Auto Backup v4.3 (Breaks Some Buttons) 26. Ajax Price Update v1.2 27. Quick Inventorys 28. AJAX Attribute Manager 29. Product Tabs (Did not display. May be an issue with the theme changer. Removed) 30. Store Mode (Open | Closed | Maintenance) (Closed Message Added to product_info.php and english/product_info.php) 31. Wishlist 2.3.3R1 (Removed... Install not reasonable) 32. Product Fields Group 33. osC_Sec (Could not combine with FWR SEcurity Pro in catalog/applicaton_top.php) 34. Prepayment Payment Module (Not Useful) Quote Link to comment Share on other sites More sharing options...
newburns Posted March 1, 2013 Share Posted March 1, 2013 Reinstallled from my backup php files, and it's making progress. Applied @@rudolfl fix, and my "Cash On Delivery" payment option works. Now my PayPal Express option does not work. It throws Cannot redeclare class order_total I have adjusted my instructions. Once I having a working set of instructions, how do I upload it? Quote Link to comment Share on other sites More sharing options...
newburns Posted March 1, 2013 Share Posted March 1, 2013 I got most of it working, and I'm working on a rewrite for the instructions. Is there anyway to have this working for downloadable files? I have Super Download installed. Please help http://mtrosemedia.tk/store Quote Link to comment Share on other sites More sharing options...
tonyle Posted March 4, 2013 Share Posted March 4, 2013 (edited) I have installed CCGV 6 with osC 2..3.1 and PayPal express and it doesn't work. I am getting an internal server error (500) on return to checkout_confirmation.php. (The contribution works fine apart from the PayPal Express checkout, and I can find no obvious errors in the install.) Is CCGV 6 compatible with PayPal Express? Are modifications required to paypal_express.php? If CCGV 6 is incompatible with PayPal Express are there vouchers and coupons modules that DO work with it? Help would be appreciated. Debugging doesn't show up much except some non fatal errors on return to checkout_confirmation.php Error Type: [E_NOTICE] Undefined variable: gv_contents_string On line 111 File includes/modules/boxes/bm_shopping_cart.php -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Date / Time: 04-03-2013 23:21:07 Error Type: [E_STRICT] date_default_timezone_get() On line 54 File includes/functions/compatibility.php Edited March 4, 2013 by tonyle Quote Link to comment Share on other sites More sharing options...
newburns Posted March 4, 2013 Share Posted March 4, 2013 @ tonyle - I know for a fact, it is not incompatible. I had a similar issue, but I cannot say what I have done to fix it. List the files you have changed and I may be able to upload my changed files for you. I have gotten it to work in OSC 2.3.3 with a lot of addons and heavily modified store. See list above Quote Link to comment Share on other sites More sharing options...
tonyle Posted March 4, 2013 Share Posted March 4, 2013 @ tonyle - I know for a fact, it is not incompatible. I had a similar issue, but I cannot say what I have done to fix it. List the files you have changed and I may be able to upload my changed files for you. I have gotten it to work in OSC 2.3.3 with a lot of addons and heavily modified store. See list above @@newburns Thanks for the feedback The OSC 2.3.1 store is pretty much unmodified - I modified all files as per instructions in CCGV 6.0 package using text comparison. Could it just be a question of some whitespace causing the internal server error? Any way it is reassuring that a fix is possible. Most bugs will usually give up if you persist long enough! Quote Link to comment Share on other sites More sharing options...
newburns Posted March 4, 2013 Share Posted March 4, 2013 (edited) @@tonyle - Try this checkout_confirmation. I have MATC (Must Accept Terms and Agreements) installed, but this should help give some bearing on whats going on. Be sure to save your current checkout_confirmation.php Also, you could do a file compare. That would be best. I use Notepad++ checkout_confirmation.php Edited March 4, 2013 by newburns Quote Link to comment Share on other sites More sharing options...
SharperJacks Posted March 12, 2013 Share Posted March 12, 2013 PayPal Express does not show the discount price. Is there a fix? Any feedback is much appreciated. Quote Link to comment Share on other sites More sharing options...
robertwhitis Posted March 15, 2013 Share Posted March 15, 2013 (edited) I'm on 2.3.3. @@omat: I'm also experiencing this issue of the checkout_shipping step being skipped, whether there is a GV/Coupon in the cart or not, just all of a sudden, no shipping page, and if you try to go there directly, you are redirected to checkout_payment. If anyone has a solution for this problem, it would be appreciated! @@MountainMan: I'm also experiencing this issue with the language files not picking up everything, but I simply replaced the calls that weren't working with hard coded text. The two instances you mentioned are the only two instances I have seen. Also, in the current state, if I go to checkout (it auto skips shipping w/o selecting a method), if I click continue, checkout_confirmation gives me an unexpected end of file PHP error. I've used a lot of osCommerce and Zen Cart modules in my time, I've followed the directions perfectly, and made sense of most of the mis-information in the directions, but I'm stumped at the moment. If I figure out answers to this shipping skip / end of file error, I'll post my findings. Edited March 15, 2013 by robertwhitis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.