Easy-digital-downloads: Adjust purchase form total based on Item Quantity

Created on 11 Apr 2017  路  15Comments  路  Source: easydigitaldownloads/easy-digital-downloads

This is a $50 product:

screen shot 2017-04-11 at 7 51 50 am

Would be nice if the price updated with the item quantity entry. Very similar to how Custom Prices works.

type-feature

Most helpful comment

:+1: like this idea. We'll easily be able to account for our base templates and our themes, i think that's a fair set of compatibility. Themes that customize the purchase link without keeping our classes in tact might not see the change, but that should be a graceful degradation.

All 15 comments

:+1: like this idea. We'll easily be able to account for our base templates and our themes, i think that's a fair set of compatibility. Themes that customize the purchase link without keeping our classes in tact might not see the change, but that should be a graceful degradation.

Ok @SDavisMedia this is ready for some testing. I used Vendd and Twenty Seventeen to test it out. Some formats to test:
1) USD with Before as currency position
2) USD with After as currency position
3) JPY (since it's a zero-decimal currency)
4) Change thousands and decimal separators.

Oh, one more thing, I fixed up the Markup to use a few spans around the currency symbol as well as the amount so I could target them specifically for changes, but in doing so I realized that we didn't respect the currency position option in our purchase link buttons...so I fixed that up as well.

@cklosowski notes from meeting

  • purchase button flashes the new HTML
  • the dash between price and purchase text also needs to be wrapped in a span

@SDavisMedia updated to have a span on the separator...I'm not seeing this flash of the HTML, can you show me on your end with a quick .gif or something?

@cklosowski Can you wrap the add to cart text too please? The goal is to have no free floating text as siblings to markup.

One sec on the flashing markup.

@SDavisMedia that should fix it up for you, all its have spans and classes once again :)

@cklosowski golden!!! 馃檶

I've tested Twenty Seventeen. Will test Sixteen and our themes before merging. @SDavisMedia @pippinsplugins

:+1:

Themes check out, going to merge for release/2.8

Reopening this, as it's causing some issues with customizations and support. We're going to revert this in 2.8.1, and look at getting it into a later version possibly.

Time to get this back on the board...

Was this page helpful?
0 / 5 - 0 ratings