Page 135 of 167 FirstFirst ... 3585125133134135136137145 ... LastLast
Results 1,341 to 1,350 of 1668
  1. #1341
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Based on the additional information afforded by the above. There is a code modification that I am staging to github to address this issue such that DPU will still update prices of product with attributes even for product that are out-of-stock.

    This change does not require modification of the template files. Further, it will identify the price associated based on the quantity identified by the ZC function zen_get_buy_now_qty for product that are out-of-stock and for quantity entered as zero or negative.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Dynamic Price Updater

    Pushed the update to github finally. To obtain the specific modification see: https://github.com/mc12345678/Dynami...d7002a43116075

    It as well as a few minor updates/fixes for the ZC released version are now in the master branch of the github repo at: https://github.com/mc12345678/Dynamic_Price_Updater
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #1343
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    I installed dpu, but I have a problem and I had to disable it.

    The problem is that in admin I see who's online no longer has the normal link but this:
    ## /ajax.php?act=DPU_Ajax&method=dpu_update

    Also if you look at generate generate source i get this one:
    </ Head>
    <Body id = "productinfoBody" onload = "try {
    #### init ();
    } Catch (dpu_err) {
    #### console.log (dpu_err.stack);
    }; ">

    I think something in my installation does not go you even see who is online /ajax.php?act=DPU_Ajax&method=dpu_update
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  4. #1344
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Quote Originally Posted by diamond1 View Post
    I installed dpu, but I have a problem and I had to disable it.

    The problem is that in admin I see who's online no longer has the normal link but this:
    ## /ajax.php?act=DPU_Ajax&method=dpu_update

    Also if you look at generate generate source i get this one:
    </ Head>
    <Body id = "productinfoBody" onload = "try {
    #### init ();
    } Catch (dpu_err) {
    #### console.log (dpu_err.stack);
    }; ">

    I think something in my installation does not go you even see who is online /ajax.php?act=DPU_Ajax&method=dpu_update
    If you rely on the who's online information to conduct business I will look into the proper formatting of appending the results of zen_get_all_get_params so that the applicable ajax call will include the parameters on the uri even though they are not directly used by DPU. As to the source code presentation, yes that try/catch takes multiple lines. This helps with debugging by allowing each line to be executed individually and there fore can be tracked in the browser. The page passes html validation, what "issue" was it causing for you?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #1345
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Also, while the same result in who's online was seen, the plugin User Tracking did not show the issue of the user executing an ajax method and shows more of a history than what the very last "click" was.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #1346
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    Waiting for a solution I disable the plugins,

    Click image for larger version. 

Name:	Schermata 2017-08-31 alle 16.49.58.png 
Views:	28 
Size:	33.3 KB 
ID:	17261
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  7. #1347
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Untested but should carry the information that would normally be seen in Who's online:


    Two places each in two provided files to change to support both "methods" of operation:

    includes/modules/pages/product_info/jscript_dynamic_price_updater.php
    and
    includes/modules/pages/product_music_info/jscript_dynamic_price_updater.php

    Line 125 change from:
    Code:
    this.XHR.open(strMode.toLowerCase(), this.url+"?act=DPU_Ajax&method=dpu_update"+(strMode.toLowerCase() == "get" ? "&" + this.compileRequest() : ""), true);
    to:
    Code:
    this.XHR.open(strMode.toLowerCase(), this.url+"?act=DPU_Ajax&method=dpu_update"+(strMode.toLowerCase() == "get" ? "&" + this.compileRequest() : "")+<?php echo (!empty(zen_get_all_get_params())) ? '"&' . zen_get_all_get_params() . '"' : '""'; ?>, true);
    Line 132 change from:
    Code:
    var option = { url : theURL+"?act=DPU_Ajax&method=dpu_update",
    To:
    Code:
    var option = { url : theURL+"?act=DPU_Ajax&method=dpu_update<?php echo (!empty(zen_get_all_get_params())) ? '&' . zen_get_all_get_params() : ''; ?>",
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #1348
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Quote Originally Posted by mc12345678 View Post
    Untested but should carry the information that would normally be seen in Who's online:


    Two places each in two provided files to change to support both "methods" of operation:

    includes/modules/pages/product_info/jscript_dynamic_price_updater.php
    and
    includes/modules/pages/product_music_info/jscript_dynamic_price_updater.php

    Line 125 change from:
    Code:
    this.XHR.open(strMode.toLowerCase(), this.url+"?act=DPU_Ajax&method=dpu_update"+(strMode.toLowerCase() == "get" ? "&" + this.compileRequest() : ""), true);
    to:
    Code:
    this.XHR.open(strMode.toLowerCase(), this.url+"?act=DPU_Ajax&method=dpu_update"+(strMode.toLowerCase() == "get" ? "&" + this.compileRequest() : "")+<?php echo (!empty(zen_get_all_get_params())) ? '"&' . zen_get_all_get_params() . '"' : '""'; ?>, true);
    Line 132 change from:
    Code:
    var option = { url : theURL+"?act=DPU_Ajax&method=dpu_update",
    To:
    Code:
    var option = { url : theURL+"?act=DPU_Ajax&method=dpu_update<?php echo (!empty(zen_get_all_get_params())) ? '&' . zen_get_all_get_params() : ''; ?>",
    Actually, tested now. Result is/was that provided all of the parameters in the uri except those excluded by the function (ie. don't get the main_page for example) which included the products_id and if present the cPath, etc... it also included an additional & at the end of the result which will be addressed separately to provide a cleaner result. So at least can identify at which product one is looking.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #1349
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Dynamic Price Updater

    it's not still good, my fear is for spider search engines what do they see exactly even if we have the canonical link?
    I can not take risks and leave it still off until there is a right solution.

    Click image for larger version. 

Name:	Schermata 2017-08-31 alle 19.55.25.png 
Views:	21 
Size:	33.1 KB 
ID:	17262
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  10. #1350
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Quote Originally Posted by diamond1 View Post
    it's not still good, my fear is for spider search engines what do they see exactly even if we have the canonical link?
    I can not take risks and leave it still off until there is a right solution.

    Click image for larger version. 

Name:	Schermata 2017-08-31 alle 19.55.25.png 
Views:	21 
Size:	33.1 KB 
ID:	17262
    The result that is being logged is execution of ajax (javascript with php). A search engine is looking at the page. The "problem" that you are seeing is that the page is loaded, and then another page is loaded through ZC which when "recording" the current/last page visited appears as if accessed the ajax file. This has nothing to do with the actual loaded page. I don't know what you would rather see in your look at who's online, but as said in monitoring clicks/pages loaded through say User Tracking, the ajax action doesn't get registered and considering the use of that ajax call, there is no reason to show anything different/new.

    How do you think that the information presented in who's online should relate to a search engine's results?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

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