<< Back
Message for this thread
Posted by Messages text
Masse Terry

Noavatar
Total post : 6
> Profile
Written on : 23/12/2011 21:00 ( more than one month )
Object : E-Commerce Help
Where are the files located to make changes to the e-commerce set-up.

I would like to change the location of the "$".  It currently displays after the amount.

Also, the price for the course is $0.99, but in the cart it shows as 100$.  This may be a bug, not sure.

Thanks 
 
Masse Terry

Noavatar
Total post : 6
> Profile
Written on : 23/12/2011 21:37 ( more than one month )
Object : Re: E-Commerce Help
Nevermind.  Found a fix.  Just FYI in case anyone else needs:

The files for the cart are located at doceboLms/views/cart/show.php

There are no language files, so you will need to create your own.  In the Language Translate menu, choose add.  Use cart for the module, and create a new key, and add the transaltion under description.

Now you can change the language file used by the system in the wire.php file such as below:

array('key' => 'code', 'label' => Lang::t('_CODE', 'cart'), 'sortable' => true),
array('key' => 'name', 'label' => Lang::t('_COURSE_NAME', 'cart'), 'sortable' => true),
array('key' => 'type', 'label' => Lang::t('_COURSE_TYPE', 'cart'), 'sortable' => true),
array('key' => 'price', 'label' => Lang::t('_COURSE_PRICE', 'cart'), 'sortable' => true) 

To change the location of the $, just move a couple of code fragments:

<div class="total_container">
<p class="total_price cart_right"><?php echo Lang::t('_TOTAL', 'cart'); ?> : <span id="price"><?php echo (Get::sett('currency_symbol') !== '' ? Get::sett('currency_symbol') : '&eur;'); ?><?php echo $total_price ?></span> </p> 

This will move the symbol to the left of the amount. 
 
<< Back