VirtueMart – Terms Of Service on Joomla 2.5.9 Doesn’t Work

Just as indicated in my earlier post, I’m having troubles making the ToS on my customer’s site work. I later got an idea from VirtueMart forum. Actually, my problem was not having a link to the ToS and got this fixed by editing the laguage file for virtuemart component. If you have similar problems just follow these steps:

1.) Use your favourite editor to open language/en-GB/en-GB.com_virtuemart.ini

2.) Search for “COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED” (line 99 on Joomla 2.5.9/VirtueMart 2.0.18a)

3.) Edit and change to:

     <a href=http://www.mydomain.com/index.php/path-to-ToS target=”_new”>Click here to read terms of service and check the box to accept them.</a>

Your ToS should now be linked properly.

 

*) If you use a different language outher than english, you need to change the settings also in that language file same like above but translated as wished. My customer’s web site uses german as the default language for example and the settings is as follows:

1.) Use your favourite editor to open language/de-DE/de-DE.com_virtuemart.ini

2.) Search for “COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED” (line 99 on Joomla 2.5.9/VirtueMart 2.0.18a)

3.) Edit and change to:

     <a href=http://www.mydomain.com/index.php/path-to-ToS target=”_new”>Bitte lesen und bestätigen Sie Ihr Einverständnis mit den <em>Allgemeinen Geschäftsbedingungen</em>.</a>


Posted in VirtueMart, Web Design and tagged , , by with 1 comment.

Comments

  • Robert says:

    This just works around the problem the real problem is its using JRoute for the SEF and on line 149 of components/com/virtuemart/views/card/tmpl/default.php
    remove
    and change to
    index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1

    joomla will convert it to SEF anyway and everything will work ok