Forums / Customization from the Admin / No Prices in ADMIN

No Prices in ADMIN

Locked

Views: 1,490

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
17 Apr 2010, 12:48 PM
#1
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

No Prices in ADMIN

I can't see the prices when opening a category under admin>catalog.
I have tried to switch to show prices with taxes and back but no change.
Probably some file have been corrupted.
Caould someone tell me to which file I should look for?
Thankd

17 Apr 2010, 1:12 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: No Prices in ADMIN

Are you using Customer Authorization? Such as Customer settings on the Login for price etc.

If so, please check the fix on the Known Bug Fixes for v1.3.8 ...
http://www.zen-cart.com/forum/showthread.php?t=82619

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!

17 Apr 2010, 2:18 PM
#3
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: No Prices in ADMIN

Yas I am using customer auth
I copied the code at the end of the file but then when logging in to admin I get an error message.
Could you tell me in which line I should copy the code? thanks
enzo

17 Apr 2010, 2:47 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: No Prices in ADMIN

Are you saying you made the changes in #6 of the Known Bug Fixes to the file:
/admin/includes/functions/functions_prices.php

What error are you seeing?

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!

17 Apr 2010, 2:55 PM
#5
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: No Prices in ADMIN

Yas I copied the code, but I do not know exactly how to do it so I have probably messed up something.

The last lines fo the file are
//echo 'zen_get_discount_qty: ' . $product_id . ' - ' . $check_qty . '<br />';
if ($discounts_qty_query->RecordCount() > 0 and $check_qty > 0) {
return true;
} else {
return false;
}
}

?>
where the last one is line 1248.
Where the code should be pasted?
Thanks

17 Apr 2010, 3:30 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: No Prices in ADMIN

Start over ... I think you are misunderstanding the change ... and I am not really sure just what you are trying to do where ... :unsure:

Look again at post #6 and then edit the function zen_get_products_display_price and change it to:

  function zen_get_products_display_price($products_id) {
    global $db, $currencies;

    if (false) {
// 0 = normal shopping
// 1 = Login to shop
// 2 = Can browse but no prices
    // verify display of prices
      switch (true) {
        case (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == ''):
        // customer must be logged in to browse
        return '';
        break;
        case (CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == ''):
        // customer may browse but no prices
        return '';
        break;
        default:
        // proceed normally
        break;
      }
    }

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

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!

17 Apr 2010, 3:38 PM
#7
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: No Prices in ADMIN

Now I got you!!!
I was adding the full code at the end of the file instead of editing.
Sorry
enzo

17 Apr 2010, 3:45 PM
#8
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: No Prices in ADMIN

Done!!!
It works perfectly.
Thank a million

17 Apr 2010, 3:48 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: No Prices in ADMIN

You are most welcome ... thanks for the update that this corrected the issue of no prices in the admin on the category/products listing ... :smile:

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!

17 Apr 2010, 6:00 PM
#10
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: No Prices in ADMIN

Hi, Has this bug fix been added to 139?

as my site uses Customer Authorization to view prices... (and i will be upgrading asap once 139 is out of testing)

17 Apr 2010, 6:30 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: No Prices in ADMIN

And did you test it in your v139 that you have been testing? :cool:

The same fix has been applied to v139 ...

It could be set up differently on the function, but using the current fix allows seeing differences and how to control more things in the Admin display of prices ...

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!

17 Apr 2010, 6:33 PM
#12
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: No Prices in ADMIN

lol,.. not yet..

have you seen how massive a program ZC is... oh of course.. you helped write it! :P

LOL

17 Apr 2010, 7:31 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: No Prices in ADMIN

I did notice a line or two of code and a couple or three features built in ... :cool:

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!

17 Apr 2010, 9:51 PM
#14
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: No Prices in ADMIN

Shane
Quit Lollygagging around in this thread and get back to testing mods. I haven't seen fual slimbox and order steps tableless on your list yet.

Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here

17 Apr 2010, 10:17 PM
#15
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: No Prices in ADMIN

Daltonkost:
I will flirt with who I like when I like! :P

i dont use fuel slimbox because http://www.zen-cart.com/forum/showpost.php?p=868596&postcount=4926
so i will always install Zen Lightbox.. but that's just my experience.

So if I did install it and it did have the same weird behaviour I pointed out in post http://www.zen-cart.com/forum/showpost.php?p=868596&postcount=4926. Id not be paying it full respect as ZC gods like DivaVocals get it to work 1st time flawlessly.

As for order steps tableless, that is on my list, but im sure that mods a core file.. but I cant be sure... check back in 24 hrs ...

17 Apr 2010, 11:43 PM
#16
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: No Prices in ADMIN

daltonkost:

Shane
Quit Lollygagging around in this thread and get back to testing mods. I haven't seen fual slimbox and order steps tableless on your list yet.

Dalton

order steps tableless is being tested and works, but it requires merging with 2 changed files in v1.3.9.

An upgraded version of order steps tableless (compatible with v1.3.9 will be uploaded to the downloads section when the stable release of v1.3.9 is ready.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Apr 2010, 12:52 AM
#17
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: No Prices in ADMIN

Thanks for the heads up.:cool:

Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here