Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- Fixed field that shows discounted price.
- Added field that shows discounted price in percentage.
- Added field that shows savings.
- Removed dependencies that is not necessary.
Now this module can be used with views and nodes.
Of course it must be modified more....
Comment | File | Size | Author |
---|---|---|---|
#7 | product_price_alterer_field-node_view_integration-2318697-2.patch | 25.05 KB | milosd6 |
Comments
Comment #1
milosd6 CreditAttribution: milosd6 commentedHere's the patch.
Comment #2
milosd6 CreditAttribution: milosd6 commentedComment #3
4fs CreditAttribution: 4fs commentedmilosd6 Thank you for the work on this. It seems to be working well in views, however on a node field level I am not able to add any discount field (product_price_alterer_field) as there is no option as before the patch. Is that how this module is working for you? I assume you are using views to override node display rather than field display?
Comment #4
milosd6 CreditAttribution: milosd6 commented4FS Thank you so much for reply.
Yes i made it work only for view, because i needed only that.
Currently i work to fix module to work with nodes too( i need that feature now).
Will post patch here as soon as I finish...
Comment #5
4fs CreditAttribution: 4fs commentedWow. Brilliant. Thank you.
Comment #6
milosd6 CreditAttribution: milosd6 commented- Added field for nodes.
- Now it have support for node fields.
Comment #7
milosd6 CreditAttribution: milosd6 commented- Added field for nodes.
- Now it have support for node fields.
- Fixed few bugs...
Comment #8
4fs CreditAttribution: 4fs commentedThanks for the update. I see this patch also patches uc_disounts.module, what version of the module are you patching on your side? is it the one listed here https://www.drupal.org/node/2137565 or is it the main version listed on 7.x-2.0-alpha1 (https://www.drupal.org/project/uc_discounts_alt)? Thank you for the work on this.
Comment #9
milosd6 CreditAttribution: milosd6 commentedVersion is 7.x-2.0-alpha1.
As for uc_disounts.module, it's just minor adding code to it. I needed to do that because https://www.drupal.org/node/1285540.
If you find way to put and that piece of code into product_price_alterer module, feel free to upload your patch here...
Comment #10
milosd6 CreditAttribution: milosd6 commentedComment #11
arulabisheak CreditAttribution: arulabisheak commentedHi milosd6
Am able to add a custom filed with "Discounted price field type" in the product content type after applying the patch(#7).
When I added a new product the custom field data not being saved.