Re: 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
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?
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...
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?
Re: uhhh i dunno how this happened
uhm... yeah its a live site... but if it needs to go down no worries....
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?
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.......
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
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?
Re: uhhh i dunno how this happened
yup same exact error on new category and products....