News:

Support the VirtueMart project and become a member

Main Menu

Background by Product Category ?

Started by lipes, March 07, 2012, 03:50:52 AM

Previous topic - Next topic

lipes

Hi.
It's possible to have a different background image for each Product Category name?
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

John2400

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?

lipes

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...
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

John2400

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 -

lipes

#4
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!
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

John2400

#5
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

corymp

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...
VM 2.0.4 Stable
J2.5.4