| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Related Products.tpl - thumbnail alignment problem | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Related Products.tpl - thumbnail alignment problem
Hi,
I've edited related_products.tpl so that they display as thumbnail images, with 4 products across the page. The page views fine when I have 4 products (the maximum) but when I only add 2 products to up-sell there is a problem with alignment. eg, if you imagine 4 thumbnail boxes across the page numbered 1-4 from left to right, then with 2 products selected the products show only in position 2 and 4. It just looks a little odd to have the products sitting centred and to the far right of the page. Ideally, I'd like them both left aligned in box positions no. 1 & 2. I've posted my code below, and would really appreciate if someone can please point out where I'm going wrong. Thanks, Tracy Code:
__________________
NJB Sydney, Australia x-Cart Version 4.0.12 |
|||||||
#2
|
|||||||
|
|||||||
I don't know if you have fixed your problem or not so just in case, here is my solution (better late than never). Just replace the entire contents of your related_products.tpl file with this:
Code:
You will notice that the code will center all related products very nicely accross your page regardless of wether you have 1 product or 4. If you want more products then replace 4 with whatever number you wish. The mod also includes price and alternate price. Just remove it if you don't need it. Hope this helps.
__________________
X-Cart 5.3.5.4 |
|||||||
#3
|
|||||||
|
|||||||
Do you know how to stop the related products opening up in a new window?
Thanx Kirsten
__________________
Kirsten X_Cart Gold Version 4.0.11 www.silverimports.com.au www.diamondimports.com.au |
|||||||
#4
|
|||||||
|
|||||||
There is a setting in General Settings/Modules options for that
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
THANX Padraic found it
Another annoying problem now solved Do you think the above code would work for Recommended Products? And would there be much difference in the coding? As I want my recommends products to have the same layout Regards Kirsten
__________________
Kirsten X_Cart Gold Version 4.0.11 www.silverimports.com.au www.diamondimports.com.au |
|||||||
#6
|
|||||||
|
|||||||
Compare the two side by side and you'll see the differences. Both mods are posted in the Custom Mods forum.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
Quote:
Thanks for the Mod Michael!!! Just what I was looking for. If this forum had a star system, you'd get a few from me!!
__________________
X-Cart Gold 4.5.4 |
|||||||
#8
|
|||||||
|
|||||||
Re: Related Products.tpl - thumbnail alignment problem
Hi Balinor,
I realise that this is an old thread, but hoped I could get some help on a small problem that I cannot fix myself (and I have tried!). I am using the following code for my related_products.tpl: HTML Code:
This works great except that ii shows the name and price to the right of the thumbnail and I wish it that the name is centralised under the thumbnail image and the price is under the name √ could you help with this? I have attached a gif as it it now Many thanks Kev
__________________
X-Cart Gold 4.3 |
|||||||
|
#9
|
|||||||
|
|||||||
Re: Related Products.tpl - thumbnail alignment problem
try put <center></center> tag to your problem
__________________
x-cart 4.1.10 php 5 |
|||||||
#10
|
|||||||
|
|||||||
Re: Related Products.tpl - thumbnail alignment problem
Hi
many thanks for the reply - we needed to crack on and get the issue resolved so finally paid x-cart to solve the issue - thanks for the reply though Kev Quote:
__________________
X-Cart Gold 4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|