Post by Bohous » Thu Jan 09, 2014 1:53 am

Hi,

can I ask for some help?

I have bestseller.tpl file from Opencart template (not default).

I need change three lines with same code in that file.

Example (first is row number):

Code: Select all

30 <div class="cart">
74 <div class="cart">
111 <div class="cart">
I need change all lines to

Code: Select all

<div class="cart_test">
I know, that VQmod change first line, but I dont know how setup it for change all three lines. I tried offset attribute , but without success.

Can somebody help?

Thank you.

New member

Posts

Joined
Sat Mar 09, 2013 2:29 am

Post by Qphoria » Thu Jan 09, 2014 3:23 am

You need to use "index"

<search position="replace" index="1">
<div class="cart">
</search>

then do one for 2 and 3

More info here:
https://code.google.com/p/vqmod/wiki/Scripting

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Bohous » Thu Jan 09, 2014 11:01 pm

Hi,

I tried use index many times, without success. Dont know why.

New member

Posts

Joined
Sat Mar 09, 2013 2:29 am
Who is online

Users browsing this forum: No registered users and 21 guests