Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:46:21+00:00 2026-06-07T03:46:21+00:00

I need to parse any variable passed to any static page in Prestashop and

  • 0

I need to parse any variable passed to any static page in Prestashop and replace anything that starts with “http” (in plain text) with “a href”s.
I already have the regular expression but I need to know how can I do that using a module without modifying the core functions and without using override directory for classes or controllers.

The variables needs to be parsed BEFORE sending the result to tpl files; I already found a solution overriding ObjectModel class but I need to do this inside a module.
The problem is that it is not clear to me how I can do that because ObjectModel grabs data from database using its constructor.

Somehow I need to override ObjectModel constructor within my module and be able to parse the database values before sending data to any tpl included on page.

Can anyone help me with that ?

EDIT: I also need to be able to do that for email templates.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:46:22+00:00Added an answer on June 7, 2026 at 3:46 am

    Probably the easiest way to ensure that you capture all instances would be to perform the required processing within smarty rather than Prestashop itself.

    Depending on your needs you could either implement this as a Smarty prefilter or postfilter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a JavaScript function that will parse the HTML source of the page
Need to parse a file for lines of data that start with this pattern
i need to parse simple JSON php in my tableview for that i searched
I need to parse/extract information from an html page. Basically what I'm doing is
I'm writing routing class and need help. I need to parse $controller variable and
I need a little bit of help im trying to page a js variable
I need parse through a file and do some processing into it. The file
Hi I need parse and deserialize pseudo JSON string. Input data: {aBubbleData[ 'jaja2581' ]={
I need to parse a protocol buffer send via a post using bottle. How
I need to parse a duration string, of the form 98d 01h 23m 45s

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.