Page 168 of 169 FirstFirst ... 68118158166167168169 LastLast
Results 1,671 to 1,680 of 1681
  1. #1671
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,761
    Plugin Contributions
    30

    Default Re: Price Updater

    I don't use Edit Orders.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  2. #1672
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,845
    Plugin Contributions
    11

    Default Re: Price Updater

    Quote Originally Posted by torvista View Post
    I don't use Edit Orders.
    well done!
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #1673
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    76
    Plugin Contributions
    0

    Default Re: Price Updater

    Quote Originally Posted by torvista View Post
    Note that with the inclusion of POSM (stock control of attributes) in ZC 2.1.0, this add-on

    https://vinosdefrutastropicales.com/...products_id=60

    can replace DPU.

    I s there a demo page to demonstrate the price updating?

  4. #1674
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,363
    Plugin Contributions
    94

    Default Re: Price Updater

    Quote Originally Posted by Georgecy View Post
    I s there a demo page to demonstrate the price updating?
    https://zc158.vinosdefrutastropicale...&products_id=1

  5. #1675
    Join Date
    Dec 2006
    Location
    near Atlanta Georgia
    Posts
    197
    Plugin Contributions
    0

    Default Re: Price Updater

    The price changes with options selected but does not change when I change the quantity from 1 to 2 or 3 etc etc. That is what makes DPU so great.

    John

  6. #1676
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,761
    Plugin Contributions
    30

    Default Re: Price Updater

    Note that this change to ajax.php

    https://github.com/zencart/zencart/b...7/ajax.php#L51

    only allows alpha-numeric characters/does not allow an underscore in either of the parameters.

    So this call from DPU gets failed:
    https://yoursite/ajax.php?act=DPU_Aj...hod=getDetails

    as can be seen on the browser console network XHR with the 400 responses.

    A quick fix is add the underscore to the check

    Code:
    !preg_match('/^[a-zA-Z0-9_]+$/', $_GET['act'])
    but the class/use of this variable needs to be renamed.

    Since DPU needs to taken behind the shed to be shot/replaced with this add-on to the core attributes stock manager

    https://vinosdefrutastropicales.com/...products_id=60

    I'm just giving a heads-up.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #1677
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Price Updater

    ZC 2.1.0 / PHP 8.3 / Using ZCABootstrap as template.

    Managed to get everything to work by using the version loaded in from the GitHub, but changing attribute options on a product page, I get the following error:

    Code:
    [03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1#0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
    #1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
    --> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.
    
    [03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1
    #0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
    #1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
    --> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.

  8. #1678
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Price Updater

    Quote Originally Posted by retched View Post
    ZC 2.1.0 / PHP 8.3 / Using ZCABootstrap as template.

    Managed to get everything to work by using the version loaded in from the GitHub, but changing attribute options on a product page, I get the following error:

    Code:
    [03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1#0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
    #1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
    --> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.
    
    [03-Dec-2024 22:50:55 America/New_York] Request URI: /justuptown/ajax.php?act=DPU_Ajax&method=getDetails, IP address: 127.0.0.1, Language id 1
    #0 E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php(110): zen_debug_error_handler()
    #1 E:\xampp\htdocs\justuptown\ajax.php(77): zcDPU_Ajax->getDetails()
    --> PHP Warning: Undefined property: DPU::$sideboxActive in E:\xampp\htdocs\justuptown\includes\classes\ajax\zcDPU_Ajax.php on line 110.
    Okay... this is a bandaid, the errors have stopped but I fear this is only temporary:

    include/classes/ajax/zcDPU_Ajax.php:
    Change line about 110:
    PHP Code:
            if ($this->dpu->sideboxActive) { 
    to
    PHP Code:
            if ($this->dpu->sideboxActive ?? FALSE) { 
    And change \includes\templates\bootstrap\jscript\jscript_dynamic_price_updater.php, line 79 from:
    PHP Code:
                const DPUsideboxActive = ('<?php echo $dpu->sideboxActive?>' === '1');
    to
    PHP Code:
                const DPUsideboxActive = ('<?php echo $dpu->sideboxActive ?? NULL?>' === '1');
    I do not like these, but not sure where to go about declaring the property.

  9. #1679
    Join Date
    May 2008
    Location
    United States
    Posts
    454
    Plugin Contributions
    1

    Default Re: Price Updater

    Can anyone confirm if the GitHub version of the Dynamic Price Updater v5 (linked below) is compatible with Zen Cart 2.10?
    https://github.com/dbltoe/Zen-Cart-D...-Price-Updater

    I'm encountering an issue where the price is not updating, and the browser console logs a 400 Bad Request error for the AJAX call.

    I noticed that I had the same issue as described in the last post of this thread by retched. I applied the two suggested edits, which resolved that specific problem, but the 400 Bad Request error persists.

    Any insights or confirmation on compatibility would be greatly appreciated!

    Thanks in advance!
    marcopolo
    Zen Cart 2.1.0 | PHP 8.3.6 | MariaDB 10.11.8

  10. #1680
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,296
    Plugin Contributions
    1

    Default Re: Price Updater

    The 'quick fix' in this post fixed the 400 error for me in v2.1.0. I have not (needed to) apply the two suggested edits.
    Simon

 

 

Similar Threads

  1. v151 Help with dynamic price updater
    By anderson6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Jul 2014, 08:52 AM
  2. v139h Dynamic Price Updater 3.0 Help!
    By Newbie 2011 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Mar 2014, 06:46 AM
  3. Dynamic Price Updater Error
    By Inxie in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Oct 2012, 06:19 PM
  4. Alternative to Dynamic Price Updater?
    By thebigkick in forum General Questions
    Replies: 0
    Last Post: 9 Jul 2012, 11:41 PM
  5. Dynamic Price Updater with href
    By maxell6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Mar 2012, 12:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR