- 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....

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

milosd6’s picture

Here's the patch.

milosd6’s picture

Issue summary: View changes
Status: Fixed » Needs review
FileSize
6.37 KB
4fs’s picture

milosd6 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?

milosd6’s picture

4FS 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...

4fs’s picture

Wow. Brilliant. Thank you.

milosd6’s picture

FileSize
24.44 KB

- Added field for nodes.
- Now it have support for node fields.

milosd6’s picture

- Added field for nodes.
- Now it have support for node fields.
- Fixed few bugs...

4fs’s picture

Thanks 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.

milosd6’s picture

Version 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...

milosd6’s picture

Issue summary: View changes
arulabisheak’s picture

Hi 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.