In-Portal Issue Tracker - In-Commerce
Viewing Issue Advanced Details
1305 [In-Portal CMS] Front End feature request N/A 2012-05-29 07:45 2012-07-25 05:30
alex  
alex  
normal  
closed 5.2.0-B3  
fixed  
 
none 5.2.0-RC1  
https://groups.google.com/d/topic/in-portal-dev/Q91z0qNT2W4/discussion
Allow specifying alternative product-based primary currency
1
0001305: Support for alternative currency on per-record basis
Currently all product prices in In-Commerce are stored in primary currency.

For example 100 in database means:
* 100$ when USD is primary currency
* 100 р. when RUB is primary currency
* etc.
Also In-Commerce does automatic currency conversion (before it is displayed to user) based on same rule: from PRIMARY to user-selected.


I'm proposing to allow PRIMARY currency be specified in each product separately (if there is a need). This of course would only affect currency display on product detail page, but won't affect subtotal amount calculation and such code.
These other things can be done as an improved that idea version.
Here are the example usage tags (presuming that products have Currency field in database, that contains ISO3 currency code):
* <inp2:p_Field name="Price" currency="selected" currency_field="Currency"/> - display price in user selected currency and add currency sign to it
* <inp2:p_Field name="Price" currency="field" currency_field="Currency"/> - display price in original currency from "Currency" field (despite what user have selected) and add currency sign to it
This tag still works: <inp2:p_Field name="Price" currency="primary"/>
patch alternative_currency_field_core.patch (4,228) 2012-05-29 07:45
http://tracker.in-portal.org/file_download.php?file_id=1681&type=bug
patch alternative_currency_field_modules.patch (1,748) 2012-05-29 07:45
http://tracker.in-portal.org/file_download.php?file_id=1682&type=bug
Issue History
2012-07-25 05:30 alex Note Added: 0004883
2012-07-25 05:30 alex Status resolved => closed
2012-05-29 07:55 alex Additional Information Updated bug_revision_view_page.php?rev_id=1019#r1019
2012-05-29 07:51 alex Note Added: 0004679
2012-05-29 07:51 alex Status reviewed and tested => resolved
2012-05-29 07:51 alex Fixed in Version => 5.2.0-RC1
2012-05-29 07:51 alex Resolution open => fixed
2012-05-29 07:51 alex Changeset attached 5.2.x r15368
2012-05-29 07:50 alex Changeset attached 5.2.x r15367
2012-05-29 07:50 alex Note Added: 0004678
2012-05-29 07:50 alex Assigned To Dmitry => alex
2012-05-29 07:50 alex Status needs testing => reviewed and tested
2012-05-29 07:49 alex Assigned To => Dmitry
2012-05-29 07:49 alex Developer => alex
2012-05-29 07:49 alex Status active => needs testing
2012-05-29 07:49 alex Reference => https://groups.google.com/d/topic/in-portal-dev/Q91z0qNT2W4/discussion
2012-05-29 07:45 alex File Added: alternative_currency_field_modules.patch
2012-05-29 07:45 alex New Issue
2012-05-29 07:45 alex File Added: alternative_currency_field_core.patch
2012-05-29 07:45 alex Change Log Message => Allow specifying alternative product-based primary currency
2012-05-29 07:45 alex Estimate Points => 1

Notes
(0004678)
alex   
2012-05-29 07:50   
Will test all together later.
(0004679)
alex   
2012-05-29 07:51   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001305: Support for alternative currency on per-record basis
(0004883)
alex   
2012-07-25 05:30   
Since 5.2.0/1.2.0 versions was released.