Show RMB (¥) on Checkout and Course Admin Pages
Problem:
Basket/Checkout and Course Administrations pages are hard-coded to show the USD ($) currency symbol at places. So, this document will explain how to set those in RMB (¥).
Solution:
SSH into the server and run the following commands:
sudo su ecommerce -s /bin/bash
cd
source ecommerce_env
We have to make edits to various files now. Listing down the files along with the changes. Please follow these:
professional_course_seat_form_field.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/professional_course_seat_form_field.html)
From:
<%= gettext('Price (in USD)') %>
To:
<label for="price">Price in (RMB)</label>
From:
<div class="input-group-addon">$</div>
To:
<div class="input-group-addon">¥</div>
_course_credit_seats.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/_course_credit_seats.html):
From:
<th><%= gettext('Price (USD)') %></th>
To:
<th>Price (RMB)</th>
From:
<td class="seat-price"><%= '$' + Number(seat.get('price')).toLocaleString() %></td>
To:
<td class="seat-price"><%= '¥' + Number(seat.get('price')).toLocaleString() %></td>
credit_course_seat_form_field_row.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/credit_course_seat_form_field_row.html)
From:
<div class="input-group-addon">$</div>
To:
<div class="input-group-addon">¥</div>
credit_course_seat_form_field.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/credit_course_seat_form_field.html)
From:
<th id="price-label"><%= gettext('Price (USD)') %></th>
To:
<th id="price-label">Price (RMB)</th>
verified_course_seat_form_field.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/verified_course_seat_form_field.html)
From:
<label for="price"><%= gettext('Price (in USD)') %></label>
To:
<label for="price">Price (RMB)</label>
From:
<div class="input-group-addon">$</div>
To:
<div class="input-group-addon">¥</div>
honor_course_seat_form_field.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/honor_course_seat_form_field.html)
From:
<span class="price-label"><%= gettext('Price (in USD)') %>:</span> <span class="seat-price">$0.00</span>
To:
<span class="price-label">Price (RMB):</span> <span class="seat-price">¥0.00</span>
audit_course_seat_form_field.html
Edit the file (/edx/app/ecommerce/ecommerce/ecommerce/static/templates/audit_course_seat_form_field.html)
From:
<span class="price-label"><%= gettext('Price (in USD)') %>:</span> <span class="seat-price">$0.00</span>
To:
<span class="price-label">Price (RMB):</span> <span class="seat-price">¥0.00</span>
Now, as per the Open edX ecommerce static assets documentation:

(Optional) To be on the safe side, before removing the build folder, create a backup of the build folder.
Remove the build folder from (/edx/app/ecommerce/ecommerce/ecommerce/static):
ecommerce@ip-172-31-7-29:~/ecommerce/ecommerce/static$ pwd
/edx/app/ecommerce/ecommerce/ecommerce/static
ecommerce@ip-172-31-7-29:~/ecommerce/ecommerce/static$ ls
bower_components build css images js sass templates vendor vendor-extensions
ecommerce@ip-172-31-7-29:~/ecommerce/ecommerce/static$ rm -r build/
Navigate back to ecommerce (/edx/app/ecommerce/ecommerce):
ecommerce@ip-172-31-7-29:~/ecommerce/ecommerce/static$ cd
ecommerce@ip-172-31-7-29:~$ cd ecommerce/
ecommerce@ip-172-31-7-29:~/ecommerce$
Now, execute the command:
ecommerce@ip-172-31-7-29:~/ecommerce$ make static
It will take sometime to create the build and compile the static files. Restart the ecommerce service, if you don't see the changes after this command completes. Please also clear your browsers cache and test.
