You are here:  » Aesthetic changes

Support Forum



Aesthetic changes

Submitted by Paddy on Thu, 2009-05-28 17:08 in

Hi,
I'm trying to make some simple aesthetic changews to the layout of the product page. I want to call price.php before product.php. I've switched the reference and now it doesn't show the product information. I also made a new file called product price that emalgimated both files, this didn't work either. Any ideas?
Thanks,
Patrick

Submitted by support on Fri, 2009-05-29 08:55

Hi Patrick,

What's happened is that html/prices.php generates a variable called $product (as part of the foreach loop), and this overwrites the $product variable used by html/product.php

To fix this, using your text editor, do a global Search and Replace on html/prices.php changing

$product

...to something like:

$priceproduct

That should do the trick!

Cheers,
David.

Submitted by Paddy on Fri, 2009-05-29 11:00

Thanks David, that's working now. This might seem a little stupid, but it's been so long since I've worked with html table I'm as little rusty. How ca I add cell padding? I've tried

"<table cellpadding="2""

but again, that hasn't seemed to work.

Submitted by support on Fri, 2009-05-29 12:45

Hi,

It depends on the PHP context - if you're inside a PHP section of code then you need to make sure that the quotes don't interfere with the script; otherwise it should just be the plain old HTML for cellpadding (although it my overridden by CSS so check if that's the case)

<table cellpadding='2'> ...rest of table HTML... </table>

If you're still not sure, if you could post slightly more of the code surrounding the mod i'll check it out for you!

Cheers,
David.