add_to_cart button in product slidshow

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart Themeadd_to_cart button in product slidshow

This topic has been marked as resolved.

Hi,

How can i put a add_to_cart button to product slideshow right after de product description.

Thank you,

Pedro

August 28, 2012 at 4:05 pm #13019

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.
August 28, 2012 at 8:25 pm #13056

Hi Pedro,

Can you upload the zipped vqmod file, please?

It will surely be helpful for someone :)

Thanks,
ThemeBurn team

August 30, 2012 at 11:58 am #13142

yes, sure.

Here is the file. Just move the .xml file to the vqmod/xml folder of your opencart installation.

Enjoy it :)

August 30, 2012 at 12:37 pm #13153

I tried but didn’t work, The variable is missing.

can you help me?

September 1, 2012 at 9:10 pm #13204

@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

September 4, 2012 at 12:13 pm #13264
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.