New Zenner
- Join Date:
- Dec 2008
- Location:
- Rimini, Italy, Italy
- Posts:
- 67
- Plugin Contributions:
- 0
How to test if a product is linked to other categories?
Hi everybody,
in my shop, I have 2 sections:
- products I phisically have in stock (immediate shipping)
- products I can order from foreign distributor (about 1 month of waiting)
I've put whole distributor's catalog in the second section. Then I linked products I currently have to first section categories.
Now I'm testing in tpl_product_info.php if customer came to product from first (1) or second (2) section categories.
If (1) then I show "IMMEDIATE SHIPPING" near of product price.
else I show "product available in about one month"
That's right for customers browsing my shop, but not for ones coming from some search engine: if they land on a second section product actually present in first section too, they have to find the "IMMEDIATE SHIPPING" message.
So I have to test if the currently shown product is linked in two (or more) categories.
Is it possible (certainly yes)? How?
Thanks in advance
Francesco