Zen Cart Logo
Forums / General Questions / Is this scenario possible?

Is this scenario possible?

Locked

Views: 727

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Apr 2010, 3:05 PM
#1
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Is this scenario possible?

I would like to create one category that contains low priced items, but to purchase from this category a minimum of, maybe, $15.00 needs to be purchased from this category.

Does anyone have ideas how this could be done?

edit:

this will not be the only category to exist. The remaining categories would be regular purchasing.

27 Apr 2010, 7:11 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Is this scenario possible?

You could customize the function for the buttons so that if the amount is < 15.00 then the button is returned as:
BUY MORE TO BUY THIS

or something like that ...

Check the function zen_get_buy_now_button to see where they are controlled ...

27 Apr 2010, 10:24 PM
#3
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: Is this scenario possible?

Would that be includes/functions/functions_general.php

this section?

// Switch buy now button based on call for price sold out etc.
  function zen_get_buy_now_button($product_id, $link, $additional_link = false) {
    global $db;

What would be added and would it affect the purchase of items in other categories if the value were lower than 15.00?

28 Apr 2010, 5:43 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Is this scenario possible?

You can test the products_id and check for its master_categories_id and if the total in the cart is < 15 ... return back text or an image ...

28 Apr 2010, 5:06 PM
#5
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: Is this scenario possible?

Thanks Ajeh but I'm not at a point where I can do this by constructing the code on my own. :shocking: I can follow directions where a mod might include instructions to alter some code and what needs to be replaced and with what.

I was hoping maybe there was a way to do this through admin with attributes or a combination of techniques.

It would make a nice mod though.

28 Apr 2010, 5:29 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Is this scenario possible?

There is nothing built into the code for this but it could be customized to manage this type of thing ...

Using the function zen_get_buy_now_button just saves a lot of time in having to code for this everywhere as it manages the add to cart/buy now ...