Zen Cart Logo
Forums / All Other Contributions/Addons / Dynamic Price Updater

Dynamic Price Updater

Views: 342,336

Results 861 to 880 of 1,701
15 Sep 2011, 1:28 AM
#861
leearmstrong3 avatar

leearmstrong3

New Zenner

Join Date:
Sep 2011
Posts:
4
Plugin Contributions:
0

Dynamic Price Updater

Chrome:

Hi

Kamelion, The Updater is failing because somehow a blank space is the first character is the returned XML... To be honest I have no idea why that might be happening... Usually this is caused by a blank space after the ?> which ends a PHP file, but the Updater's files are left open to guard against this anomaly... Currently I couldn't say why your site is exhibiting this behaviour but I will have a think about it

Lee, that link doesn't load

Cheers

Dan

Hi Dan,

The link takes a while to load - Cheap hosting, cheap service!

Direct link -

http://choosemypc.com.au//index.php?main_page=product_info&cPath=5&products_id=1

Let me know how you go. Thanks for your help so far..

Lee

17 Sep 2011, 3:29 AM
#862
leearmstrong3 avatar

leearmstrong3

New Zenner

Join Date:
Sep 2011
Posts:
4
Plugin Contributions:
0

Re: Dynamic Price Updater

leearmstrong3:

Hi Dan,

The link takes a while to load - Cheap hosting, cheap service!

Direct link -

http://choosemypc.com.au//index.php?main_page=product_info&cPath=5&products_id=1

Let me know how you go. Thanks for your help so far..

Lee

I deleted the product as a test and created a new one to make sure i wasnt doing anything wrong. I am still getting the same issue.

Updated link:

http://choosemypc.com.au//index.php?main_page=product_info&cPath=5&products_id=2

Thanks,

Lee

18 Sep 2011, 9:21 PM
#863
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi

Lee, for some reason the URL for the Updater's server-side script isn't working properly... Not sure why this would be but try opening includes/modules/pages/product_info/jscript_ajax_updater.php and go to line 35... It should say

var theURL = '<?php echo DIR_WS_CATALOG; ?>dpu_ajax.php';

Change this to

var theURL = 'http://choosemypc.com.au/dpu_ajax.php';

Let me know how you get on

Dan

20 Sep 2011, 5:35 AM
#864
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan

Brilliant Mod, I have been searching everywhere for this and could not find anything until one of the moderators pointed me to your add-on, thanks a stack.

Problem though and I know it gets mentioned throughout the thread but can't get answer or make sense of it if I have read it, but anyways I will ask you directly...

The 1% increase on the price? I'm sure I need not say anything more, have you got a fix for me please?

Aswell I have a '1' in brackets next to the price which I'm not sure what it is but need to remove too if you could please help out?

Thanks in advance.

Jay

20 Sep 2011, 5:46 AM
#865
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Number in brackets is the quantity, sorry wasn't paying attention to a few posts, just need to hide that though.

Tx again.

20 Sep 2011, 6:49 AM
#866
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Found it............

define('DPU_SHOW_QUANTITY', true);
define('DPU_SHOW_QUANTITY_FRAME', ' (%s)');

in 'dpu_ajax.php'

22 Sep 2011, 3:48 PM
#867
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan,

I am having the same problem as leearmstrong3. The page just keeps loading and loading even though it looks like it's all loaded. I uninstalled this mod to see if it was something else but it worked without this. Reinstalled it and I am having this problem.

You can see it here http://frompropertorocker.com/index.php?main_page=product_info&cPath=68_1_16_15&products_id=496

I went here includes/modules/pages/product_info/jscript_ajax_updater.php and changed line 35 like you posted for leearmstrong3 (of course with my site instead of his :) ).

Anything else I can try?

Thanks!

22 Sep 2011, 6:35 PM
#868
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi all

Firstly, I am working on the 1% issue; it's a tricky little swine and it's proving recalcitrant so I thank you all for your continued patience... I really hope the fix isn't too far away

nolsowski, I've checked out your site and the Updater seems to be working fine... I did notice that there is a JQuery error happening (the Updater doesn't use a Javascript library) and the Updater is having trouble removing a node... Neither of these appear to be affecting perfomance, however... Am I missing something? If I am please let me know

Cheers

Dan

22 Sep 2011, 6:47 PM
#869
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome:

Hi all

Firstly, I am working on the 1% issue; it's a tricky little swine and it's proving recalcitrant so I thank you all for your continued patience... I really hope the fix isn't too far away

nolsowski, I've checked out your site and the Updater seems to be working fine... I did notice that there is a JQuery error happening (the Updater doesn't use a Javascript library) and the Updater is having trouble removing a node... Neither of these appear to be affecting perfomance, however... Am I missing something? If I am please let me know

Cheers

Dan

Well that's strange. I cleared out my cookies and it seems to be fine now too. Must have just been me. I was also getting a lot of status returns too but haven't noticed that yet since I cleared my cookies.

How did you figure out that I have a JQuery error? I wonder what it is and how to fix it.

Thanks for all your help! :smile:

23 Sep 2011, 6:04 AM
#870
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Hey Dan

Thanks a stack for your time and effort on this mod, I will sit here patiently waiting for your fix. As far as I know this is the only one out there so you holding my world in your hands.

Just a quick question, do you know if this 1% issue is happening to all installations? I read in much earlier posts that it works fine if products are price per attribute. Is it true? If so there a way that I could apply some sort of 'if' statement prior to execution, like....

if (product_id == 'product_attributes') { execute dpu_files }

else { ignore dpu_files }

OR......

if (product_id == !'product_attributes') { give it a 1% discount }

else { do nothing}

Defo not a genius on this, but thought I would throw in my 2 cents, just incase. Maybe it triggers off something thats been filed away in the back of the brain somewhere:)

Anyways, Good Luck and hope you crack it, really want to use the feature.


Jay

23 Sep 2011, 6:48 AM
#871
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Oh! before I forget, (if it helps) did a fresh installation of zen cart and installed your mod, and it works perfectly, no 1% added on base price, only difference thats immediately noticable is my currency is £ (problem site) and new install is $

2 Oct 2011, 7:17 PM
#872
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Dynamic Price Updater

Chrome:

Hi Matt

I've had a look at the page and I can confirm that the issue isn't related to any other module :smile:

It's being caused by the fact that there are no select or radio/checkbox attributes on the page... The 'seeker' RegEx pulls the currency identifiers from those attributes

Essentially you have found a situation I forgot to account for :smile:

Leave it with me; I have to go do some last minute shopping (should be fun this close to Xmas)... When I get back I'll post a NastyHack™ solution before actually preparing a proper solution

I'll get back to you as soon as I have a workaround :smile:

Cheers

Dan

Hi Chrome I have a question for you. Is the module just for attributes? If not the problem with MSRP still exits. I Have read a lot of this thread and can not find a solution for it. I know you worked out the sale price to work with it. I never read were you found a solution for lankeeyankee. I know you are a busy person, but if you could find a solution for this I would appreciate it very much.
I have UN-installed the module until it is fixed.

9 Oct 2011, 3:05 PM
#873
colinvic avatar

colinvic

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Dynamic Price Updater

Interesting find. I edited my product and changed it to 'priced by attributes', as well as changing from Taxable Goods to '--none--'.... volia no 1% added to either the product or the attribute. Thought this might be worth a mention in trying to find this fix. Is it something to do with the way the products are taxed?

9 Oct 2011, 3:09 PM
#874
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi all

Sorry for the delay in responding... I was also thinking that the problem is with the tax... My problem currently is every time I set about this code I get called onto other work... I know this is important to people and I am going to get it sorted very soon

Cheers

Dan

9 Oct 2011, 11:10 PM
#875
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

Re: Dynamic Price Updater

I keep getting the same problem as post #791.

PHP Warning:  reset() expects parameter 1 to be array, null given in /includes/classes/dynamic_price_updater.php on line 197
PHP Warning:  Variable passed to each() is not an array or object in /includes/classes/dynamic_price_updater.php on line 198

Do I miss any fix in this thread?

12 Oct 2011, 6:29 AM
#876
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Hey Dan

I'VE FIGURED OUT THE PROBLEM.....

Just need you to figure out the solution:)

The 1% is = to the 'Tax Classes' ID number....

If you create another new tax class which creates it with ID 2 it adds 2% and create another new one which creates ID 3...yip, its adds 3%...

Hope this helps


Jay:flex:

12 Oct 2011, 6:56 PM
#877
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Jay

My good sir, you may be a genius... I'm going to get a test site online later to set this up and test... If successsful, I'll update the changelog and readme to reflect that you discovered the problem :smile:

Watch this space for an update over the next day or 2

Cheers

Dan

12 Oct 2011, 7:28 PM
#878
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: Dynamic Price Updater

Cheers and Good Luck.

Lucky I subscribed to this thread so no need to watch it:laugh:

16 Oct 2011, 2:27 PM
#879
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi all

I've finally managed to get some time to look into and, taking onboard Jay's discovery, I've reset the tax class ID to zero for all requested products

I have uploaded a new file to my server for testing[1]... I would be really grateful if anyone having the 1% issue would give it a try... Although the test file is complete, you can just replace /includes/classes/dynamic_price_updater.php

Please let me know your findings and, if this has cracked it, I'll resubmit to Zen as an update

[1]DPU Tax Class Test

Cheers!

Dan

16 Oct 2011, 7:45 PM
#880
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Chrome!

Thanks for the update, it works perfectly!
I tested these and it worked:

  • products on sale
  • products with attributes
  • products without attributes
  • quantity discounts
  • quantity discounts with one time charges applied

I have one question, is there any way to change how I see "users online", because now their url is /dpu_ajax.php and not the real url of the product they are viewing?