Oops forgot to mention... elaforet can you post a link to your shop? I'll have a look for you
Cheers
Dan
Printable View
Oops forgot to mention... elaforet can you post a link to your shop? I'll have a look for you
Cheers
Dan
If someone can help solve the sales price issue with this module please let me know.. I will be happy to pay a little money for the assistance. It is a small budget, but I will see what I can do!
Hi mattfrand
I'm working on the sales part of the Updater as many people have asked... It could take me a little while but I'll try to keep this thread updated as to how it's going
Also may need some testers if anyone is interested
Cheers
Dan
You don't need an "updater".
Check this out: http://www.triplefishlines.com/index...roducts_id=231
I found a programmer that solved the problem in about 10 minutes.
Thanks,
Shep
Hi Shep
Maybe I'm missing something but I visited the link you posted and the dropdowns don't seem to update the visible price at all
What can't I see?
Dan
It doesn't update the price in the copy because IMHO it isn't necessary. Noone is going to go all the way to the bottom of a product page, select an option and look back up at the top to see if the price changed. All they have to do is look at the options/attributes and it is quite obvious what the total price is. They click and are on to more shopping or checkout. IMHO you are trying to make it too hard for the average person to use a site.
Shep
Hi Shep
That's why the updater display can be duplicated at the bottom of the product page and there is a sidebox that can be positioned anywhere in the side columnsQuote:
Noone is going to go all the way to the bottom of a product page, select an option and look back up at the top to see if the price changed
The Updater is there to alleviate this need... Imagine a product with 12 attributes (I've seen this on a PC configurator) and the customer having to find a calculator (I know, Windows has one... Do general computer users?) then having to go through each attribute to add up the total... That also adds an error situation, e.g. catching the wrong key on the calculatorQuote:
All they have to do is look at the options/attributes and it is quite obvious what the total price is. They click and are on to more shopping or checkout
Also if I were to add up the price myself I would have to scroll all the way up the page to find the original price then back down to read the attributes
Nope, you've lost me thereQuote:
IMHO you are trying to make it too hard for the average person to use a site
That's from your first post... If you're not using the Updater what problem was fixed?Quote:
I found a programmer that solved the problem in about 10 minutes
While it isn't my place to disagree, the download statistics and posts in this thread wouldn't appear to support thatQuote:
You don't need an "updater"
I've never tried to foist the Updater onto anyone or advertised it as a 'must have'; I was asked to write it twice then decided to release it to see if it could benefit anyone else... The response surprised me (and still does)
I realise you are only expressing your opinions but in this case wouldn't it be easier to just not use it?
Dan
*DISCLAIMER* No offence was intended in this post
Shepherd348. Do you work for a council or a politician? Sounds to me like you don't like something you can't understand. IMHO of course ;)
Sorry to offend you. Sometimes I get a little too enthusiastic.
It just seemed to me that someone might not have considered that option.
I spent seven years working for a major online retailer that was totally focused on the customer's experience, so I guess I look at things differently. Everyone has to choke their own chicken. Again, no offense meant.
Shep
@shepherd - the main use is when there are a multitude of attributes - this type of thing.. http://www.crowndisplay.co.uk/standa...ide-p-188.html
The module isn't on there yet - I did try in an earlier incarnation (of the module, not myself! :smile:) but had problems so am awaiting the revised version)
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
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
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
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.
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
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
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);
}
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.
Hi
Any chance you can provide a link to non-working code? I might be able to figure out what's going wrong
Dan
Hi exoticcorpse
I spent ages trying to add a tag around the price. I finally did (i used an em tag), but then realised that css has no affect on tags inside the option tag.
The below css has no affect
#productinfoBody #productAttributes select option em {
display: none;
background-color: white;
}
I didn't know that before :-(
I have been trying fo a little bit and hopefully someone can answer a couple of questions.
1) The price updater updates my top price even when I have selected attributes not to be added to the base price. Is there a way I can exclude select attribute prices from the price updater? I have certain items that need an extra handling charge via UPS and there appears no other way to add them to the total.
2) A smaller problem but if someone has a solution it would be great. On products with no attributes I recieve an error on page in IE. "Error: '1' is null or not an object". Can this be fixed so it does not come up with an error?
Thank You
Paul
Thank you thank you and did I mention that i really want to say THANK YOU :clap:
I am setting up a similar store to yours with various sizes of canvas prints and greeting cards and this is the answer to all of my hair pulling over pricing structures.
This may have been said before, but I am a bit brain frazzled right now after finally pinning my problem down to this module.
Where I have the base price set to zero, the updater assumes a base price of the lowest value in the dropdown. With a test value of $10 set to lowest it will start out by suggesting that the price starts at $10, but when the $10 option is selected the displayed price becomes $20, and $10 is added to any other value selected as well.
Is there any way around this????
I don't know if this is what you are looking for but when adding an attribute a "+" or "-" sign will add or subtract from the base price. If you want a seperate price don't put anything in that field and it will see it as a new price by itself. Also, if you want a different attribute selected other than the lowest one I believe you can specify that the attributed is selected. You should also be able to specify the order as well.
Thanks Pablo. That sorted it out. Much appreciated. Now to get my head around all the other things I need to set up and figure out. 1 down hundreds to go :frusty:
I solved the Error on the page. I simply assigned products that are going to use the dynamic price updater a different product type. I used document product and changed the dynamic price updater file. I changed all of the 'productsGeneral' to 'docProductsDisplay' and then put the javascript file in the includes/modules/pages/document_product_info.
Chrome,
As I mentioned in the email. The pricing is not showing up. Receiving the following Debug:
Debug messages
SP Onload: Type: always
updSP: Duplicating price, by jove!
Onload quantity: Cart add INPUT discovered (1)
Would really appreciate any help on this. Did I turn something off in ADMIN?
Help !!
http://div8hardware.com/index.php?ma...roducts_id=564
Hi
On that page I can see the price but I can't see the 'Add to Cart' bit... Is that what you mean?
There isn't anything in the Admin section for the Updater... It's entirely self-contained
If you can provide an image of what you expect to see that would be great
I apologise for being a little bit rubbish but the Xmas spirit may have crept up on me
Oh, also massive apologies to everyone for my terrible response times... I've been quite busy
Cheers
Dan
Yes that is correct. there is no pricing on the add to cart. Before it disappeared, the price would change on that page, with the attributes price changes. It doesn't do that now.
The image is whatever was basic loaded.
I just don't know if i turned off something that shows it in the admin.
Hi
That is odd
Um, the best I can say is that I'll have a look tomorrow... I'm possibly wobbly
I apologise once again for my lack-of-being-any-good-icity
Dan
Chrome,
Ok, I noticed THIS. Open up the website: http://div8hardware.com/index.php?ma...roducts_id=566
Open ONE in Firefox, and open it again in Internet Explorer
Firefox shows the "dropdown" Hrz Nav bar, as well as our Logo in the header, but in the ADD TO CART tab, there is no Price Updater showing.
In I.E., the "dropdown" Hrz Nav does NOT drop down, and our LOGO is not showing. However, the good news is the Price Updater is showing and working.
I don't understand why some work in one and not the other
Help, from anyone please!
thanks,
Paul
Chrome,
If you have a moment...do you know how your updater could be modified to update the product listing page. I have another modification that I'm working with that will put the attributes on the product listing page but I wanted to be able to use the dynamic updater as well.
sample http://ameribestfasteners.com/catalo...=index&cPath=1
thanks
Paul
I have had some usability testers report mild confusion regarding the way the quantity is displayed next to the updated price since it's just (1) or whatever number. I changed it to display (1 item) or (2 items) etc. I added a conditional to display (item) if the quantity is 1 and (items) for all other quantities. Here's what I did:
On line 296 change:
to:Code:document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ')' : '');
You can change the text to anything that you want. For instance, you could change it to display (Quantity x) by changing line 296 to:Code:if (quantity == 1) {
document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ' item)' : '');
} else {
document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ' items)' : '');
}
Thanks again to Dan the Man for this most excellent of mods!!!Code:document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (Quantity ' + quantity + ')' : '');
Cheers, Happy Christmas and Merry New Year!!:laugh:
I was able to get the attributes to work on the product listing page but I am still stuck on getting it to work with the dynamic updater. Anyone have any ideas?
Here's the attribute/product listing modification
http://www.zen-cart.com/forum/showth...t=98641&page=2
Thanks,
Paul
Ok I have gotten a little further but it still doesn't change yet. I have gotten it to the point of return the debugging messages and it says it is updating but it isn't actually effecting anything.
Paul
Hi - I am trying to use the price updater with the stock by attributes dynamic drop down menus..here is the example page:
http://www.coyuchi.com/shop/index.ph...products_id=12
The price updater is working, but it is somehow interferring with the dynamic drop downs from updating in sequencial order to reveal the attributes for color and size. I have set the product to have no base price and the lowest attribute to $.001.
Below are warning messages I got from Firefox 3.0.5 error console on Mac. (I don't necessarily think these warning are breaking the other script, but thought I'd include them just in case).
I will message the other mod author too, just thought I would try to see if there was anyone here that might have some advice.
Warning: reference to undefined property stk[frm['id[6]'].value]
Line: 623
Warning: assignment to undeclared variable nameArr
Line: 52
Warning: test for equality (==) mistyped as assignment (=)?
Line: 123, Column: 50
Source code:
if (temp[i].className = 'productSpecialPrice') {
If I can figure out how to do an example without the updatrer blocking the dynamic drop downs I will post link...sorry, fairly new to zen cart..thanks for your help...
Hi - here is an example of the same product as in my other post, but it has the base price set at zero as well as the lowest attribute, which for whatever reason, makes the price updater mod not work and lets the drop downs do their thing...
http://www.coyuchi.com/shop/index.ph...products_id=11
I've read all of the posts regarding the price updater and even installed the script. Although it's something long overdue in the cart, and something wonderfully oversimplified, there is a HUGE problem that is intrinsic with Zen-Cart that is still not addressed.
The obnoxious "+" accompanied with the dollar figure is absolutely 'in the way' of the pricing. If there were a method to simply 'hide' the plus sign and the accompanying dollar amount that would make developers "and" customers happy.
Here's the problem. Customer, like it or not, are not as computer savvy as we would like. They look at the numbers and the plus sign and get confused. Look at http://www.peninsulaoutfitters.com/s...roducts_id=183 . The "Product Priced by Attributes:" is of no value. If it's off, the "price updater" script won't work. If the plus sign is eliminated and the price in the attribute is entered in place of the 'additional' sum, the "price updater" won't work.
Bottom line, unless the plus sign, additional sum 'and' the "Product Priced by Attributes:" are all working in tandem the "price updater" script won't work.
The easy solution, although I'm not saying I have figured out how to make the alteration, is to simply 'hide' the plus sign and accompanying dollar increase so that the pull-down menu only has the item displayed like http://www.peninsulaoutfitters.com/f...freestone.html . It's basically the same JavaScript that is used, but the option value is not revealed. Can't Zen-Cart hide the option value somehow?
Chrome...
Ok, I (me and another zenner) have come up with a possible idea of why it's not working in FF. Everything is fine in IE, however, with the new updated version of FF, the pricing is not showing on the ADD TO CART tab. Is it possible that the new version of FF is a related issue to this problem ?
thanks,
Paul
Copy includes>modules>attributes.php and paste into includes>modules>YOUR_TEMPLATE_NAME folder(the overrides folder). Create the YOUR_TEMPLATE_NAME folder if you don't have one. So if your template is called custom then you will create a folder called custom inside includes>modules.
Open the attributes.php file, that's in your custom folder, in your text editor and look for this line, around line 154:
and replace with:PHP Code:
$products_options_display_price= ' (' . $products_options->fields['price_prefix'] .
$currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
then, in your stylesheet add this:PHP Code:
$products_options_display_price= ' <span class="attributesPricePrefix">(' . $products_options->fields['price_prefix'] .
$currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') </span>';
Now, all attribute prices are hidden but the price updater still works. At least with radio buttons, I don't use drop downs but I don't see why it wouldn't work. :DCode:.attributesPricePrefix {
visibility: hidden;
}
Happy New Year!
lankeeyankee
Sweet! But before I make any changes I want to make sure I have the correct line - mine seems to have more than you quoted, but I'm just being meticulous....
On line 158:
$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;
You're saying to change that to:
$products_options_display_price= ' <span class="attributesPricePrefix">(' . $products_options->fields['price_prefix'] .
$currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') </span>';
Seeing your <span></span> tag tells me that will work...if that's the correct line I showed above for you.
The reason I ask is because I know that the single quote is very important in the php code. Where you have '(' seems to be replaced with ATTRIBUTES_PRICE_DELIMITER_PREFIX .
The code, line 158, is found after the //normal price
Is that right? After, of course, the 'if' and 'else' statements.
In the end, I should have:
$products_options_display_price= <span class="attributesPricePrefix">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</span>;
But I'm missing the single quotes before the opening span and after the closing span tags. I'm going to try it like that and will check back here to see if you agreed or have another suggestion.
Thanks for the fix...
I tried the above as show, but it made the page go blank. I changed the code to include '<span class=''attributesPricePrefix">(' before the . and the remaining code, closed it with the . ')</span>'; but it didn't work. That simply added all the code to the drop-down menu so that the + and additional price in addition to the <span></span> coding was also included.
I tried div tags, but no difference.
I think wherever the ATTRIBUTES_PRICE_DELIMITER_PREFIX is referenced is where the <span></span> tags should go.
This theory proves correct. I inadvertently placed the ...._PREFIX at the end of the php code instead of replacing that with the ..._SUFFIX and found that the parenth was reversed around the plus sign and added dollar figure.
So this puts me on the right track, although still on the hunt...
Any suggestions where to find the prefix/suffix in the php where I could put the span tag around that code?
Ahh, so sorry, I should have mentioned that this was for v 1.3.7.1 so it could be different if you are using 1.3.8a. My attributes file doesn't have ATTRIBUTES_PRICE_DELIMITER_PREFIX etc.
It should work if you change your file to read:
Copy and paste this to replace the original line and add the rule to the stylesheet. The single and double quotes are correct. Let me know if you still have a problem and I will install a fresh copy of 1.3.8a on my local box to get it to work right.PHP Code:
$products_options_display_price= '<span class="attributesPricePrefix">' . 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 . '</span>';
That didn't work.... :no:
What it did do was display the span tags and included class tag inside the drop-down menu surrounding the parenthesis, plus sign and additional dollar figure.
I had the same results yesterday in trying variations of what you had suggested.
I was talking to someone else who knows php 'pretty well', and he told me that php won't read html. His suggestion was to add the base price before the plus sign so the 'mentally retarded customers' who are having so much trouble trying to figure out what all the numbers and plus sign mean, they will see the base price plus the additional amount and the total will be found below the drop-down as it's placed now.
But...that seems pretty lame to add more unwanted information into the drop-down menu when I'm trying to remove what's there now.
Do you know where the ATTRIBUTES_PRICE_DELIMITER_SUFFIX is found?
Would it make sense to put the span tags around whever that 'call' is found...in whatever module/file?
There must be an answer...but I don't know php well enough to figure it out.
What if....
In attributes.php, can't the statement
if ($new_attributes_price == 0) {
$products_options_display_price= '';
} else {
$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;
}
..be moved so that it's part of the "value" in the pull-down menu?
I have a JS that uses nearly the exact same process (look here http://www.peninsulaoutfitters.com/f...freestone.html ) to read what's in the "value" of the <option value="blah blah..anything can go here, even +$28.99"></option> and the +$28.99 is added to the base price, then appears in the <input name="tot" /> so that each change is automatically updated and the customer can see immediately the price total.
So, in theory, the resolve to what I'm seeking would be moving the code for the products options into the "value" field of the <option></option> code.
But, I have no clue how to tell the php to do that...
If there 'is' a way to do that I'm sure the Zenners would love whoever comes up with that resolve.
How about this....
I have the JS that will do 'exactly' what I want and can be manipulated as I want for each product. If I implement that script, which is simple to do, how do I pass the information from that script into the shopping cart when the customer clicks on the "Add to Cart" button?
I guess I should have checked before I opened my big mouth!:laugh:
My fix doesn't work with drop downs, only radio buttons and perhaps check boxes in v1.3.7.1. I am not sure how you can get the same results with drop downs but it has to be possible.
Can't help with the JS stuff, not strong enough to give any help. Sorry!!:blush:
OK, So I went back and reinstalled earlier version of Firefox. Alas, I still have same situation. I can not get Price Updater to show up on the "add to cart" tab in FF. Works well in I.E. . Anyone have any thoughts ? Help would be most appreciative.
thanks,
Paul
:wacko:
Hi all
Seems the new year and the lead up to it have been more busy than I anticipated... No change there then... Sorry all
pacdad, I'm glad you got the issue sorted... Sorry I couldn't help further but to be honest given the nature of the fix I doubt I would've been able to do too much
As always many thanks to lankeeyankee for the kind words and continued support of the Updater
LTCreations: you have stumbled on one of the Achilles heels of the Updater... This has been breaking my brain on and off for a while now... I think I have the plans for V2 set in my head now so I'm going to set up a new test shop and start playing... I feel a renewed vigour!
I hope everyone had a good Yule season and New Year... The parts I remember were very good :smile:
Thanks all and again sorry for the lack of support
Dan
Can someone tell me the proper way to uninstall this? I installed in on zc 1.3.8a and now there is a debug message popping up on my site www.modebook.com/zc
:(
I can't have it happen and would greatly appreciate some help unless someone can actually get it to work for me.
http://www.modebook.com/zc/zcss1.jpg
Did you try editing the: jscript_updater.php on your site?
This will turn off the Debug results.
Open, edit and change the var=debugTrue to False
// 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 = 'cartAdd'; // 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;
function init() { // discover the selects that are required to adjust the main price
var centre = document.getElementById('productGeneral');
var objSel = centre.getElementsByTagName('SELECT');
var objInp = centre.getElementsByTagName('INPUT');
var db = '';
var _flag = false; // flag to decide if a load of attribute information is needed
hmmmm...I can't seem to locate the file jscript_updater.php
hint?:wacko:
it's the only file you downloaded for this Mod.
I'm assuming you FTP'd it to: includes/modules/pages/product_info/ ?
Should be in there.
My bad. :oops:
I made the change and all is well now.
Sorry about that. Sometimes the obvious is looking right at you and you pass it by.
Thanks a bunch for the lightning fast responses!
Jeff
Where did you assign "addDiscountHere"? I would like to get this to work with quantity discounts, too. I see that your function has hardcoded values so I would have to clone the function using a different element ID and set different discount values for the different quantity discounts we offer.
Thanks!
Matt
I'm looking for a "custom product" mod where the customer can select material, grade, & thickness, then enter length, and width. the mod would then calculate price and weight based on material and grade related properties and then send it to the order. Does this exist??? Thanks P.S. as a newbie this is driving me Wacko.:wacko:
Have you looked at using the attributes controller in the admin panel? We use attributes for various options and once selected and added to the cart it will adjust the price. Sounds like you would need to use text attributes for the length and width unless you created a dropdown list for those. The dynamic updater will update the price on the product info page. I think you would have to custom program the weight update calculation based on the options chosen, or perhaps you can set up individual products for different length and widths and set the weights normally for each one. Not as elegant perhaps but easier(and cheaper if you have to hire someone) to implement.
If you haven't already done so, I would highly highly recommend buying the book eStart Your Web Store With Zen Cart, there is a link in here somewhere. It is a great resource for basic ZC setup including attributes. I found it very helpful and still refer back to it now and again to double check something.
Hi Chrome and all savvy updater people,
I'm sure my problem is just some small tweak I've overlooked, so maybe someone can help me. I've installed the updater, but the price doesn't show at all, nor does the sidebox.
My products have $0.00 price. The price is based off the attributes. I have radio buttons, dropdown menus, and text boxes. Some of them increase the price, some of them do not. I've taken off the + sign from my attribute pricing. I also do not have any price currently showing (I've taken off the "starting at:" price).
I have made some changes to the tpl_product_info_display, but I tried the original file and that didn't fix the problem.
I've tried adding a base price, putting the + sign back on, displaying the original price, and everything else I can think of to get it to show up. I've double checked the folder I originally placed the file in, and it's correct. What am I missing? Am I supposed to include some code in my product info display page?
Here is my test link: http://welcomingwalls.com/index.php?...roducts_id=181
Thank you in advance for the help,
Kim :no:
Just a bit more info on my problem I just posted:
I am using the lasted version of Zencart.
I don't have the Lightbox add-on, just IH2 and the Column Layout Grid.
I checked in both IE7 and Firefox, and neither are working.
Thanks,
Kim
I don't see where your price is supposed to display? Can you provide a screenshot of the page without the updater to get an idea of how it looks?
When the attribute price is $0, did you make it $.0001 in the attributes controller? You have to or it won't work. And, you can only have one set of attributes without the +, all others have to have the + to work, so I have found that it's best to use the no + attribute for the main one and the ones below have the +, even if it doesn't add to the price it still has to show +$0.00 or it won't work.
I'm sure we can get it working correctly, just need to figure out your setup and then take it from there.
BTW, your layout is broken in FF3 on XP. the main column overflows into both sideboxes, an easy fix in your CSS.
Hi, there is a problem with the default currency symbols
if there is no ":" in TEXT_BASE_PRICE in yourlanguage.php, Dynamic Price Updater do not work.
To fix this problem find
and change toCode:// try and find the default currency symbols
var temp = origHTML.match(/.*:\s*([^0-9 ]*)([0-9.,]+)(.*)/);
Code:// try and find the default currency symbols
var temp = origHTML.replace(/<?echo(TEXT_BASE_PRICE);?>/g,''); //NEW filter for TEXT_BASE_PRICE
temp= temp.match(/s*([^0-9 ]*)([0-9.,]+)(.*)/);
web28
Thank you lankeeyankee for the guidance. I made the changes you suggested and the price updater actually shows up now! Wahoo! But, it doesn't update the prices.
Here's my link again: http://welcomingwalls.com/index.php?...roducts_id=181
I will go over this thread again for others with the same problem and try to find a solution. Otherwise, if you have any more good suggestions, I would be happy to hear from you.
BTW, I was in the middle of messing with my divs when you found my firefox issue. It's fixed now :wink:
at WriteAtHome
Thats may be the problem. In your define TEXT_BASE_PRICE is no ":" and the Price Updater don't work.Quote:
(I've taken off the "starting at:" price).
Change the code with my fix.
web28
Thank you Web28, you were right on target with the "colon" thing. Now I've got the updater working for the first attribute which is the size. The second attribute is free. But for the third attribute where I add $3.00 for the extra color choice, the updater isn't adding it at all.
I changed the sort order of the third attribute to the first one and it still doesn't work, but the size attribute still works as third in the sort order. So, I know it specifically has to do with the settings in that particular attribute. All my attributes are radio buttons, so I know it doesn't have anything to do with that.
I'm sure it's just another little thing I've overlooked. Any other suggestions would be most welcome.
Here's my website again: http://welcomingwalls.com/index.php?...roducts_id=181
Thank You!
You need to put a price for the 6", you'll notice that if you select one of the other sizes it will change the price as expected but then go back to the 6" and the price stays at the last size's. This may be what is needed to make the third set of attributes work correctly. Also, you might want to make the 6" size the default selected like the other 2 option sets have. Let me know how it works after you add the price to the 6".
Question on updater:
I am looking for a utility or MySQL code that will set all prices for all products to a set percentage above wholesale price. Also looking for a way to record wholesale prices in the databse along with a user defined formatted catalog ID number.
This is the wrong thread for your question. The dynamic price updater is for the product info display page to dynamically change the displayed price based on product attributes that are chosen by the user.
I think you can put a couple of the free mods together for what you want, Easy Populate is one and I think there might be one to add the wholesale cost to your product creation page in the admin(it's a profit calculator but it does add a field in the product creation page for your cost). You use a spreadsheet for EP and can easily multiply a column (the wholesale price(you will have to add this manually - see my post here:http://www.zen-cart.com/forum/showthread.php?t=116061)) by whatever percentage you want to derive the product's price.
As far as the user defined catalog ID number, wouldn't you just use the model number field in the product creation page?
I suggest starting a new thread for your questions to get more in depth answers.
at WriteAtHome
You have two things to change:
1: Attribute 6'' set the price to +0.0001 or use a dropdown
2: for="attrib-29-109">Same as Color 1<br> (+$0.00) - the problem is the <br> tag. Dynamic Price Updater can't read the price (+$0.00)
The code for Radiobuttons and Checkboxes read out the html-text until the next html-tag (nextSibling):
prArr[objInp.name]['n'] = objInp.nextSibling.innerHTML.replace(seeker, '');
web28
Hi Web28, lankeeyankee, and everyone using the Dynamic Price Updater,
After many wonderful suggestions by WEb 28 and lankeeyankee I've perfected the price updater on my test website. You can view it here: http://welcomingwalls.com/index.php?...roducts_id=181
It's not exactly what I wanted the page to look, but having the updater work properly far outweighs the small details I had to forego. To help anyone else out there trying to make the updater work on their site, I'm going to give a rundown of everything I had to tweak to make it work for me. Maybe some of these suggestions will work for you as well.
1. I had too many custom tweaks to begin with that interfered with the updater, so my first suggestion would be to start with fresh and "untampered with" product_info pages. Once you get the updater working properly then you can make custom changes and test to make sure it doesn't mess with the updater. Web28 mentioned that you have to keep the "Starting at:" text or at least the ":" to make this work. This was one of the tweaks I had made that messed with the updater working for me.
2. My website uses radio buttons rather than dropdown menus because I needed to add images to my options. BUT, only some of the radio "Attribute Style for Radio Buttons/Checkbox" work:
Image Styles:
0= Images Below Option Names
1= Element, Image and Option Value
2= Element, Image and Option Name Below
3= Option Name Below Element and Image
4= Element Below Image and Option Name
5= Element Above Image and Option Name
Test them out for yourself, but for me the only one that worked was #3. I think this had something to do with Web28's suggestion in Post #272 about the (+3.00) being on a certain line.
3. My actual product I set a price of $0.00 because the pricing was based on the size chosen in the first attribute. The first attribute flags were all set to "no", except the discounted setting which is could be either way, and the first attribute is set as the default. As lankeeyankee stated in Post #264, the first attribute doesn't need the "+" in the pricing to work. Because I am using it as my base pricing I left the "+" out and it works fine.
4. The second attribute is color #1. I don't charge anything for the first color because it's part of the original price. So, I was able to take out the "+" and the pricing all together. Each of these attributes work independently from one another, so it didn't have any negative effect on the other attributes to leave the pricing out. All the attribute flags were set to "no", except discount and base price. These could go either way because their is no pricing involved.
5. For the third attribute, Color 2, this was the kicker. My first option value is "Same as Color 1", which means their is not an additional price because they didn't want a second color. The other option values added $3.00 for the second color of their choice. The options that added $3.00 worked fine, but if I then again chose "Same as Color 1" it wouldn't subtract the $3.00 back off. The only thing different between it and the other options was the price difference and the fact it didn't have an image. So, I added an image . . . and it worked perfectly. I don't know why it also has to have an image for the updater to work, but I suspect it has to do with Web28's suggestion in Post #272. For this attribute, the flags were all set to "no", except the discounted could go either way and the "Same as Color 1" is set as the default.
Anyway, I'd like to thank everyone who posted here, because I read all 27 pages trying to find the answers to my problems. I hope that maybe the settings I've posted here might help someone else who is having trouble.
Kim :smile:
at WriteAtHome
I fixed this for Image Styles 0,1,2,3,5, only 4 is too difficult, because the <Label>Tag isn't after the <Input>Tag and the Dynamic Price Updater is looking for the <Label>tag after the <Input>Tag.Quote:
Only some of the radio "Attribute Style for Radio Buttons/Checkbox" work:
Image Styles:
0= Images Below Option Names
1= Element, Image and Option Value
2= Element, Image and Option Name Below
3= Option Name Below Element and Image
4= Element Below Image and Option Name
5= Element Above Image and Option Name
Please try the modified version. I tested it with ZenCart 1.3.8 and it works fine.
web28
I'm sorry, there a few mistakes in the postet Version
The newest version is v.0.92
In this version are some features specially for the german ZenCart Shop, but it work also fine with original ZenCart.
web28
New multilangual Version
web28
OK, can someone tell me what I am doing wrong here?
I am not getting any updates to the pricing, although it appears things are working. Check out a sample here: http://www.craftycowleatherworks.com...&products_id=8
Any help would be greatly appreciated!
Hi hachaliah
Unfortunately I don't have my development files with me for stating line numbers but you need to open the jscript_updater.php file in an editor and find the following line
Try changing the line to readCode:// try and find the default currency symbols
var temp = origHTML.match(/.*:\s*([^0-9 ]*)([0-9.,]+)(.*)/);
HTH and good luckCode:var temp = origHTML.match(/(.*:\s*)?([^0-9 ]*)([0-9.,]+)(.*)/);
Dan
Thanks for the help.
It almost works!
Here's the link again:http://www.craftycowleatherworks.com...&products_id=8
The price adjusts when there is an adjustment to be made, but if the attribute is one that does not require a pricing adjustment, it gives me an error. Any thoughts? I certainly appreciate the help!
Also, how would I go about eliminating the pricing showing up twice? And how about the quantity appearing in parenthesis after the price.
Hi
I've had a quick look at the site
I believe the issue with double pricing can be resolved by giving the blank attributes a value of 0.0001... There is mention of it somewhere earlier in the thread... This will, unfortunately, lead to, for example, 30 inches having (+$0.00) after it... My memory of this problem is a little hazy so a quick trawl of the thread may be in order... I'll look into this tonight when I get to my dev machine and hopefully get an interim build completed
The price showing up twice is a direct result of the above error
For the quantity display, open up jscript_updater.php in an editor and find this line:
Change the true to false and you should be all setCode:var showQuantity = true; // show the quantity the customer has requested in the main price header
Hopefully I'll have some news in a few hours
Cheers
Dan
The 0.0001 correction fixed the duplicate numbers in non-adjusting attributes. Thanks.
But I still have the "Your Price:" showing up twice - once by the image and once underneath. Too weird.
I'll get there!
Hi,
i've made some modifications:
//NEW: NO INIT BY PRICE IS CALL, PRICE IS FREE
//NEW: SUPPORT FOR SPECIAL PRICES
//FIX: RADIO AND CHECKBOX OPTION PRICE = 0,00
//NEW: USE ZENCART CURRENCIES FORMAT
//NEW: USE ZENCART DEFAULT Decimal_Point, Thousands_Point
//FIX: ATTRIBUTE PICTURES if attribute pictures used , Dynamic Price Updater don't find the label with attribut prices
/*
Attribute Style for Radio Buttons/Checkbox" :
Image Styles:
0= Images Below Option Names #WORK#
1= Element, Image and Option Value #WORK#
2= Element, Image and Option Name Below #WORK#
3= Option Name Below Element and Image #WORK#
4= Element Below Image and Option Name #WORK#
5= Element Above Image and Option Name #WORK#
*/
web28
Hi,
I installed it and is not working on my zen cart
I get the following debug advice:
Debug messages
SP Onload: Type: always
updSP: Unable to clone price node!
updSP: Duplicating price, by jove!
Some idea of what can be wrong?
@ flasmar
Try to set:
var _secondPrice = false;
Post the link of your zen cart
web28
I have the link and am currently investigating
My Spidey-sense tells me the regex may be at fault
Dan
Hi everybody.
As web28 is willing to help aslo (thanks), have a look at my test site www.doct############o.es
www dot doctor gasmo (all together) dot es
Next time I will choose a name that is not abfuscated for my test site.
I have two products, first with base price 50 and 2 attributes (+100) and (+150)
second with base price 0 and 3 attributes each with total price.
Anyway Chorme seems to have a spider-idea... I wait your comments.
I installed the Chrome version, not 0.98 from web28
anybody no what causes this error to appear when selecting an attribute?
Your price: undefined24.95undefined (1)
thanks.
Hi
I do
Got a link? I'll check it out as I'm checking out flasmar's site... I think I can reuse some of the code I have written for his site
Cheers
Dan
hi chrome,
thanks for the reply. i fixed it i guess. i still don't know what caused it, but i uploaded DynamicPriceUpdater_0.98 and it's working now.
:cheers:
I have a problem...I have set up price on my store with 3 decimal places, decimal point "," thousands point "." because some of the products we offer have prices in this way.
Price on product info page when using dynamic price updater appears like this "1.960,00 €" instead of "196,00 €" but on shopping info page appears in correct way "196,00 €"
Product base price on attributes for Ø 5 mm. is 0,0140 € plus one time charge 45,00 €
for Ø 6 mm. is 0,0162 plus one time charge 45,00 €
Minimum quantity required for purchase this product is 14.000 units. so 0,0140€ x 14.000= 196,00 €
Hi
For this you might want to try web28's slightly upgraded version of my script if you haven't already
I really must get round to conversing properly with web28 to integrate the changes into the main Updater... As always time is the issue! (my campaign for a 32 hour day and 9 day week isn't going as well as I'd hoped)
If that doesn't work let me know as I know what the issue is and should be able to fix it with a couple of lines
Dan
I installed the DynamicPriceUpdater_multilangual files, and it appeared to be working. I am quite inexperienced with Zen-Cart so I might have done something wrong. I am using Zen Cart v1.3.8a/v1.3.8.
What happens is that I get a blank page when I click the "add this to my cart" on the product page. The product is added to the Shopping Cart, but to get there I have to click the link in the side box
Ok, I figured out how to get the Debug Error Logging working. Here is the php error I get, hope someone can help me out:
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/cart/includes/languages/english/extra_definitions/rl.vat_info.php:29) in /home/username/public_html/cart/includes/functions/functions_general.php on line 44
Hi
Unfortunately that looks like an error in another module; one with which I'm not familiar... I am, however, familiar with the error: PHP is telling you that some output (which may be as little as a single space) is being sent to the browser before the headers of script are finished (for instance setting a cookie)
If you are conversant with PHP you could check out the offending file to see if there are any spaces after the trailing ?> (or, preferrably, you could remove the ?> altogether)
If this doesn't work or you're not able to find the issue you could try opening your root index.php file and add ob_start() at the very beginning and ob_flush() at the very end... That's *not* a permanent solution as all it's doing is papering over the cracks really
If you have no luck let us know and maybe we can help get to the bottom of your issue
Dan
I need to know if this is on my shop only or a wrong in the module.
If I bought 100 of an item and use discount -$2 from origin price 100.
then I bought 1 with some change to attribute and it get still the discount price.
$98
Fixed. missunderstod the setup for the product price
I broke it. :dontgetit Well actually it says you broke it Chrome. :D
Well, I know what I did, and it's somewhat of a "which feature matters more" moment, unless you can help me fix it.
The product I've been testing out some stuff on is at: http://www.wholesale4realtors.com/ca...roducts_id=186
The price updater app was working perfectly until I made a mod to the product option name, extending it to 255 characters to be able to add a mouse-over tooltip and link on some options. I'm fairly sure this change in the option name is giving the updater code the hicup it has now.
Let me know if you can tell if that is the issue and/or can think of a way to work around it, because you're app is great and I'd rather not choose between the two. :wacko:
Fixed with the update for the most part (Thought I already had it). Now I have to figure out why the last option with the radio button isn't adding the $1, but I'm closer than I was...
Once again, great app, and thanks Web28 for assisting on the updates.