Page 1 of 1

Product image in checkout - Works manually- Vqmod needs help

Posted: Fri Apr 01, 2016 11:08 pm
by mam_sm
Hello all,

This is a free VQmod, as give back to this great the community:)
It's going to add product image on cart in checkout confirmation step.

If you do it manually it is going to work perfectly. I have made VQmod for this, but it did not work ??? So if any dev helps, it would be appreciated

Test on Opencart 1.5.6.4 on the original Opencart checkout

Thanks and enjoy it :)

Re: Product image in checkout - Works manually- Vqmod needs

Posted: Sat Apr 02, 2016 12:16 am
by IP_CAM
unfortunately, to my knowledge, this will NOT work (Samples):

Code: Select all

	<search position="after"><![CDATA[<?php endif; ?>
      <tr>]]></search>

Code: Select all

		<search position="after"><![CDATA[<thead>
      <tr>]]></search>

Code: Select all

<search position="replace"><![CDATA[$this->data['products'] = array();

			foreach ($this->cart->getProducts() as $product) {]]></search>
<SEARCH_WHATEVER..><![CDATA[1234567890]]></search>
must be a ONE LINER, with 'left-right white-space free' Limitations, at best, to make sure.

You would have to use someting like this, to place it after the <tr> TAG:

Code: Select all

<search position="after" offset="2"><![CDATA[<?php endif; ?>
Download/Install this Tool, to find out, how this 'OFFSET' Stuff works.
vQModerator
http://www.opencart.com/index.php?route ... on_id=8247

Good Luck ;)
Ernie

PS: my Solution to this, I did it also in hard-coded Version
I could not test your Mod anyway, I have no <?php endif; ?> in my xx.tpl File... :D

Re: display Product Images in Checkout Confirm Section

Posted: Sat Apr 02, 2016 1:24 am
by IP_CAM
And, just to mention it! ;)
Ernie