ok, I accept this, my very last effort, go give you a hint on this:
DOWNLOAD:
add to cart - go to product VqMod, created by Designer-pro.net
open the
addtocart-gotoproduct1.zip and have a look.
You then find things like that, in the VqMod, as well as later in the OC Source-Files, related:
Code: Select all
<div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></div>
THIS MEANS. that this line, in the FILE Section, linked to this COMMAND, like in the File:
Code: Select all
<file name="catalog/view/theme/*/template/module/bestseller.tpl">
at the very end of the
bestseller.tpl File:
Code: Select all
<?php } ?>
<div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></div>
</div>
<?php } ?>
</div>
</div>
</div>
and placed in here,
in the VqMOD:
Code: Select all
<search position="replace"><![CDATA[
<div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></div>
]]></search>
in it's
HTML Code looks like this:
Code: Select all
<div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /></div>
MUST BE REPLACED by the following line, looking like this:
Code: Select all
<div class="cart"><a href="<?php echo $product['href']; ?>" class="button"> View this Product </a></div>
in all the Files, related, where Products are shown in category-format. Whatever you want to name THE BUTTON!
MEANING, that in
ALL the FILES, related, the Line, you have to insert, instead of the original, in the bestseller.tpl, by example, as used/shown here, would be this:
Code: Select all
<div class="cart"><a href="<?php echo $product['href']; ?>" class="button"> View this Product </a></div>
but since it matches all xxx-tpl files involved, don't worry, you can't do much wrong.
----
GENERAL ADVISE , when 'handling' VqMod's:
Search for EACH LINE, as placed AFTER THE
replace"><![CDATA[ and BEFORE THE
]]></search>
as well as after the
<add><![CDATA[ and BEFORE THE
]]></add>, WITH ZERO GAP's, handmade...,
additionally, to what exists, by default!, and make NO Errors, copy/pasting, by error, or deleting some
[ , or a
], or
whatever, not belonging to the LINE wich has to be changed.LEAVE NO spaces, anywhere, by accident, and then, you'll have, what you want it to be!
And there is MORE than just a
REPLACE-Function in VqMods, but this is another Theme. Just to mention it.
---
It's as simple as that, VqMod's are the NUMBER ONE IDEAL SOURCE, to show, how & where modify SOURCE!
Good Luck
Ernie