I remember there was a module for such a functionality and also some livesites using.
Was it lost in the crash?
Regards
cosmo
|
UbercartOne cart to rule them all... |
|
| Donate | Affiliates | Sponsors | ||
Coupon Functionality
Submitted by cosmo83@drupal.org on Thu, 08/23/2007 - 09:20
I remember there was a module for such a functionality and also some livesites using. Was it lost in the crash? Regards
It hasn't been posted yet to the forum, but its currently on the author's site for version Ubercart 6a. I have not tried it yet on 7B. Here's the link: http://boldsource.com/ubercart-coupon-module-rev-2 I will let the author post it to the contributions since this is not my module.
Thanks aswalla... Found it just before u poste.. Next time i shd google before doing anything BTW, I've been using the coupon module with Ubercart alpha 7b and I haven't had any problems with it. I just installed it in "uc_coupon" subfolder and I can't find the functionality for the coupons anywhere in the Store Administration... where should I be looking into? Or am I not supposed to install the files in a folder of their own? Did you enable the module in /admin/build/modules? naturally... but I still can't find it anywhere in the Store Config menu. if you have it enabled, where would you find it? and am I missing something as far as installation goes, files/folder upload? Oh yeah, I remembered it's in a kind of weird place: Store administration > Customers > Coupons. Not the most intuitive place, if I may say so. aaahhhh, that's where the bugger is! now that I have the coupons figured out, enabled and whatnot, they don't actually apply at the checkout... I notice the field that asks which users can use the coupons. If I don't select anything (there's an empty user field), they don't apply. If I select an existing user and log in/try to checkout with that user, coupons still don't apply. Ok, next step - did anyone get the coupon module to work? If so, how? When you enter the coupon, does it discount the price on the Order Total preview screen, or does it do that on the Review Order page? Because I can't see it in either one... coupon is working good for me. The discount will only show on the "Review Order" page. Look under payment method it should have the following listed (for example, a 10% off coupon): Subtotal: $51.97 You should also have the capability of adding in a coupon code to an existing order in your order list. Now about whether its working or not...do you have: 2. which ubercart version are you running? 7b or bazaar? I have 7b that it is working on right now. 3. What coupon values do you have? Here's mine: I have put in 10.00 and chose "Percentage" as the Discount Value Type. Coupon is set to Active, with expiration date of 12/30/2007, 0.00 for minimum order amount and 0 for maximum number of redemptions. Both wholesale and retail are allowed to use coupon and I have not selected any specific user under "Allowed Users" so anyone should be able to use it. let me know if you make some progress. hmm... I've got the bazaar version (due to a few glitches I had with 7b), and that might be the problem... because I've got all the other options you listed pretty much the same or similar to yours, and I don't have that "Coupon Discount" field on the Review Order page. wondering what/where could the problem be... I'll be upgrading some time in the next few days - will let you know if the coupon module still works after the upgrade. btw, just tried that new version 1.2 with ubercart from bazaar and still nada... hmm. if anyone else gets it to work with the bazaar version, let me know! For uc_coupon version 1.2 with ubercart alpha7c We had to make the following modifications: in the file uc_coupon.module, for the function uc_checkout_pane_coupon, we changed the case 'view' from: -----------------old code----------- $pane = uc_cart_checkout_new_pane('coupon'); to: -----------------end of new code----------- ------------ as well for php 4 we changed: uc_checkout_pane_coupon($op, $arg1, $arg2) to: uc_checkout_pane_coupon($op, &$arg1, $arg2) we are new to ubercart, so maybe someone can say if these changes look right. It seems to work for me. Hope this helps someone else!! Cheers Thanks for the info TCS ______________ I'll test this on 7c and php5 shortly as well... EDIT: Nope, still doesn't work with either 7b or 7c, changes or no changes. No coupon discounts are being applied either on checkout page or on the review order page. We tested with 7c on both php4 and php5 . on php4, it was necessary to change The discounts are showing up where thay should be for us (checkout page ..). Here is the entire function with the code changes function uc_checkout_pane_coupon($op, &$arg1, $arg2) { I just noticed that the coupon discount is not being sent to paypal.The module seems to work fine everywhere else with the code changes we made. It just doesn't carry through to paypal (both php4 and php5). Anybody else having this problem? Any ideas what code I should look to modify to fix this? Thanks EDIT: This was not a bug in the coupon module after all. I had the "PayPal cart submission method" set incorrectly. Ok, the discount is showing... I can get to that point in 7c and php5. But does it apply to the total? Either on Checkout Page or Review Order page, that is... Hi Miso, I'm not sure what your question is. The coupon discounts are showing up where they should for us, and the discount is being applied correctly. What does not still seem working for you? Cheers, well, the discount is not being applied at all... that's the problem. I enter the discount, click Review Order and there's no mention of the discount on the review order page at all. I'm having the same problem. I installed, enabled, and set up a discount code that allowed access from everyone, created a test order and the discount doesn't show up anywhere, not even on the order review page. Any other suggestions? I added the coupon module to the site and once I get to the checkout page I get the following message Fatal error: Call to undefined function uc_cart_checkout_new_pane() in /home/pandapou/public_html/modules/ubercart/contrib/uc_coupon/uc_coupon.module on line 470 Any ideas why? Cheers mintidea, This was exactly the error we were getting. I said how we fixed it on my post above at (Fri, 09/21/2007 - 01:43). This should work if you are using the same versions we mentioned above. ps. I PM'd you about your moneris gateway project. Cheers! I am not sure out to do the changes to the coupon module like u said in your post on 09/21/2007 Could you attach the updated module file? on and Cosmos did a module for me re: moneris gateway its on the contrib page. Check it out. Cheers Hi Adam, I missed this request for the module file. Here it is if you still need it.
I applied this to my site and it worked great. I tested a coupon. I typed in the coupon code and it went to the review page. The coupon showed up on the review page. It was deducted from the total. When I click on submit it sends me to Paypal Payments Standard Site with the order. The total amount is different than the review order total amount. The coupon discount is not showing up on paypal. Is there anything that can be done to fix this. Why isn't it submitting to paypal? jullio, Check that you chose "Submit the whole order as a single line item" in your ubercart paypal settings. Cheers It seems to work too on alpha 8 but the report get an SQL error : <?php
|
|
Joined: 08/08/2007