Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart Thumbnail Candy

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #21  
Old 03-19-2012, 11:06 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart Thumbnail Candy

Quote:
Originally Posted by yages
Does not show in featured products
I did the following mod in my featured.tpl

Please be sure to {* comment out *} the original code before changing.

In: skin/ability/customer/main/featured.tpl

Find:
Quote:
<a href="{$product.alt_url|default:$product.page_url| amp}" class="preview">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>

Change To:
Quote:
<a href="{$product.alt_url|default:$product.page_url| amp}">{include file="modules/Thumbnail_Candy/thumbnail_wrapper_above.tpl"}{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}{include file="modules/Thumbnail_Candy/thumbnail_wrapper_below.tpl"}</a>

Find:
Quote:
<a href="product.php?productid={$product.productid}"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>


Change To:
Quote:
<a href="{$product.alt_url|default:$product.page_url| amp}">{include file="modules/Thumbnail_Candy/thumbnail_wrapper_above.tpl"}{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}{include file="modules/Thumbnail_Candy/thumbnail_wrapper_below.tpl"}</a>

Phil, please jump in if I made any mistakes. I do all the time
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
PhilJ (03-20-2012)
  #22  
Old 03-20-2012, 12:52 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Thumbnail Candy

Looks good to me

But Yages, if you need more help, just post a ticket.
__________________
xcartmods.co.uk
Reply With Quote
  #23  
Old 03-21-2012, 06:39 AM
 
iancolyer iancolyer is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 63
 

Default Re: X-Cart Thumbnail Candy

Hi Phil... i still having the error on the products list, images are not centered (as they used to be):
http://www.depesca.com/ropa/zapatos/

Thanks for any help!
__________________
Ian Colyer
X-Cart Gold V-4.1.10
Reply With Quote
  #24  
Old 03-21-2012, 07:26 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart Thumbnail Candy

Quote:
Originally Posted by iancolyer
Hi Phil... i still having the error on the products list, images are not centered (as they used to be):
http://www.depesca.com/ropa/zapatos/

Thanks for any help!
Did you do the following from Phil's installation instructions? Mine were left justified until I used his code below.

Quote:
NOTES
=====

1) To center the thumbnail container, in skin/common_files/modules/Thumbnail_Candy/thumbnail_wrapper_above.tpl

Replace... .candy_wrapper_{/literal}{$product.productid}{literal} { position: relative; width: {/literal}{if $product.tmbn_x}{$product.tmbn_x}{else}{$product.i mage_x}{/if}{literal}px; }

With...

.candy_wrapper_{/literal}{$product.productid}{literal} { position: relative; width: {/literal}{if $product.tmbn_x}{$product.tmbn_x}{else}{$product.i mage_x}{/if}{literal}px; margin: 0 auto; }

----------
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #25  
Old 03-21-2012, 07:31 AM
 
iancolyer iancolyer is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 63
 

Default Re: X-Cart Thumbnail Candy

elmirage001: thanks for your reply
Actually Phil installed this for me...
Any way i will take a look to this

Many Thanks!
__________________
Ian Colyer
X-Cart Gold V-4.1.10
Reply With Quote
  #26  
Old 03-21-2012, 07:37 AM
 
iancolyer iancolyer is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 63
 

Default Re: X-Cart Thumbnail Candy

I made the change, and the images still out of center...
__________________
Ian Colyer
X-Cart Gold V-4.1.10
Reply With Quote
  #27  
Old 03-21-2012, 08:01 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart Thumbnail Candy

Quote:
Originally Posted by iancolyer
I made the change, and the images still out of center...
It does not look like the change was made. The code edit above adds "margin: 0 auto;" which is shown in my FireBug information below but does not show in yours. Please look at your coding and re-upload.

From my page
Quote:
<style type="text/css">
.candy_wrapper_16880 {
position: relative;
width: 125px;
margin: 0 auto;
}
.candy_thumb_16880 {
width: 125px;
height: 82px;
}


</style>


Your page
Quote:
<style type="text/css">
.candy_wrapper_18155 {
position: relative;
width: 185px;
}
.candy_thumb_18155 {
width: 185px;
height: 185px;
}


</style>
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #28  
Old 03-21-2012, 08:12 AM
 
iancolyer iancolyer is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 63
 

Default Re: X-Cart Thumbnail Candy

I uploaded the original file, since no change was made...
please take a look now =)
__________________
Ian Colyer
X-Cart Gold V-4.1.10
Reply With Quote
  #29  
Old 04-13-2012, 06:28 AM
 
thebluedoorboutique thebluedoorboutique is offline
 

Senior Member
  
Join Date: May 2011
Posts: 170
 

Default Re: X-Cart Thumbnail Candy

Would there be a way to add custom graphics? For example, if we wanted to create a corner graphic that said "SALE!" or "HOT!" or something using our our colors and graphics, could it be added?

Thanks Phil!
__________________
X-Cart Classic 4.4.X
Reply With Quote
  #30  
Old 04-15-2012, 10:07 AM
 
chris.ath chris.ath is offline
 

Member
  
Join Date: Aug 2007
Posts: 27
 

Default Re: X-Cart Thumbnail Candy

Quote:
Originally Posted by thebluedoorboutique
Would there be a way to add custom graphics? For example, if we wanted to create a corner graphic that said "SALE!" or "HOT!" or something using our our colors and graphics, could it be added?

Thanks Phil!

piece of cake
__________________
Chris
X-Cart 4.4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:54 PM.

   

 
X-Cart forums © 2001-2020