Need to hide a category

Started by mshultise on 20 Jun 2012, 7:46 PM · Views: 559

Results 1 to 3 of 3
20 Jun 2012, 7:46 PM
#1
mshultise avatar

mshultise

Zen Follower

Join Date:
Feb 2005
Location:
Captain Cook, Hawaii
Posts:
172
Plugin Contributions:
0

Need to hide a category

We have a category with products that we would like to limit to new members, allowing them to add to the cart until they have sucessfully checked out the first time.

Customer currently running 1.3.9h but can probably upgrade to 1.5.0 if need be.

More details:

The website is a co-op which charges a membership fee to new members (we are using one-time-membership). It adds a product to the cart and disables the ability of the customer to remove. That is working fine.

However we have a category with products that we would like to limit to new members, allowing them to add to the cart until they have sucessfully checked out the first time.

Any ideas on how to easily do this? I would like to actually hide the category rather than display it and not allow people to buy it.

An acceptable alternative would be to hide a product from a particular customer.

Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

20 Jun 2012, 11:05 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need to hide a category

You could customize the function:

  function zen_get_buy_now_button($product_id, $link, $additional_link = false) {

in the file:
/includes/functions/functions_general.php

and check the master_categories_id of the Product and then check if the customer has an order yet ...

Are customers forced to login before they can add to cart?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Jun 2012, 10:52 PM
#3
mshultise avatar

mshultise

Zen Follower

Join Date:
Feb 2005
Location:
Captain Cook, Hawaii
Posts:
172
Plugin Contributions:
0

Re: Need to hide a category

We do not require customer login before adding to the cart.

We discussed the issue with the customer and that may have solved the problem. This is one of those cases where the customer is not always right :-)

If he continues to order from that category I'll modify the function you mentioned. Thanks.

Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)