Forums / Setting Up Categories, Products, Attributes / Linked product but different product description?

Linked product but different product description?

Views: 604

Results 1 to 5 of 5
8 Apr 2011, 3:19 PM
#1
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Linked product but different product description?

Is it possible to link two products (in two different categories or the same category) but have different product descriptions?
So far I haven't found any contributions that can do that.

The reason is that I have one product which is sold under the same model number but has slightly different descriptions. I would like this product to update the stock quantity regardles of which of the product descriptions the customer purchase from.
Any help is much appreciated, thanks.

8 Apr 2011, 3:47 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Linked product but different product description?

One way to do this would be to put both descriptions into the textarea, each wrapped in a div with an id. Then use per-category stylesheets to show and hide the two divs appropriately.

[description textarea]

<div id="prod23version1">Description for version 1 in category 72.</div> <div id="prod23version2">Description for version 2 in category 86.</div> <div id="prod23common">Description common to both versions - will be displayed unless disabled.</div>

stylesheet c_72.css
#prod23version1 {display: block;}
#prod23version2 {display: none;}

stylesheet c_86.css
#prod23version1 {display: none;}
#prod23version2 {display: block;}

8 Apr 2011, 3:55 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Linked product but different product description?

Note that you couldn't do this with two products in the same category, as one product id will not be displayed twice in one category. (You can't link a product to the same category it is already in.)

8 Apr 2011, 4:34 PM
#4
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Re: Linked product but different product description?

Great, thanks a lot, I will give this a try! :bigups:

8 Apr 2011, 9:32 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Linked product but different product description?

It just occurred to me that this will work automatically for the product info page, but product listings strip out HTML. There are plenty of threads describing how to enable HTML for listings; search for zen_clean_html.