X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart Thumbnail Candy (https://forum.x-cart.com/showthread.php?t=62858)

elmirage001 03-19-2012 11:06 PM

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 :-)

PhilJ 03-20-2012 12:52 AM

Re: X-Cart Thumbnail Candy
 
Looks good to me :)

But Yages, if you need more help, just post a ticket.

iancolyer 03-21-2012 06:39 AM

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!

elmirage001 03-21-2012 07:26 AM

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; }

----------

iancolyer 03-21-2012 07:31 AM

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!

iancolyer 03-21-2012 07:37 AM

Re: X-Cart Thumbnail Candy
 
I made the change, and the images still out of center...

elmirage001 03-21-2012 08:01 AM

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>


iancolyer 03-21-2012 08:12 AM

Re: X-Cart Thumbnail Candy
 
I uploaded the original file, since no change was made...
please take a look now =)

thebluedoorboutique 04-13-2012 06:28 AM

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!

chris.ath 04-15-2012 10:07 AM

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 :D/


All times are GMT -8. The time now is 02:41 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.