Results 1 to 10 of 1684

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    104
    Plugin Contributions
    6

    Default Re: Price Updater - plugin keeps disabling

    I have noticed that the config setting DPU_SHOW_LOADING_IMAGE (true to show a small loading graphic so the user knows something is happening) is misleading as if you set it to false the whole functionality is not loading anymore. There is no image loading but no price change as well :-) If the graphic is needed it would be better to remove this setting. If the graphic is not needed something must be wrong in the
    Code:
     <?php if (DPU_SHOW_LOADING_IMAGE == 'true') { ?>
    sections.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Price Updater - plugin keeps disabling

    Quote Originally Posted by webchills View Post
    I have noticed that the config setting DPU_SHOW_LOADING_IMAGE (true to show a small loading graphic so the user knows something is happening) is misleading as if you set it to false the whole functionality is not loading anymore. There is no image loading but no price change as well :-) If the graphic is needed it would be better to remove this setting. If the graphic is not needed something must be wrong in the
    Code:
     <?php if (DPU_SHOW_LOADING_IMAGE == 'true') { ?>
    sections.
    Danke, webchills,

    Have confirmed the same lack of response when set to false, looking into the why and how to resolve.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Price Updater - plugin keeps disabling

    Quote Originally Posted by webchills View Post
    I have noticed that the config setting DPU_SHOW_LOADING_IMAGE (true to show a small loading graphic so the user knows something is happening) is misleading as if you set it to false the whole functionality is not loading anymore. There is no image loading but no price change as well :-) If the graphic is needed it would be better to remove this setting. If the graphic is not needed something must be wrong in the
    Code:
     <?php if  (DPU_SHOW_LOADING_IMAGE == 'true') { ?>
    sections.
    See commits:
    (includes/modules/pages/product_info)
    https://github.com/mc12345678/Dynami...f6e0dc82d089b9

    and:
    (includes/modules/pages/product_music_info)
    https://github.com/mc12345678/Dynami...d9c1ae60d810dc

    For resolution.

    Files affected are the jscript_dynamic_price_updater.php file for each of the pages (similar to be applied to any other page where the jscript_dynamic_price_updater.php file has been placed.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    104
    Plugin Contributions
    6

    Default Re: Price Updater - plugin keeps disabling

    Thanks for the speedy fixes. Working like a charm now. And thanks for taking care of this plugin, it came a long way since Chrome invented the first version...

  5. #5
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Price Updater - plugin keeps disabling

    Hi mc

    Thanks for the advice ref the ZenID. I have set this properly now.

    How can I add a suffix to the 2nd price?

    Just to pinpoint, this is the price which shows below the add cart button at https://sitstandforbusiness.com/heig...dule-p-29.html
    Debbie Harrison
    DVH Design | Web Design blog

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Price Updater - plugin keeps disabling

    Quote Originally Posted by dharrison View Post
    Hi mc

    Thanks for the advice ref the ZenID. I have set this properly now.

    How can I add a suffix to the 2nd price?

    Just to pinpoint, this is the price which shows below the add cart button at https://sitstandforbusiness.com/heig...dule-p-29.html
    Unable to access your site at the moment to identify the details of what is going on; however, if all that is needed is to add something at the end of the text, then this could be done within the includes/modules/pages/product_info/jscript_dynamic_price_updater.php file within the objXHR.prototype.updSP = function () { section such as:

    Code:
        if (objSP === false) { // create the second price object
          if (!temp || !itemp) {
            flag = true;
          }
          if (!flag) {
            objSP = temp.cloneNode(true);
            objSP.id = temp.id + "Second";
            itemp.parentNode.insertBefore(objSP, itemp.nextSibling);
          }
        }
        objSP.innerHTML = temp.innerHTML + " suffix";
    The content between the double quotes could be php provided to depend on settings of the store or to use a constant that is language dependent for example.
    Code:
        objSP.innerHTML = temp.innerHTML + " <?php if ($condition) { echo CONSTANT;} else { echo CONSTANT2; } ?>";
    If the suffix is to be added elsewhere within the content, then some additional javascript or other php could/would be used to split out temp.innerHTML to the desired parts in order to insert the associated text.

    This area was chosen because the updSP (Second price location) is not presented until one of the attributes has been changed and that text is dependent on/reflects the content of the primary price display.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Price Updater - plugin keeps disabling

    Thanks. The first method worked.
    Debbie Harrison
    DVH Design | Web Design blog

 

 

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