Helpers Methods

Shopper has several helpers functions that are ready to use. Here you can find the list of available function that may speed up your development.


Display a image

By default Shopper provide a helper to load image on the current uploads disk. You can easely change disk on your shopper/system.php config file.

// To display image available on the avatars disk, you set the second parameter to avatars.

shopper_asset($user->avatar_location, 'avatars')

Website Currency

If you want to display correct money format, Shopper provide a simple helper to help you, not based on default money_format php function :

shopper_money_format($product->price_amount)