Post by nefram » Wed Dec 21, 2011 2:31 am

Hello, this is a litle vqmode that i use with opencart 1.5.1.3. It simply make the image of product in a link that can be used like the edit button. It was made with the latest version of vqmod.
Seem like i cant atach a file i will post the code here.

Code: Select all

<modification>
	<id>Click on image</id>
	<version>1.0</version>
	<vqmver>1.2.3</vqmver>
	<author>nefram</author>
<file name="admin/view/template/catalog/product_list.tpl">
		<operation>
			<search position="replace"><![CDATA[ <td class="center"><img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" style="padding: 1px; border: 1px solid #DDDDDD;" /></td> ]]> </search>
			<add><![CDATA[ <td class="center"><?php foreach ($product['action'] as $action) { ?>
                 <a href="<?php echo $action['href']; ?>"><img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" style="padding: 1px; border: 1px solid #DDDDDD;" /></a> 
                <?php } ?></td> ]]></add>
		</operation>

</file>

</modification>

Newbie

Posts

Joined
Fri Mar 18, 2011 2:19 am

Post by maelga » Thu Jun 21, 2012 10:19 pm

Very useful. Thanks!

I put your code into an .xml file.
Works for me in 1.5.3.1.

Attachments


Newbie

Posts

Joined
Wed Jun 13, 2012 11:45 pm

Post by seank123 » Mon Jun 25, 2012 11:40 pm

Excellent - works perfectly! Many thanks.

Newbie

Posts

Joined
Tue Nov 22, 2011 7:14 pm

Post by javabean » Sat Sep 01, 2012 10:45 am

thanks! this works great in 1.5.4.1

Newbie

Posts

Joined
Wed Aug 29, 2012 2:11 am
Who is online

Users browsing this forum: No registered users and 8 guests