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 7775083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:32:26+00:00 2026-06-01T17:32:26+00:00

I am trying to use vqmod to implement a new custom field called ‘Additional

  • 0

I am trying to use vqmod to implement a new custom field called ‘Additional Description’ to opencart.

In my vqmod xml file, I am trying to add an extra row to

admin/view/template/catalog/product_form.tpl

I would like this field to appear below the existing ‘Description’ field, so I am using the following code:

    <file name="admin/view/template/catalog/product_form.tpl">
        <operation error="skip">
            <search position="after"><![CDATA[
            <tr>
                <td><?php echo $entry_description; ?></td>
                <td><textarea name="product_description[<?php echo $language['language_id']; ?>][description]" id="description<?php echo $language['language_id']; ?>"><?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['description'] : ''; ?></textarea></td>
            </tr>
            ]]></search>
            <add><![CDATA[
            <tr>
                <td><?php echo $entry_description_additional; ?></td>
                <td><textarea name="product_description_additional[<?php echo $language['language_id']; ?>][description_additional]" id="description_additional<?php echo $language['language_id']; ?>"><?php echo isset($product_description_additional[$language['language_id']]) ? $product_description_additional[$language['language_id']]['description_additional'] : ''; ?></textarea></td>
              </tr>
            ]]></add>
        </operation>
    </file>

However, it doesn’t seem to find the position to insert the new code. When I put in a single line of code, it finds and inserts it correctly, but not when searching for the block. Is it an issue with whitespace/tabs etc? I am pasting the code directly from the product_form.tpl so I’m not sure what is going on.

  • 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-01T17:32:27+00:00Added an answer on June 1, 2026 at 5:32 pm

    Vqmod will not be able to match Ll of that. It is restricted to single lines only

    Try using this instead to match it

    <search position="after" offset="2"><![CDATA[echo $entry_description;]]></search>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
Hi I'm trying use a datepicker on a field I have. I'm trying to
Trying to use GnuPG with Delphi (Win32). I need to sign some file with
Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain,
Trying to use an excpetion class which could provide location reference for XML parsing,
I am trying use the new server side plug-in feature for TFS 2010. (I
I am relatively new to CMake, and I'm trying use the boost asio library
I'm trying use this code to get image resolution from file bool GetImageSizeEx(const char
I was trying use a set of filter functions to run the appropriate routine,

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.