Page 164 of 167 FirstFirst ... 64114154162163164165166 ... LastLast
Results 1,631 to 1,640 of 1668
  1. #1631
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,558
    Plugin Contributions
    30

    Default Re: Dynamic Price Updater

    Comparing my working version to

    https://github.com/Zen4All-nl/Zen-Ca...-Price-Updater

    + the pending pull request,

    is pretty much the same, so you should try it.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  2. #1632
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,211
    Plugin Contributions
    1

    Default Re: Dynamic Price Updater

    Quote Originally Posted by torvista View Post
    Comparing my working version to

    https://github.com/Zen4All-nl/Zen-Ca...-Price-Updater

    + the pending pull request,

    is pretty much the same, so you should try it.
    Thanks, will do.
    Simon

  3. #1633
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,558
    Plugin Contributions
    30

    Default Re: Dynamic Price Updater

    I forgot to mention you should use the develop branch, not the master. There is a world of difference.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  4. #1634
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,091
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    158 **github latest**
    PHP 8
    latest responsive cloned
    OPC latest

    Get spinning icon on entry to product page

    Code:
    [14-Feb-2023 15:56:01 America/New_York] PHP Fatal error: Uncaught Error: Cannot access protected property shoppingCart::$total_before_discounts in /includes/classes/ajax/zcDPU_Ajax.php:177
    Stack trace:
    #0 /includes/classes/ajax/zcDPU_Ajax.php(89): zcDPU_Ajax->prepareOutput()
    #1 /ajax.php(85): zcDPU_Ajax->getDetails()
    #2 {main}
    thrown in /includes/classes/ajax/zcDPU_Ajax.php on line 177
    
    [14-Feb-2023 15:56:01 America/New_York] Request URI: /ajax.php?act=DPU_Ajax&method=getDetails, IP address: 216.177.186.199
    --> PHP Fatal error: Uncaught Error: Cannot access protected property shoppingCart::$total_before_discounts in /includes/classes/ajax/zcDPU_Ajax.php:177
    Stack trace:
    #0 /includes/classes/ajax/zcDPU_Ajax.php(89): zcDPU_Ajax->prepareOutput()
    #1 /ajax.php(85): zcDPU_Ajax->getDetails()
    #2 {main}
    thrown in /includes/classes/ajax/zcDPU_Ajax.php on line 177.

  5. #1635
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,286
    Plugin Contributions
    87

    Default Re: Dynamic Price Updater

    Noting that there is a shopping_cart class method (show_total_before_discounts) to retrieve that value.

  6. #1636
    Join Date
    Dec 2006
    Location
    near Atlanta Georgia
    Posts
    194
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    Upgrading from ZC v157 to v158. Currently using Dynamic Price Updater v3.2.1 (confirmed the version in my Admin Configuration>Dynamic Price Updater). On the plugins page I see v3.2.0 but no v3.2.1. What happened to v3.2.1? Also will v3.2.0 or v3.2.1 work with v158? Secondly I see that there is a 4.0.0 Beta 3 from April 2020 in Github (https://github.com/Zen4All-nl/Zen-Ca...-Price-Updater). Is it due out of Beta soon? Also, is anyone here working on an updated version specifically for 158? I would like to work with them if they are to add some additional functionality to it that I think may be useful to others besides myself.

    Thanks,
    John
    John

  7. #1637
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,091
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    Quote Originally Posted by lat9 View Post
    Noting that there is a shopping_cart class method (show_total_before_discounts) to retrieve that value.
    any further hint for the code-challenged among us?

    asking for a friend

  8. #1638
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,286
    Plugin Contributions
    87

    Default Re: Dynamic Price Updater

    Quote Originally Posted by dbltoe View Post
    any further hint for the code-challenged among us?

    asking for a friend
    What's the code on the following line?

    /includes/classes/ajax/zcDPU_Ajax.php on line 177.

  9. #1639
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,091
    Plugin Contributions
    10

    Default Re: Dynamic Price Updater

    lines 173-182,

    Code:
          $this->responseText['priceTotal'] .= number_format($this->shoppingCart->total, $decimal_places, $decimal_point, $thousands_point);      $this->responseText['preDiscPriceTotal'] = number_format(zen_add_tax($this->shoppingCart->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->total_before_discounts, zen_get_tax_rate($product_check->fields['products_tax_class_id']));
        }
    
    
        if (!defined('DPU_OUT_OF_STOCK_IMAGE')) {
          define('DPU_OUT_OF_STOCK_IMAGE', '%s');
        }
    All these files are from the development branch of github.

  10. #1640
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,286
    Plugin Contributions
    87

    Default Re: Dynamic Price Updater

    Quote Originally Posted by dbltoe View Post
    lines 173-182,

    Code:
          $this->responseText['priceTotal'] .= number_format($this->shoppingCart->total, $decimal_places, $decimal_point, $thousands_point);      $this->responseText['preDiscPriceTotal'] = number_format(zen_add_tax($this->shoppingCart->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->total_before_discounts, zen_get_tax_rate($product_check->fields['products_tax_class_id']));
        }
    
    
        if (!defined('DPU_OUT_OF_STOCK_IMAGE')) {
          define('DPU_OUT_OF_STOCK_IMAGE', '%s');
        }
    All these files are from the development branch of github.
    Change this line

    Code:
    $this->responseText['preDiscPriceTotal'] =  number_format(zen_add_tax($this->shoppingCart->total_before_discounts,  zen_get_tax_rate($product_check->fields['products_tax_class_id'])),  $decimal_places, $decimal_point, $thousands_point);
    to
    Code:
    $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);

 

 

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