Closed (fixed)
Project:
Price Difference Formatter
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2019 at 15:45 UTC
Updated:
22 Mar 2021 at 21:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
trebormcRight now I don't have time to develop this functionality.
Although I would love to see a patch with this functionality and thus be able to make a better module ;)
Comment #3
csedax90 commentedPlease test this:
Comment #4
csedax90 commentedReroll with better template variables
Comment #5
csedax90 commentedComment #6
loze commentedThis works well for me
+1
Comment #7
loze commentedI've added a few things to this.
Comment #8
loze commentedThere was a issue in the logic of the last patch.
Here's an updated version. It cleans up a few unneeded variables, and uses better coding standard practices.
also renames the template to just price-difference-formatter.html.twig
I've documented the twig variables in the template file.
Thanks.
Comment #9
loze commentedComment #10
csedax90 commentedI've extended latest patch adding adjustments as template variable (useful example for adding conditional tax info)
Comment #11
loze commentedawesome. looks good.
Comment #12
csedax90 commentedSomeone is still supporting this module? @trebormc can you test our patches?
Comment #13
nattyweb commented#10 worked perfectly for me. Thank you @csedax90.
I'm using Commerce 8.x-2.23 with Drupal 8.9.13.
Comment #14
nevergoneFix patch (delete embedded patch file and unnecessary white space).
Comment #15
trebormcThanks for your time.
I have applied the changes
Comment #16
trebormc