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

Dynamic Price Updater

Views: 342,273

Results 581 to 600 of 1,701
17 Feb 2010, 11:44 AM
#581
chrome avatar

chrome

Zen Follower

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

Dynamic Price Updater

Hi

I've checked out a few pages and the only JS error that I see is ```
scW("scw") is null


It looks like the Updater is having difficulty getting a handle on the H2 that contains your price... If you want you can send me your FTP details (it may be preferrable to set up a temporary account) and I will take a look

Cheers

Dan
17 Feb 2010, 6:41 PM
#582
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Dynamic Price Updater

Your right the JS error was caused by something else. I took care of that.

17 Feb 2010, 7:58 PM
#583
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Unfortunately I can't help any further without being able to run some tests local to your server... Unless you want to send me a TAR of the site (with the configuration.php trimmed to remove sensitive data) and the DB so I can take a look on my dev site

Dan

17 Feb 2010, 11:08 PM
#584
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Dynamic Price Updater

Could it be as simple as div nesting or css problems?

17 Feb 2010, 11:09 PM
#585
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Dynamic Price Updater

Seems like it would be a lot of work to send that to you although would not have a problem with it. If I cant figure it out though I suspect that I will probably do that.

17 Feb 2010, 11:18 PM
#586
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Shouldn't be a CSS issue... The only thing that could really affect like this is if the ID was duplicated or the DOM was totally trashed... That doesn't appear to be the case

It's a headscratcher to be sure... I really can't see anything else from here

Dan

PS The FTP details are just a username and password... For the trouble you're having it seems a minor detour

18 Feb 2010, 1:28 AM
#587
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi ksookma

Sorry for missing your email

The problem with your site is that line-breaks and/or whitespace is being inserted into your code... It can be seen in the source before the DOCTYPE declaration... It doesn't affect browsers too much but JS is very sensitive and the whitespace is causing the code to interpret the response as text (the header has to be the first thing interpreted, the same way as setting a cookie from the server)

I can't find anywhere this whitespace is output... It's very odd but if you check the source for your site there seem to a lot of line-breaks

Maybe a word with your server admin may help... I've seen this before but I can't remember what the solution was

Dan

18 Feb 2010, 10:10 PM
#588
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Dynamic Price Updater

By line breaks you mean <br> right. I have put in a lot of breaks to fix design issues. Should I remove all the breaks?

18 Feb 2010, 10:18 PM
#589
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

No... That's an HTML line break and is interpreted essentially as text... No it's \n (on Unix) linebreaks being output before the HTML even has a chance to get started

I've managed to narrow it down to something that includes/application_top.php is autoloading. Usually it's the product of a PHP tag being closed and a space or carriage return being present after the tag. Example:

// End of my code
?>

Note the extra line after the ?> ? That can cause a lot of problems with headers... Under normal circumstances this can be fixed by wrapping all of the code in an output buffer... Unfortunately, I can't get this solution to work on your site (I don't think Ajax calls can be buffered but I'm not certain)

The current solution? Trawl through all of the autoloaded/included files from application_top.php looking for the offender(s)... Boring and lengthy job I'm afraid

Dan

18 Feb 2010, 11:26 PM
#590
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Dynamic Price Updater

I know you have been on and of the site for a long while looking at this problem for us. I made a donation through your site link. Im so glad it works, thank you!:D

We will be using your services in the future!

18 Feb 2010, 11:49 PM
#591
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Thanks for the donation... As always it's greatly appreciated :smile: (though never required)

The solution I discovered for you was fairly unique I think

I'm glad your site is working now :smile:

Dan

19 Feb 2010, 12:25 AM
#592
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 set up a new site for testing... Anyone that wants to see the new Updater working can go to http://chrome.me.uk/shopdev2/ for a look :smile:

Thanks to Ajeh for letting me know that the original test site was hacked

Dan

19 Feb 2010, 2:11 PM
#593
chingy avatar

chingy

New Zenner

Join Date:
Nov 2009
Location:
Northants UK
Posts:
6
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Chrome,

Glad to see that you are much better and solving problems, life in the valleys is returning to normal.
I posted went you weren’t to good an think that you may have missed this, do you have a idea how to go about sorting this:-

I have been through this thread and couldn’t find any more info, this is an excellent add-on and I always use it. For my new site I have run into a problem.

I have commented out two lines in attributes.php that removes the prices from the dropdowns so just the different option name and not the prices are seen.

$products_options_display_price= ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .

$currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;

Problem is it stops the DPU working.

I have spent a bit of time trying to figure out how to get them both working together and I have drawn a blank. Has anyone figured out how to get this working for 1.38a as the solution earlier in this thread doesn’t work for me as its for 1.37, any changes that I make just blanks the page.

Is it possible to change the output to either a specific color, or not visible so the DPU can still work but the price can’t be seen?

Any help would be greatly appreciated.

Thanks

Chingy

19 Feb 2010, 2:28 PM
#594
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Thanks!

It sounds like you're using V1 of the Updater... Have you tried V2? It doesn't rely on the display to calculate the new prices

Let me know

Cheers

Dan

20 Feb 2010, 5:57 PM
#595
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 made another slight addition to the Updater... I noticed before that some sites can get slow at certain times of the day and it can sometimes seem as if the Updater isn't doing anything so I've added a little loading graphic to show that something is still happening

The graphic appears next to the main price and in the sidebox... For a working demo go to http://chrome.me.uk/shopdev2/ ... I've deliberately slowed the script down on the server to mimic a slow site

Cheers

Dan

20 Feb 2010, 6:18 PM
#596
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Dynamic Price Updater

Hey Chrome,

Nice! How can we add this to our DPU files? Will we need to over ride anything?

Pkat

20 Feb 2010, 6:46 PM
#597
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

I'd recommend re-uploading the whole package... It's just a case of letting your FTP client overwrite the existing files :smile:

Dan

20 Feb 2010, 6:53 PM
#598
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Dynamic Price Updater

Ok...thanks for sharing!

22 Feb 2010, 1:35 AM
#599
nyzcaddict avatar

nyzcaddict

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Re: Dynamic Price Updater

hey dan, just wanted to thank you for the DPU and WELCOME BACK! :clap:

22 Feb 2010, 1:28 PM
#600
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Thanks!

I'm looking for some ideas for features to add to the Updater so if anyone has any suggestions please post them here :smile:

I'm already looking into having the updater work on the category pages but that looks to be a release for some time in the future

Cheers

Dan