Perfect!
Temporary location for updated files at https://github.com/dbltoe/Zen-Cart-D...dater/tree/158
Those files will NOT work prior to 1.5.8
Printable View
Perfect!
Temporary location for updated files at https://github.com/dbltoe/Zen-Cart-D...dater/tree/158
Those files will NOT work prior to 1.5.8
Spoke a little too soon.
Still a glitch
Code:[16-Feb-2023 10:50:14 America/New_York] Request URI: /ajax.php?act=DPU_Ajax&method=getDetails, IP address: 216.177.186.199, Language id 1
#1 zcDPU_Ajax->prepareOutput() called at [/includes/classes/ajax/zcDPU_Ajax.php:88]
#2 zcDPU_Ajax->getDetails() called at [/ajax.php:85]
--> PHP Warning: Undefined property: shoppingCart::$show_total_before_discounts in /includes/classes/ajax/zcDPU_Ajax.php on line 176.
Unfortunately, I still get the error when both are "fixed"
One checker advised to changeCode:$this->responseText['priceTotal'] .= number_format($this->shoppingCart->total, $decimal_places, $decimal_point, $thousands_point); $this->responseText['preDiscPriceTotal'] = number_format(zen_add_tax($this->shoppingCart->show_total_before_discounts, zen_get_tax_rate($product_check->fields['products_tax_class_id'])), $decimal_places, $decimal_point, $thousands_point);
} else {
$this->responseText['priceTotal'] .= $currencies->display_price($this->shoppingCart->total, 0 /* zen_get_tax_rate($product_check->fields['products_tax_class_id']) *//* 0 */ /* DISPLAY_PRICE_WITH_TAX */);
$this->responseText['preDiscPriceTotal'] = $currencies->display_price($this->shoppingCart->show_total_before_discounts, zen_get_tax_rate($product_check->fields['products_tax_class_id']));
}
toCode:protected string $responseType = 'success';
for php 8 compliance. That had no effect.Code:protected $responseType = 'success';
One checker also suggested that the $_post variables are not properly set before being used.
I have installed a new test site with v1.5.8 using the Responsive Classic template and then installed DPU v4.0.0 Beta 3 (https://github.com/Zen4All-nl/Zen-Ca...Price-Updater/) Ajax-loader.gif is spinning upon entering a quantity in the quantity box or selecting an attribute but no price is displaying. Is it compatible with v158?
https://test.discountprintingservice...roducts_id=181
Thanks,
John
Reading through it now. Console is showing:
jquery-3.6.1.min.js:2
POST https://test.discountprintingservice...hod=getDetails 500
send @ jquery-3.6.1.min.js:2
ajax @ jquery-3.6.1.min.js:2
(anonymous) @ index.php?main_page=…&products_id=181:70
Deferred @ jquery-3.6.1.min.js:2
zcJS.ajax @ index.php?main_page=…&products_id=181:36
getPrice @ index.php?main_page=…products_id=181:407
(anonymous) @ index.php?main_page=…products_id=181:654
Upgraded to ZC v158, store and admin work as should. Install v5 and store works but admin gives me an error. Delete all v5 files and admin works again. And yes I change the Your Admin and Your Template folders as necessary.
This page isn’t working
www.discountprintingservice.com is currently unable to handle this request.
[COLOR=var(--error-code-color)]HTTP ERROR 500
[/COLOR]
Thanks,
John
@lat9 and @dbltoe
Had working v158 store and admin in test folder and added DPU v5 with no other modules installed and store works but admin gives a 500 error. I had changed the <Your Admin> and <Your Template> folders accordingly. Has either of you got v5 to work with v158?