VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: lipes on March 07, 2012, 03:50:52 AM

Title: Background by Product Category ?
Post by: lipes on March 07, 2012, 03:50:52 AM
Hi.
It's possible to have a different background image for each Product Category name?
Title: Re: Background by Product Categories ?
Post by: John2400 on March 07, 2012, 13:06:52 PM
Hi Lipes,
I've read your post a few times -
* trying to work out exactly what you mean?
* on the front page you wish to have colour behind the names or categories?
Or in the side bar you wish to have small images at the end of the names
or images where?
Title: Re: Background by Product Categories ?
Post by: lipes on April 06, 2012, 02:05:00 AM
For example:
In the VM Product Category A -> website background-image etc1.jpg
In the VM Product Category B -> website background-image etc2.jpg
In the VM Product Category C -> website background-image etc3.jpg

.... is possible to have something like this!? (yes/no question)
in fact i never see this.. but i think its a good ideia to promote products promotions (with background imgs) in differents categories...
Title: Re: Background by Product Categories ?
Post by: John2400 on April 06, 2012, 03:26:30 AM
Lipes:

I like the idea - the front page is one colour and every time you clik on a product it jumps to the category and it has a special colour just for all those products in that category.

I am sure that this can be done but that is not my speciality -
* I have used a wrapper page designed in HTML for the front pages - and placed images on the same background - like their own colour -

* that is every cake has a pink photo background - they all join up and it looks similar to what you say -
Title: Re: Background by Product Categories ?
Post by: lipes on April 06, 2012, 03:52:24 AM
Hum.. i'll have to investigate/search that on www aka google search engine.. lol

I dont understand much of what "wrapper" term means .. i'm not yet familiar with some html/php/etc english terms ..
My index page (in my test site) has a background image with
(let me see on the templates folder...)
228 Kbts in .png ... xD yes I'm crazy .... llolo (i will have to reduce that in future )... but i'm just thinking how wonderfull could be if we had that possibility to add backgrounds how manyas  Product Categories we have \ or how many bg img we'll like to apply on that ...

:)

Best Regards to Australia!
Title: Re: Background by Product Categories ?
Post by: John2400 on April 06, 2012, 04:06:38 AM
Hi the wrapper ,

It is a term / link in joomla - where you can embed a normal web site into a Joomla menu - thus you can do the same thing in VM - it always an easy way to get around how you might like your front page on your site
to look a little bit different.

That's a quick - idea
Title: Re: Background by Product Categories ?
Post by: corymp on April 06, 2012, 07:12:21 AM
in your template can you put an if else statement in php in your body tag for a background that depends on whether you are on a category or not? set the else to your standard background and if's for each category? I'm not a php programmer by any means but i know you can modify anything with php...... I get by with simple if statement... lol. might be a bit of figuring out which variable to use...