Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Setting Up Specials and SaleMaker / uhhh i dunno how this happened

uhhh i dunno how this happened

Locked

Started by g0d4lm1ty on 27 Feb 2007, 10:30 PM · Views: 6,597

Results 21 to 40 of 40
This thread is locked. New replies are disabled.
1 Mar 2007, 4:34 AM
#21
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

uhhh i dunno how this happened

$show_sale_discount = '';

$display_normal_price = round(zen_display_group_pricing($display_normal_price,$products_qty),2);

if (SHOW_SALE_DISCOUNT_STATUS == '1' and ($display_special_price != 0 or $display_sale_price != 0)) {
  if ($display_sale_price) {
    if (SHOW_SALE_DISCOUNT == 1) {
      if ($display_normal_price != 0) {
        $show_discount_amount = $number_format(100 - (($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);
      } else {
        $show_discount_amount = '';
      }
      $show_sale_discount = '<span class="productPriceDiscount">' . '<br />' . PRODUCT_PRICE_DISCOUNT_PREFIX . $show_discount_amount . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';

    } else {
      $show_sale_discount = '<span class="productPriceDiscount">' . '<br />' . PRODUCT_PRICE_DISCOUNT_PREFIX . $currencies->display_price(($display_normal_price - $display_sale_price), zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . PRODUCT_PRICE_DISCOUNT_AMOUNT . '</span>';
    }
  } else {
    if (SHOW_SALE_DISCOUNT == 1) {
      $show_sale_discount = '<span class="productPriceDiscount">' . '<br />' . PRODUCT_PRICE_DISCOUNT_PREFIX . number_format(100 - (($display_special_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS) . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';
    } else {
      $show_sale_discount = '<span class="productPriceDiscount">' . '<br />' . PRODUCT_PRICE_DISCOUNT_PREFIX . $currencies->display_price(($display_normal_price - $display_special_price), zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . PRODUCT_PRICE_DISCOUNT_AMOUNT . '</span>';
    }
  }
}

lines 200-225

1 Mar 2007, 4:50 AM
#22
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

That is too weird ...

I am not seeing the cause of problem although I can make it happen easy enough on your site ...

But I don't see where it is throwing that particular error ...

Unfortunately you have used the Classic template and not your own customized template and overrides method so this is harder to test for ...

If this a live site or are you working on it?

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!

1 Mar 2007, 4:55 AM
#23
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

i will reactivate the sale.. this should show you the error.. i never really grasped the overrides ... i understand the seperate folder and stuff just didnt get what files i had to correct to make it read the overrides... but that is a moot point... i will re activate the sale maker and upload the entire file...

1 Mar 2007, 4:58 AM
#24
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

I was checking your admin and already did that ... :smile:

What I need to know is this a Live site or not?

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!

1 Mar 2007, 5:01 AM
#25
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

uhm... yeah its a live site... but if it needs to go down no worries....

1 Mar 2007, 5:04 AM
#26
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

I was going to have you try an experiment ...

Rename the directory:
/includes/templates/classic

to the name:
/includes/templates/classic_HIDE

This will make your site look all weird ...

Then, turn that Sale back on ...

Does the error message still happen?

I am trying to see if this might be a template issue or not ... but this is hard to do as we do not know did you only touch things using /classic directories or did you touch other things ...

Do you have add-ons on this site?

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!

1 Mar 2007, 5:08 AM
#27
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

error still happens.. site looks funny actually and yes i have several addons... gimmie a minute to list them all.......

1 Mar 2007, 5:11 AM
#28
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

easy populate
image handler
user tracking
google checkout
cross sell and
cross sell advanced

I think thats it

i have deactivated the sale maker....

kix himself

bad boy

1 Mar 2007, 5:14 AM
#29
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

Without doing a compare of your files on the server with a clean Zen Cart I really cannot put a finger on this one ...

Try this:

Make a new Category ...

Add manually 2 products ...

Put only that Category on Sale with the Sale that you have already created ...

Do you still get that weird error?

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!

1 Mar 2007, 5:29 AM
#30
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

yup same exact error on new category and products....

1 Mar 2007, 5:31 AM
#31
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

here is the file in its entirety let me know if there is anything else i can maybe do to help ....

1 Mar 2007, 5:32 AM
#32
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

Make the new Category ...

Or use same Category but delete whatever products you added ...

Add 2 new product ... BUT, from the dropdown set the Product type to Product Free Shipping ...

Now put this Category on Sale as the ONLY category on Sale with this sale in Sale Maker ...

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!

1 Mar 2007, 5:36 AM
#33
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

Your functions_price.php file is not from v1.3.6 ...

If I am not mistaken that is the version of Zen Cart that you should be running ...

You have an old, out of date version ...

I am not sure what other files are out of date but this could very well be an issue here ...

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!

1 Mar 2007, 5:38 AM
#34
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

same error.. admin shows correct pricing tho....

Awesome Stuff $99.99
Sale: $74.99
Save: 25% off

1 Mar 2007, 5:39 AM
#35
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

Ajeh:

Your functions_price.php file is not from v1.3.6 ...

If I am not mistaken that is the version of Zen Cart that you should be running ...

You have an old, out of date version ...

I am not sure what other files are out of date but this could very well be an issue here ...

This was a CLEAN install.... 1.36... should i re upload that particular file... and would any of the add-ons affect this file?

1 Mar 2007, 5:41 AM
#36
ajeh avatar

ajeh

Oba-san

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

Re: uhhh i dunno how this happened

Any add-on might contain an old file ... this is why you need to always check what exactly is being loaded to your site ...

Try renaming your current file to:
function_prices.php_OLD

And reload a clean one from v1.3.6 ...

This may or may not fix things as there could be other issues involving other files that are out of date involved here ...

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!

1 Mar 2007, 5:45 AM
#37
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

ok well that has fixed the problem..

I normally read add-ons thoroughly and make sure to only update files and not replace them... I looked through my addons and none of them edited this file... is it possible that it simply got corrupted or was it legitimately a old file?

1 Mar 2007, 5:56 AM
#38
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

ok.... i may never be able to do a sale.... i add to cart and get this

Fatal error: Call to undefined function: zen_display_group_pricing() in /home/poison67/public_html/yourlingerieparty/includes/classes/shopping_cart.php on line 1048

NOW the group pricing thing has giving me an error before... User tracking doesnt work when someone has an active shopping cart.... and gives me a GROUP PRICING error....

Could this be a group pricing issue ....... ?

1 Mar 2007, 6:00 AM
#39
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

heh.... i must have edited that file

Fatal error: Call to undefined function: zen_display_group_pricing() in /home/poison67/public_html/yourlingerieparty/includes/classes/shopping_cart.php on line 1048

for sidebox......

maybe new item side box......

...... i dunno... but i dont understand the group pricing issue...

i renamed the old file back to original.. no errors but no sale... i guess i will have to compare the two files and check the differences..........

2 Mar 2007, 6:56 AM
#40
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: uhhh i dunno how this happened

update....i disabled the whois online sidebox and the errors went away.... now the problem is the math is wrong... if i set a salemake sale to 50% off.. it is going crazy... some items get 55% some get 83% some get 100% uh...
<------lost in space......

i don't understand also why the whois online sidebox is causing issues....

i also don't understand why the crazy discounting.... sigh

this seems to be an issue... since i dont really understand the overrides... i didnt do them.. and a fresh install would kill me... ugh.... i feel like charlie brown....
all help is appreciated.....

:sleepy::bored::no::lamo::yuck: