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

Dynamic Price Updater

Views: 342,336

Results 341 to 360 of 1,701
10 Jun 2009, 3:12 PM
#341
chrome avatar

chrome

Zen Follower

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

Dynamic Price Updater

Hi

stevenlee: Are you talking about priced by attributes? I was under the impression that the Updater worked for that... If not please enlighten me and it can go in my ever-increasing list for V1 (proper)

spiritcraft: Ah, yes, the old 'headers sent' error... The blank lines at the end of the file may have been causing the session headers to fail... A trick for anyone experiencing a blank page is to add the following line to index.php (before the require for application_top.php)

define('STRICT_ERROR_REPORTING', true);

This should tell you the error that is occurring

HTH

Dan

6 Jul 2009, 10:59 PM
#342
soundmachine avatar

soundmachine

New Zenner

Join Date:
Jul 2009
Posts:
6
Plugin Contributions:
0

Re: Dynamic Price Updater

devlyn:

I had a friend look at the code (this is for V. 98) and he came up with this, which is working and eliminated a few bugs I was having.

I hope it helps others. :)

I might just be stupid but here it goes...

This looks and works great for me in IE.. but in Firefox I get the price showing up twice covering over the product description with one.. I'm using Cherry Zen template...

Any ideas??

https://www.delmarvatrophy.com

Tom

7 Jul 2009, 11:13 AM
#343
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

You might want to try changing this line:

var _secondPrice = 'cartAdd';

to

var _secondPrice = false;

That should stop the erroneously located price display from appearing

Dan

7 Jul 2009, 2:25 PM
#344
soundmachine avatar

soundmachine

New Zenner

Join Date:
Jul 2009
Posts:
6
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome:

Hi

You might want to try changing this line:

var _secondPrice = 'cartAdd';

> 
> to
> 
> ```
var _secondPrice = false;

That should stop the erroneously located price display from appearing

Dan

:clap: You my friend are a genius.. worked flawlessly.. thank you!

7 Jul 2009, 10:23 PM
#345
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

:cool: Happy to help :smile:

Dan

13 Jul 2009, 10:27 PM
#347
nlussi219 avatar

nlussi219

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

Re: Dynamic Price Updater

I got the price updater to work; however, there is an issue.

when you select an item off the default it correctly subtracts the correct sum of money, however if you switch back to the default selected item the price does not adjust back up accordingly.

http://redeyecomputers.com/safe/index.php?main_page=product_info&cPath=0&products_id=1

17 Jul 2009, 12:53 AM
#348
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi,

Thanks so much for the enormous amount of time you've spent on this. I would love to use it, but I'm having a tough time getting it to work for some reason. I've gone back and forth over this forum, and tried a few things, but to no avail.

Here is a link to the site I'm trying to make it work on. http://blackoliveeastnursery.net/zenCart_boe/index.php?main_page=product_info&cPath=25&products_id=2231

I haven't added attributes to other pages, so I know it won't work on them, but I thought I would try it with this page first.

I have my variables set as listed below:

thank you if you are able to help.

var objPrice, origPrice;
var defaultCurrencyLeft, defaultCurrencyRight;
defaultCurrencyLeft = defaultCurrencyRight = '';
var quantity = false; // do not alter this
var showQuantity = true; // show the quantity the customer has requested in the main price header
var showQuantitySB = true; // show the quantity the customer has requested in the sidebox
var prArr = nameArr = new Array(); // holds an array of prices to be adjusted (for multiple price adjustments)
var _oflag = false; // do not alter this

var seeker = new RegExp(/(\s*([+-]?)([^0-9])([0-9,]+.[0-9]+)([^0-9)])\s*)/);

// Updater sidebox settings
var _sidebox = false; // set this to: false - don't use or the ID of the sidebox you want the display to insert above (must be exact)
var objSB = false; // this holds the sidebox object

// Second price setting
// the following settings allow a second price to be displayed... if a page is very long this allows you to add another price display
// thanks to Ryk on the Zen Cart forums for the idea and pointing out the issue
var _secondPrice = false; // set this to either false for disabled or supply the ID of an element for the price to appear BEFORE... for example, cartAdd
var _SPDisplay = 'always'; // governs the behaviour of the second... 'always' permanently displays and 'update' shows the second price only when an attribute is selected
var objSP = false; // please don't adjust this

// debug settings
var _debug = true; // set to false to disable debug output
var _db = '';
var _dbdiv = false;

17 Jul 2009, 9:58 AM
#349
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

@Nlussi219: Sorry for not responding sooner... The issue you are experiencing is a fairly common one... If I'm not mistaken the fix (which was not discovered by me) is to set your 0 cost attributes at 0.0001... This should force the update

@lndlyb4: I'll take a better look at your site later today but on first inspection I can't see that there is anything for the Updater to do on the page you have linked to... I will apply for an account later so I can see if anything changes (the 'login for price' will immediately scupper the Updater)... I also noticed that the dropdown has no prices listed in it but this may be because I need to log in

Watch this space!

Cheers

Dan

17 Jul 2009, 1:18 PM
#350
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: Dynamic Price Updater

Thanks Chrome,

Very kind of you to respond.

I'll keep my eyes open for your comments.

17 Jul 2009, 1:35 PM
#351
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: Dynamic Price Updater

I set up an account for you so you can log in.

email: [email protected]
password: chrome

thanks

17 Jul 2009, 1:51 PM
#352
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

I've taken another look at the site and seen the error... We may be dealing with a new strain here... I've only had a brief look but I'll investigate further when I finish work (although it is the weekend and I've been very much looking forward to it)

Oh, I've also changed the password to the account you created for me (security and all that)... If you have a need for the password please IM me (it's not one of the ones I use for my own security :wink:)

News soon I hope

Dan

17 Jul 2009, 1:57 PM
#353
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: Dynamic Price Updater

Dan,

Take the weekend off and enjoy! My site can wait. You deserve a break!

However long it takes, I will be grateful.

Bill

20 Jul 2009, 4:51 PM
#354
webbo1969 avatar

webbo1969

New Zenner

Join Date:
Aug 2006
Posts:
24
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan

I truly hate to bother you as I appreciate how much time and effort you generally give on the subject of your Dynamic Price Updater.

However, I am at my wits end not knowing if/what I am missing to get the updater to work on a site which I am developing.

http://www.prestigeringcompany.com/index.php?main_page=product_info&cPath=1_2_3&products_id=55

I previously had it working on this product, although oddly it only worked on this one product and no more! And when I say 'worked' this was only on 1 of the 2 attributes - Carat but not Metal. I changed the sort order of these attributes and it swapped to change the Metal price but not the Carat!

Aaargh! Since this, I have deleted a currency converter mod as well as deleted and reinstalled your updater.js file. And now the updater does not work at all.

Am I missing something painfully obvious that will not take too much of your time to advise on? I am viewing in IE where I continuously receive a Javascript 'error on page' error on each product page which may / may not be relevant:

Message: '1' is null or not an object
Line: 124
Char: 3
Code: 0

If you can help/advise me on getting this working I would be very grateful.

Regards,

Steve

21 Jul 2009, 9:44 AM
#355
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Webbo I know why this is happening for you: it's a problem with finding currency using the seeker regex

I'll be checking sites over the next few days because one or two other people are having some issues... I'll post back here when I have some news

Cheers

Dan

24 Jul 2009, 1:51 PM
#356
gociak avatar

gociak

New Zenner

Join Date:
Jul 2009
Posts:
12
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi.
I just want know, if can price updater work with dual pricing. I try to dual pricing but i get this:

UPDATER_PREFIX_TEXT€NaN$

and when I click on the another attribute i get another error:

UPDATER_PREFIX_TEXT€NaN (499$)

Can somebody help me and tell me what is wrong???

24 Jul 2009, 3:36 PM
#357
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

I don't believe the Updater is compatible with dual pricing although I've never had occasion to test it... Could you provide a link so I could check it out?

On this note I will be getting round to looking at sites (for Steve and Bill) but I've had another mad week (I forgot my sister is visiting from Australia)... I'm sorry I haven't got round to it sooner

Cheers

Dan

24 Jul 2009, 6:15 PM
#358
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Posted via Mobile Device

26 Jul 2009, 4:32 PM
#359
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: Dynamic Price Updater

Thanks for keeping me in mind Dan.

Bill