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

Customizing Default Home Page in Fashion Mosaic Template?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-23-2009, 12:29 PM
  DezineJunkie's Avatar 
DezineJunkie DezineJunkie is offline
 

Senior Member
  
Join Date: Jan 2008
Posts: 174
 

Default Re: Customizing Default Home Page in Fashion Mosaic Template?

ok mine are coming up in 4 across-the 125x125 puts them at 4 across
these are SUB CATS tho not featured product-
but it would be nice to have featured products 4 across



Quote:
Originally Posted by jdkerr
Are you trying to get four across from the Categories menu? If so, I have it working, but don't think I did anything special.

What I am doing, is keeping all my thumb nailes to a size of 125x125.

This is how the categories look on my site:

http://www.pcboard.ca/4-across.jpg
__________________
X-CART Pro V.4.3.0
PHP version 5.2.11
MySQL version 5.0.81
Architecture x86_64
Apache version 2.2.14 (Unix)mod_ssl/2.2.14
Operating System: Linux
Dedicated Ip
cPanel Pro 1.0 (RC1)
cPanel Version 11.24.5-RELEASE
Modules: DL Expander, DL Products, One Page Checkout, Dynamic Images,
Multicolumn Recommends, Narrow by Search, Random Products Tabs.
X-AOM, SALES-N-STATS 1.3 , X-Offers-4.1.9, X-Magnifier41x, X-Fancy Categories,
X-RSS Feeds, Static Meta Tags , X-AJAX Rating System v4.1


Reply With Quote
  #12  
Old 11-23-2009, 01:27 PM
  DezineJunkie's Avatar 
DezineJunkie DezineJunkie is offline
 

Senior Member
  
Join Date: Jan 2008
Posts: 174
 

Default Re: Customizing Default Home Page in Fashion Mosaic Template?

How to make Featured products larger ?
What should the code say?

{*
$Id: featured.tpl,v 1.23 2009/06/22 07:16:43 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $f_products ne ""}
{capture name=dialog}
{include file="customer/main/products.tpl" products=$f_products featured="Y"}
{/capture}
{include file="customer/dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog sort=true additional_class="products-dialog dialog-featured-list"}
{/if}
__________________
X-CART Pro V.4.3.0
PHP version 5.2.11
MySQL version 5.0.81
Architecture x86_64
Apache version 2.2.14 (Unix)mod_ssl/2.2.14
Operating System: Linux
Dedicated Ip
cPanel Pro 1.0 (RC1)
cPanel Version 11.24.5-RELEASE
Modules: DL Expander, DL Products, One Page Checkout, Dynamic Images,
Multicolumn Recommends, Narrow by Search, Random Products Tabs.
X-AOM, SALES-N-STATS 1.3 , X-Offers-4.1.9, X-Magnifier41x, X-Fancy Categories,
X-RSS Feeds, Static Meta Tags , X-AJAX Rating System v4.1


Reply With Quote
  #13  
Old 11-23-2009, 01:53 PM
  DezineJunkie's Avatar 
DezineJunkie DezineJunkie is offline
 

Senior Member
  
Join Date: Jan 2008
Posts: 174
 

Default Re: Customizing Default Home Page in Fashion Mosaic Template?

I found this mod check out this link to page

http://forum.x-cart.com/showthread.php?t=15579&highlight=first+detailed+im age

First detailed image instead of thumbnail
Ever wanted to replace the thumbnail on the product page with the first image from your detailed images and then have your detailed images section start with the second detailed image?

Well here is how to do it

This code is for the 4.0 branch (the version for 3.4 and 3.5 is very similar)

You need to modify two files:
customer/product.tpl
modules/detailed_product_images/product_images.tpl

You will also need to make a new file:
modules/detailed_product_images/product_images_one.tpl

In product.tpl
find this:
Code:

<TD valign="top" align="left" rowspan="2" width="100"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"} </TD>


replace with this:
Code:

{***----ORIGINAL THUMBNAIL---- <TD valign="top" align="left" rowspan="2" width="100"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"} </TD> ----ORIGINAL THUMBNAIL----***} {***--FIRST DETAILED IMAGE--***} <td valign="top" align="left" rowspan="2" width="100"> {if $active_modules.Detailed_Product_Images ne ""} {include file="modules/Detailed_Product_Images/product_images_one.tpl" } {/if} </td> {***--FIRST DETAILED IMAGE--***}



Then in product_images.tpl
find this:
Code:

<img src="{$images[image].tmbn_url}">


Replace with this:
Code:

{***----ORIGINAL CODE------- <img src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}"> --------ORIGINAL CODE***} {***--Startwithsecondimage---***} {if $images[image].tmbn_url ne $images[0].tmbn_url } <img src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}"> {/if} {***--Startwithsecondimage---***}



Make a new file in modules/detailed_product_images called product_images_one.tpl

Put this code in it:
Code:

{* $Id: product_images_one.tpl,v 1.7.2.2 2005/07/29 10:43:25 CCS Exp $ *} {if $images ne ""} <div align=left> {section name=image} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} <img src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}"> {else} <img src="{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}" alt="{$images[image].alt|escape}"> {/if} {/if} {/section} </div> {/if}


That's it
















Love it!
Works great! Does anyone know how this could be modified so the "detailed images" box only shows up if there are more than one detailed image? I have lots of products with only one image, and I now have one detailed image on top (nice) but a big old empty dialog box at the bottom. Looks like there is something missing.

Thanks again for the great mod!
__________________
x-cart 4.0.14
Thanks Reply With Quote Quick reply to this message
mortickles
View Public Profile
Send a private message to mortickles
Find all posts by mortickles
Add mortickles to Your Buddy List
#10 Report Bad Post
Old 08-18-2005, 02:40 AM

Light Speed Light Speed is offline

[X-Adept]
X-Adept

Join Date: Mar 2003
Posts: 919

Default Re: Love it!
Quote:
Originally Posted by mortickles
Works great! Does anyone know how this could be modified so the "detailed images" box only shows up if there are more than one detailed image? I have lots of products with only one image, and I now have one detailed image on top (nice) but a big old empty dialog box at the bottom. Looks like there is something missing.

Thanks again for the great mod!

There is probably a way to set an if statement at the detail dialog insert but I am too swamped to look into it. Maybe somebody else can take a stab at it?






wrap it with

Code:

{if $images[1].image} detailed include code {/if}
__________________
X-CART Pro V.4.3.0
PHP version 5.2.11
MySQL version 5.0.81
Architecture x86_64
Apache version 2.2.14 (Unix)mod_ssl/2.2.14
Operating System: Linux
Dedicated Ip
cPanel Pro 1.0 (RC1)
cPanel Version 11.24.5-RELEASE
Modules: DL Expander, DL Products, One Page Checkout, Dynamic Images,
Multicolumn Recommends, Narrow by Search, Random Products Tabs.
X-AOM, SALES-N-STATS 1.3 , X-Offers-4.1.9, X-Magnifier41x, X-Fancy Categories,
X-RSS Feeds, Static Meta Tags , X-AJAX Rating System v4.1


Reply With Quote
  #14  
Old 12-21-2009, 11:56 PM
 
shimmy shimmy is offline
 

Advanced Member
  
Join Date: Jun 2008
Posts: 41
 

Default Re: Customizing Default Home Page in Fashion Mosaic Template?

I was wondering if anybody knew how to make the welcome logo on Fashion mosaic into a Link. On my home page www.hatsandheadscarves.com I want the big welcome.jpeg image to link to either a static page or category page
Thanks
__________________
Shimmy

www.hatsandheadscarves.com
Feedback welcome
shimmy@hatsandheadscarves.com
x-cart version 4.3
one page checkout & buy together mods

Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:42 AM.

   

 
X-Cart forums © 2001-2020