Zen Cart Logo

Showcase mode and offers

Views: 1,049

Results 1 to 7 of 7
5 Dec 2011, 12:30 AM
#1
viper75 avatar

viper75

New Zenner

Join Date:
Jan 2011
Posts:
11
Plugin Contributions:
0

Showcase mode and offers

hi!
I've a question....
I've setting my zen cart on "showcase without price".
But i need to show the price (no add cart button) for only the specials product. I've just insert the price for all product (specials and no specials) and I can't remove because in next future I must set zen cart to shop mode. help me!
thank's!!!!!

5 Dec 2011, 12:33 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Showcase mode and offers

You could try with a price:

Store Status
What is your Store Status
0= Normal Store
1= Showcase no prices
2= Showcase with prices

5 Dec 2011, 12:36 AM
#3
viper75 avatar

viper75

New Zenner

Join Date:
Jan 2011
Posts:
11
Plugin Contributions:
0

Re: Showcase mode and offers

Ajeh:

You could try with a price:

I've already setting "showcase no price".

My issue is show the price only for "specials" product

5 Dec 2011, 3:31 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Showcase mode and offers

If you want Products with Specials to show their Prices, even when set to not show Prices when set to:
Showcase no Prices

You could customize the function zen_get_products_display_price in the:
/includes/functions/functions_price.php

to test the Product to see if there is a Special where the code reads:

// show case only
    if (STORE_STATUS != '0') {
      if (STORE_STATUS == '1') {
        return '';
      }
    }

Check if there is a Special, and if so, let the function run normally rather than do the return ...

5 Dec 2011, 5:07 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Showcase mode and offers

You could customize the code to something like this to allow Products with Specials set to show:

// show case only
    if (STORE_STATUS != '0') {
      if (STORE_STATUS == '1') {
        // show prices if a Special
        $specials_chk = $db->Execute("SELECT products_id FROM " . TABLE_SPECIALS . " WHERE products_id = '" . $products_id . "'");
        if ($specials_chk->EOF) {
          return '';
        } else {
          // continue to get price
        }
      }
    }
6 Dec 2011, 9:11 AM
#6
viper75 avatar

viper75

New Zenner

Join Date:
Jan 2011
Posts:
11
Plugin Contributions:
0

Re: Showcase mode and offers

thank you!!!!!!!!!!! It's ok!!!!!!! :clap::clap::clap::clap:

6 Dec 2011, 2:18 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Showcase mode and offers

You are most welcome ... glad that this worked for you ... :smile: