Building E-commerce Sites with VirtueMart Cookbook
上QQ阅读APP看书,第一时间看更新

Removing the currency not defined error

At this point, it is likely that you will have these unsightly errors on the home page. Let's get rid of the COM_VIRTUEMART_CONF_WARN_NO_CURRENCEY_DEFINED error. The error will be displayed as shown in the following screenshot:

How to do it...

Removing this error will only take a minute:

  1. In your admin panel navigate to Components | VirtueMart.
  2. Now from the menu on the left, click on Shop and choose the SHOP link that is immediately below it. In the top left is the following form in the Vendor Information box.
  3. Just enter a name for your business and a name for your shop. Then click on Save.
  4. Click on Configuration, then click on Currencies, unpublish everything, then select the currencies you want, and then continue. Now on the right-hand side you will see the Currency box as shown in the following screenshot:
  5. Go ahead and select your currency in the top box. In the box below that, you can click on it to accept another currency. Do this for every currency you want to accept. Now click on the Save button in the top right of the screen and the currency warning will disappear.

How it works...

VirtueMart now knows which currencies to use and has removed the unsightly error.

There's more...

When you click on the Save button, the currency warning will disappear but another message prompt will magically appear as shown in the following screenshot: