Clever combination of extensions: ReReplacer
Written by Thomas Kahl   
Thursday, 26 August 2010 07:07

We all know that sometimes it is hard to customize things in Virtuemart. Unfortunately, even though we have the themes, some parts are still hardcoded. One of these parts is the rendering of the user registration screen.

We were asked to add a link to a block of fields in the registration. There are different ways to do this  - but to make it work on all registration pages (yes, there are different pages!) and of course without hacking the core code of Virtuemart, we used a trick using the NoNumber extension ReReplacer.

We have added a unique string (for example ##placeholder##) to the text of the delimiter in the configuration of the userfields. After that, we have added an item in ReReplacer to replace any occurance of e.g. ##placeholder## with the required link and text to display. You can see the result here:

rereplacer

There are a lot of advantages doing it this way:

  • no hack
  • no customizing of different themes
  • user can edit text and link in ReReplacer admin-screen
  • user can use the placeholder all over the site with the same link and text
Trackback(0)
Comments (1)Add Comment
April 07, 2011     

Write comment
smaller | bigger

security code
Write the displayed characters


busy
 

Blog Newsletter

Blog RSS-Feed Click here

Subscribe to our Blog Newsletter

Enter your email address:

Delivered by FeedBurner