Zen Cart Logo
Forums / General Questions / item as information only

item as information only

Locked

Views: 935

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
20 Mar 2008, 1:18 PM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

item as information only

i have a feu items on my store which are basically accessories to other items and are not feasable to sell on there own.

what im wanting to do is have these items as information so please can read the spec of the item and then ill have an atribute for the item on another item i actaly sell.

ie a page with the info on aa bataries then a AA bararies adribute on a walkman

they cant actally add the AA bataries to the cart and check them out.

ive just got them set to call for price at moment.


20 Mar 2008, 2:49 PM
#3
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: item as information only

oh ill try that, with having the call for price also stops the adding to the cart


20 Mar 2008, 5:05 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: item as information only

You can achieve this using a combination of a Radio Button attribute, and custom stylesheets.

  1. Give your accessory products a ZERO price and then put all your accessory products into a separate category. Note the CATEGORY ID.

  2. Create a Radio Button attribute called - Accessory.

  3. Give that attribute a value called - This item is not sold individually.

  4. Apply the attribute to all your accessory products.

  5. Make it the default attribute for the product. (So that the radio button is highlighted when the product info displays

Create a CUSTOM STYLESHEET for the category ID (see 1. above).

Into that stylesheet, have ONLY the following:-
(where ??= your category ID number)

/**
 * Category ?? CSS Stylesheet
 *
 */
 
#cartAdd, #productDetailsList, #attribsOptionsText{
	display:none;
	}

For information on creating a category-specific stylesheet, view the CSS_read_me.txt file in your css folder (or the classic/css folder).

What is happening is this.

By creating and applying an attribute, you force the product listing pages to come up with the "more info..." link, instead of an "add to cart" box.

If a person clicks on a product in the specific category, the custom stylesheet will apply.

When the INFO page displays...

My css, above, says:-

Do not display the add to cart box...
Do not display any product details (model number, weight)...
Do not display the Attributes Option Text (eg: Please Choose...)

But it DOES display the attribute text, informing the viewer that the product is an accessory.

See it in operation here:-
**
https://www.buysouthafrican.co.uk**

I have TWO categories. The first one will not be influenced by the customised stylesheet, but the second one (listing AA batteries) will be influenced by it.

In my case I have created PRODUCT- SPECIFIC stylesheets (p_4.css and p_5.css). But you can create a CATEGORY stylesheet.

What you are achieving is this

20 Mar 2008, 11:14 PM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: item as information only

If you wish to hide the attributes, then include this " #productAttributes " in your display:none style command.

You can add text to the product description explaining why it's not for sale individually.

25 Mar 2008, 4:10 PM
#7
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: item as information only

fairstcape thanks for that idea how ever im just going to keep the price on and have it as call for price to stop the product being checked out.

i chose this way because of 2 main reasons.

  1. simple click of a button to turn the product on and off
  2. this allows me to still use the googlebase feeder to list these accessories on there items.

the products that the accessories marry up to all have an attribute to add the item with a sale.

thanks for your support and it is a good idea just not right for me.