Hi all, thanks in advanced. Just wondering does anyone get this module working at all? The discount can been seen in the /cart page, but it is not applying after or seen anywhere after a complete checkout process. I also have Google Checkout as well, and it is not applying the discounted price too.

Does anyone has any idea? Is there's any tricks?

Comments

ahlofan’s picture

This is my setup
Drupal 6.19
Ubercart 2.4
UC Discount Alt 2.x-dev

acb’s picture

Seeing this exact same problem. Any ideas?

ahlofan’s picture

Everything must gone through the Checkout pane. So basically, you cannot use the paypal express or google checkout payment.

maverick14’s picture

Same issue here. Discounts are only visible in the cart but do not work for the checkout page and thus order in total.

peem83’s picture

Status: Fixed » Active
StatusFileSize
new5.37 KB

I wrote few extra line of code to fix this issue. When you apply the attached patch, go to the themes page and clear cache because the patch contain new theme function.

pixelsweatshop’s picture

Has this been rolled into the dev version now?

yktdan’s picture

It is not in the dev version which is currently 1.29.2.20. It is time to play the alpha/beta/rc/release game so that we have a stable version.

whitelancer’s picture

Patch in #5 seems to work on the first review page, but on the final confirmation/review page the prices are whacky and very wrong for the discount. I'm actually happy turning it off for the last page, so if/when I figure that out I'll let you know (or maybe peem83 knows how?)

whitelancer’s picture

Ah, seems as simple as commenting out the
if ($discount_amount > 0) {
line (and its associated functionality)

pyxio’s picture

Same problem here. Discounts don't show anywhere except the initial cart page. What file do I need to comment out? Thanks. Kevin

jrust’s picture

Status: Active » Fixed

Fixed in CVS

pyxio’s picture

Hi,

What do you mean by fixed in CVS? Does that mean I should install the latest dev version? Thanks.

jrust’s picture

6.x-2.0 has the fix.

pyxio’s picture

Hi,

I am using 6.x-2.0 and the only page that shows the discount is the actual order page... none of the checkout screens. Any advice? Thanks.

peem83’s picture

@whitelancer: What do you mean 'confirmation/review page'. For me it works fine on the checkout and review page which is the last step of the order, isn't it ?

pyxio’s picture

I see the discount only on the initial cart page... not on checkout or review.

pyxio’s picture

I am using 6.x-2.0 should I be using 6.x-2.0-dev for this to work?

peem83’s picture

StatusFileSize
new5.39 KB

With this patch (for 6.x-2.0-dev) the discounts are shown on checkout and review pages - the same patch like in #5, also in this case when you apply the patch, go to the themes page and clear cache.

jrust’s picture

Status: Active » Fixed

On the review page the discounts should show up in the line items. Is this not the case?

pyxio’s picture

When I try to use either patch here I get an error "malformed patch at line *" What am I doing wrong? Thanks.

peem83’s picture

@jrust: on the checkout and review pages the discount is present as total discount amount

@talengix: try to add a space in front of the error line, that might help

pyxio’s picture

I am still getting this error:

patching file uc_discounts.module
patch: **** malformed patch at line 167:

patch unexpectedly ends in middle of line

peem83’s picture

StatusFileSize
new5.32 KB

@talengix: I made new patch, try this one.

pyxio’s picture

Thanks peem83. Unfortunately it is still not working for me... I wonder if I'm doing anything wrong but I have successfully patched modules in the past. Here is the error I get:

/var/www/vhosts/mysite.com/httpdocs/sites/all/modules/uc_discounts_alt/uc_discounts$ patch < uc_discounts_2.patch.txt
patching file uc_discounts.module
patch: **** malformed patch at line 164:

patch unexpectedly ends in middle of line

peem83’s picture

@talengix: This patch works perfect for me, you can simply copy all the lines which '+' in front from the patch and paste it in the end of the uc_discounts.module and of course remove all the '+'.

pyxio’s picture

@peem83, thanks again. I guess I'm just out of luck today. when I try to manually patch it I get syntax errors. I will probably have to wait until you roll this out in the next version... any idea when that might be? Thanks. Kevin

jrust’s picture

Status: Fixed » Active

So this patch shows the discount amount for items with a codeless discount, correct? I'm hesitant to re-theme the whole review table, it's a lot of copying of core ubercart code that would have to be updated every time a new version of ubercart came out. Is there no way of doing this that just modifies the data from the review table in ubercart? I'm leaning towards thinking adding the amount via javascript, if possible, would be better.

peem83’s picture

You can build new module and use hook_checkout_pane_content to override existing content (look into the patch), and in this case you don't need to do any changes in ubercart.

pyxio’s picture

@jrust - This is such an obvious need I suspect it will be built into the next upgrade, at least I would hope so!
@peem83 - thanks for all of your awesome help

jrust’s picture

Title: Discount is not applying to anywhere except being seen in cart page » Show codeless discount prices on review page
Category: bug » feature
paloczp’s picture

Hi!

I had the same problem, but finaly solved it.

  1. CREATE BACKUP!
  2. check the variable table: discounted_price_string and uc_pane_uc_discounts_enabled
  3. if there are, delete those
  4. delete the module
  5. extract v.2.0
  6. run update.php
  7. clear cache
  8. make a new purchase of discount priced products
  9. discounts will be visible on all pages
hanoii’s picture

Category: feature » bug

Isn't this a bug report? I am also not seeing the discount on the review page, nor my gateway, which means the discount is lost in the process.

ilyasmdgh’s picture

Any updates for this. Does any of the above patch work for someone? Thanks

screenage’s picture

subscribing

bgladwyn’s picture

Also subscribing, seeing the same problem over here.

jrust’s picture

Title: Show codeless discount prices on review page » Show codeless discount prices on review and checkout pages
Status: Active » Fixed

Thanks, patch applied

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.