Re: Dynamic Price Updater
Hi Shep
No offence taken :smile:... I was just a little confused by what you said
You're right: everyone has their own way of doing things and for a lot of applications the Updater is unnecessary or overkill but for those products that have lots of attributes, as Ryk pointed out, it can be quite handy
Of course, if you have any thoughts on what could make it better or more useable please feel free to throw them into the mix :smile:
Ryk: The revised version is under way... I've been working on a different module at work so I've been getting back into the swing of Zen after being away from it for a while... I feel a renewed vigour :smile:
Dan
Re: Dynamic Price Updater
Hello everyone.
Great job with the price updater, keep it up Chrome.
I've got one question.
I'm about to start work over a shop with roller blinds. Your module seems to fit perfectly my needs but...
the price of one of the elements that composes the overall final price is calculated on the basis of providing accurate measurements (of the fabrics).. and the problem is that there are some kind of measurement brackets that are connected to given prices i.e. the fabrics that has for example 60 to 90 centimeters of width has one price, than from 91 to 140 centimeters there is another price.
The same with height.
Can your module handle such complications... or is it difficult for you to maybe include such options into the module?
Hopefully an clear enough, english in not my native language.
Regards :smile:
Marcin
Re: Dynamic Price Updater
Hi Marcin
Thanks
Unfortunately what you're asking for would have to be a custom addition to the Updater (providing of course I've understood the issue correctly :smile:)
I know there are text-based attributes (or at least I think so... I may have seen it in a dream) but, as yet, I've done nothing with them
If you like you can send me a link via PM and I'll take a look to make sure I have understood correctly and maybe make a suggestion or two
Cheers
Dan
Re: Dynamic Price Updater
Thanks for your great add-on
Is there a way for the Dynamic price updater to include the quantity discounts? I can't seem to be able to do this.
Thanks.
Re: Dynamic Price Updater
Hi Jason
The discounts are still being worked on when I can find time
I'll update the thread as soon as I have some news
Sorry this is taking so long
Dan
Re: Dynamic Price Updater
Hi Dan Thanks for the response.
For now I'm going to try and add the discount amount to the end of the price with the javascript below.
-------------------------------------------------
function makeChange() {
var addDiscountHere = document.getElementById("addDiscountHere"); //get place to add discount amount
var quantity02 = quantity;
if (quantity02 > 9) {
var discountAdded = "-10%";
} else {
var discountAdded = "no quantity discount";
}
addDiscountHere.firstChild.nodeValue = discountAdded;
}
-----------------------------------------------------
I've used your quantity variable which works fine. I'm not sure how you get the change to update as well as it does after quantity amount is altered. Is there any chance that you could tell me so I could use that on my baby function.
Thanks Jason
Re: Dynamic Price Updater
I'm now updating it with setTimeout function to get it to update.
setTimeout("makeChange()", 500);
function makeChange() {
var addDiscountHere = document.getElementById("addDiscountHere"); //get place to add discount amount
var quantity02 = quantity;
if (quantity02 > 9) {
var discountAdded = "-10%";
} else {
var discountAdded = "no quantity discount";
}
addDiscountHere.firstChild.nodeValue = discountAdded;
setTimeout("makeChange()", 500);
}
Re: Dynamic Price Updater
When I remove the code in attributes.php to take off the prices after attributes, the dynamic price updater stops working. Is there a way around this. I'm currently trying to get tags to wrap the prices and then change the colour to white so the text is not visible.
Re: Dynamic Price Updater
Hi
Any chance you can provide a link to non-working code? I might be able to figure out what's going wrong
Dan
Re: Dynamic Price Updater
Quote:
Originally Posted by
JasonRocket
When I remove the code in attributes.php to take off the prices after attributes, the dynamic price updater stops working. Is there a way around this. I'm currently trying to get tags to wrap the prices and then change the colour to white so the text is not visible.
Not sure what you're trying to do exactly, but it might be an idea to put div tags around the price and then set the CSS to display:none to stop the price from displaying but still allow the calculations to work correctly...?