Add overlay image in Stock / Sold out

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeAdd overlay image in Stock / Sold out

This topic has been marked as resolved.

is it possible to add an in stock image like on this site HERE
if so? how would we achieve it ? and when the item is sold out it would say sold out obviously, i think this would be a great addition to a really great theme like shoppica

  • This reply was modified 4374 days ago by  werepair.
May 7, 2012 at 10:48 pm #8649
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
May 9, 2012 at 11:02 am #8711

Hi thanks for the info, it worked a treat , i have made a few modifications, made a vQmod to save editing the core files and making the image square and showing it in-line etc ( see attached image )
now i have it set up to show green for the in stock items is there any way i can make the text “out of stock” show in red coloured back ground instead of green.
best regards

May 9, 2012 at 7:16 pm #8743
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
May 11, 2012 at 8:51 am #8783

thanks for the reply, which file do i need to add the class too
catalog/view/theme/shoppica/template/product/product.tpl
best regards

May 11, 2012 at 10:12 am #8791
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
May 11, 2012 at 10:22 am #8793

were do i put this code in what file and were ?


<?php if ($stock == 'In Stock'): ?>
<dd class="s_stock_status s_stock_instock"><span><span><?php echo $stock; ?></span></span></dd>
<?php elseif ($stock == 'Out of Stock'): ?>
<dd class="s_stock_status s_stock_outstock"><span><span><?php echo $stock; ?></span></span></dd>
<?php else: ?>
<dd><?php echo $stock; ?></dd>
<?php endif; ?>

best regards

  • This reply was modified 4370 days ago by  werepair.
May 11, 2012 at 11:15 am #8807
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
May 16, 2012 at 9:43 am #8898

Hi i have this working great on my site with your help, however shoppica 2 is using rich snippets, how can i implement this mod to use with your modified product.tpl from this thread http://support.themeburn.com/topic/please-help-to-adapt-small-module

best regards

July 10, 2012 at 12:54 pm #11210
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
July 16, 2012 at 9:18 am #11334

Thankyou very much, its working great.
appreciated.

Best Regards

July 16, 2012 at 9:40 am #11335

Glad we’ve helped, mate :)

Best,
ThemeBurn team

July 16, 2012 at 4:40 pm #11397
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.