Here's the secnario i have I want to accomplish:
I have 2 poduct tree's listed in the left side of the screen, no problems there.
The problem is I want the presentation in the product list and the product spots that go with it to be different the 2 tree's in between, basically because the 2 types of products i present are radically different and needs different ways of presentaton
How do I accomplish this?
Different product list/spot depending on product tree used.
Hello!
Specify please, that you mean. You want, that each group of products had a different design or something another?
Best regards,
Roman
heya Roman, Yep that was
heya Roman,
Yep that was basically the idea.
and by group i mean each group attached to a specific product tree.
so all products that are browsed through product tree A is shown in 1 way.
All products browsed through product tree B is shown in another way.
thanks in advance.
Best Regards
Pierre
Javascript and the open
Javascript and the open fields...I have done this method with one of my sites.
Add some text into OpenField5 (or any other number you decide) ie type1
In the Product List page add the code;
<script type="javascript/text">
if ($product_open_field5$ == "type1" )
{
document.write ("Create all your text here if OpenField equals 'type1'")
}
Else
{
document.write ("Create all your text here if OpenField does not equal 'type1'")
}
</script>
Be aware that you will not be allowed to use any of the variables that utilise " (quotes) as it will generate errors in the "document.write" lines, ie $product_add_action$ & $product_picture#$ so you will need to create the code yourself.
To get around this, I've added the item code in a product_open_field, this is not the item code that you generate but the automatic number that is created.
You can find the number by going to Products --> Products --> Products within the admin menu.
Expand your product tree to display the products to the right.
When you hover your mouse over the title it will display "javascript:modifyProduct('437', 1, 0);" on the status bar.
In this example "437" is the unique code
Modify the product to add this number to an OpenField, say #6 and use the following code to create the "Add to cart" button...
document.write ("<input src='AddToCartImage' value='' class='ProductAddButton' name='add$product_open_field6$' type='image'><a name='$product_code$'></a>")
You just need to edit;
src='AddToCartImage' - to point to your button image
name='add$product_open_field6$' - to point to your open field to include the auto generated code (remember the "add" word before the OpenField variable)
The above parameter will then display;
name='add437'
...using the example number of 437 from above.
This is useful to show a different Add To Cart button if the item is out of stock like I have on one of my sites
Thanks, yeah that should
Thanks,
yeah that should definetly fix it.
I've used openfields and js for similar activities...I was just hoping there might be a built in way of doing it to avoid it ;)
Alas, not.