You are here:  » css issue

Support Forum



css issue

Submitted by Paul1107 on Fri, 2010-02-19 10:04 in

Hi David,

Wonder whether you can offer some advice

I have added featured products to my site womensdresses.org.uk, as you will see if you pop over there the output does not wrap, and so displays outside the intended .

How would I get it to display correctly baring in mind I'm also looking to increase the size of the image to that of the other products on there which is 150px wide and I will be adding some further products.

Thanks

Paul

Submitted by support on Fri, 2010-02-19 10:22

Hi Paul,

As there are currently more showing that would fit in a standard page width (e.g. 1024) do you mean that you want to have more than one row?

There's an easy mod to html/featured.php (or equivalent if using a special version for the external scripts) in the following thread which should do the trick...

http://www.pricetapestry.com/node/284

Cheers,
David.

Submitted by Paul1107 on Fri, 2010-02-19 10:39

Hi david

Works a treat thanks!

Regarding the images, the file html/featured includes the following

            <p><img onclick='JavaScript:popup("<?php print $product["image_url"]; ?>");' border='0' height='<?php print ($_GET["content"]?"150":"100"); ?>' src='<?php print $product["image_url"]; ?>' alt='<?php print $product["name"]; ?>' /></p>

Which should increase the image size to 150px high, but the images still remain 100px high, though on the other images on same page and formatted with the same file they display as intended at 150px high?

Regards

Paul

Submitted by support on Fri, 2010-02-19 10:44

Hi Paul,

That would indicate that $_GET["content"] contains something. If you always want these images to be 150px, instead of:

height='<?php print ($_GET["content"]?"150":"100"); ?>'

...just use:

height='150'

Cheers,
David.

Submitted by Paul1107 on Fri, 2010-02-19 10:52

Great, Thanks again David!

Paul

Submitted by Paul1107 on Fri, 2010-02-19 11:18

David,

sorry to pester, but I trying to get the searchform to centre, but on that same page the searchform has no class or id attached to it, even though I've checked with html/searchform.php and it shows in there as .

Is there another searchform somewhere?

Cheers

paul

Submitted by support on Fri, 2010-02-19 11:27

Hi Paul,

In the external script, the search form is simply enclosed in tags.

If you search for the following code in your external.php:

    print "<p>";
    print "<form method='GET'>";

...you could then REPLACE that with:

    print "<p class='externalsearch'>";
    print "<form method='GET'>";

...for example, and then you can style .externalsearch in your CSS...

Hope this helps!

Cheers,
David.

Submitted by Paul1107 on Fri, 2010-02-19 12:31

Thanks David,

Not working how I want but but just have to play around with it, but I now have attached the .featured to the search form.

If I have say 2 websites sharing the same PT installtion, or it want to have featured items for different categories of products, how would that best be implemented?

Regards

Paul

Submitted by support on Fri, 2010-02-19 15:21

Hi Paul,

2 ways - you could implement the "featured sections" mod from this thread...

http://www.pricetapestry.com/node/3243

...or alternatively add a parameter that you can include in your calling code, for example $featured_category = "Category Name"; and then make featured products code select random products from that category.

Either version can be plumbed into your external.php if you want to email it to me with your preferred method...

Cheers,
David.

Submitted by Paul1107 on Mon, 2010-02-22 07:44

HI David,

Sorry for the delay in getting back to you...

I guess there's no obvious benefit of one over the other?

So option2 would probably be the best, email on its way...

Thanks again

Paul