Hi,
How can i put a add_to_cart button to product slideshow right after de product description.
Thank you,
Pedro
|
|
Hi,
I found it. I put here the code so, others can add this feature.
Open catalog/view/theme/shoppica2/template/tb/intro/products.tpl , find this piece of code:
<p class="s_desc"><?php echo substr($product['description'], 0, 300); ?>...</p>
and add this one right afterwards:
<a id="add_to_cart" class="s_button_1 s_main_color_bgr" href="javascript:;" onclick="addToCart('<?php echo $product['product_id']; ?>');">
<span class="s_text s_icon_24"><span class="s_icon"></span> Add to cart</span>
</a>
I made this modification with vqmod so, future updates don’t affect this mod.
:)
-
This reply was modified 4260 days ago by sopedro.
-
This reply was modified 4260 days ago by sopedro.
|
|
Hi Pedro,
Can you upload the zipped vqmod file, please?
It will surely be helpful for someone
Thanks,
ThemeBurn team
|
|
yes, sure.
Here is the file. Just move the .xml file to the vqmod/xml folder of your opencart installation.
Enjoy it
|
|
I tried but didn’t work, The variable is missing.
can you help me?
|
|
@Finezze
Unfortunately there is no language variable for “add to cart” label for the intro template.
We explain, how to add a new language variable here:
http://support.themeburn.com/topic/add-custom-translation-ready-text
Best,
ThemeBurn team
|
|