Page 1 of 2 12 LastLast
Results 1 to 10 of 1684

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,838
    Plugin Contributions
    31

    Default Re: Price Updater

    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.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Price Updater

    Are you running it successfully with EO installed?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,838
    Plugin Contributions
    31

    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...

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    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.

  5. #5
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    83
    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?

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,948
    Plugin Contributions
    96

    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

  7. #7
    Join Date
    Dec 2006
    Location
    near Atlanta Georgia
    Posts
    216
    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.

    Best,
    Goldbuckle

  8. #8
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,838
    Plugin Contributions
    31

    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...

  9. #9
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    934
    Plugin Contributions
    9

    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.

  10. #10
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    934
    Plugin Contributions
    9

    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.

 

 
Page 1 of 2 12 LastLast

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

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