Re: Dynamic Price Updater
Hey all
Firstly, sorry for being away for so long and not moving this contribution forward or appearing to supply any support
I've finally got some free time to continue development of the Updater if anyone is interested :smile:
To start, and on request, I've fixed the bug with the fantastic disappearing currency symbol (for $ and £ at least)... There is still some work to do on other languages (especially those that include non-UK/US characters) and feedback/examples of failure would be much appreciated
I also hope to have made a start on getting discounts working... The Updater can identify a normal sale at present (by normal see here) but that's about it... But, it's a start :smile:
XHTML compliance has been knocked up a notch (bam!) with the use of the CDATA declaration and escaping of certain characters
I know I still have to
- Address the Lightbox issue... I'd like to remove the need to replace that line
- Get other sales working
- Something i remembered just a moment ago but can't remember now
- Make up for months of being completely ignorant
My test shop is currently here
As always feedback and suggestions are very welcome
Oh that's right: the new file... Dynamic Price Updater - Experimental Edition(tm)... Nearly forgot that bit
I'd like to thank exoticcorpse for testing my fixes off the forum... Also I'd like to thank Matt (that yankee bloke :wink: ) for picking up the slack during my absence
Cheers
Dan
Re: Dynamic Price Updater
Quote:
Originally Posted by
Chrome
Hi Chrome,
would like to try the new version, but the link is not working.
Cheers
webchills
Re: Dynamic Price Updater
Hi
Yep sorry about that... You caught me between file renaming and posting the changes here... My fault for deciding to work shortly before my bed started calling me
I've now made the experimental Updater the only updater so please use the link in my signature... Sorry for the confusion and I'll put in place a system that helps distinguish between experimental and release versions
The news is that the Updater is currently up on ramps with bits scattered all around it... I've decided the original methods for tracking objects and rewriting page content isn't up to scratch so I've bitten the bullet an decided on a major overhaul
I'll release versions when they're ready for testing if anyone has a few spare minutes to play Guinea pig :smile:
Updated version should be heading out sometime late/shortly after the weekend (fingers crossed)
Cheers
Dan
1 Attachment(s)
Re: Dynamic Price Updater
Chrome,
Thanks for making probably the most useful add-on there is (IMO). The one complaint that I have, which seems to make the add-on difficult for most users, is the method used to create and maintain the sidebox. It's very limiting to be required to place the side box above an existing sidebox. So.... I decided to make a few modifications.
I combined your add-on with Kurio's Blank SideBox and modified the code to directly update the new sidebox. This allows the user to add, hide, place, ... the sidebox using the Admin/Tools/Layout Box Controller page. I've tested it out that best that I could and it seems to work as intended.
I'm attaching the code, all the original unnecessary code has been commented out and all additional code has been commented with the "// Clark "
Hopefully this will prove useful to all who use the Price Updater add-on
-Clark
Re: Dynamic Price Updater
Hi
Thanks Clark :smile:, I'll grab that later this evening and have a look at it
I will concede that the operation of the sidebox is clunky, but this was one of the drawbacks to my easy-install idea... Maybe if I can switch out some usage based on what's available I can make an easier to use mod
Cheers for your work!
Watch this space
Dan
Re: Dynamic Price Updater
Hi Chrome:
Great mod!
I will be using it on a client's website. Currently working a bit on other things. I've started working on an "extension" to your code that would read price tables. Will post when I have more material if is of interest.
Thanks.
Re: Dynamic Price Updater
I'm currently working on the One Time prices product attributes for this add-on. If anyone knows if it already can do it, let me know, so I don't reinvent the wheel.
;)
1 Attachment(s)
Re: Dynamic Price Updater
Ok, guys, just for the upgrade, I post here an update of the code. Still very Beta working on it... (attributes with both one-time prices and normal prices doesn't yet work).
For it to work, you have also to include:
Code:
foreach($quantityDiscounts as $key=>$quantityDiscount) {
//calculations for the js code
$js_quantity_discount[] = array(
'qty' =>trim( $quantityDiscount['show_qty'], "+" ),
'price' =>trim( $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)), "$" )
);
}
//output for the js code
echo '<div id="js_qty_discount">';
foreach ($js_quantity_discount as $k=>$current_discount){
echo $current_discount['qty'] . "," . $current_discount['price'] . ";";
}
echo '</div>';
on the tpl_modules_products_quantity_discounts.php file
Right now not much time to explain, so I will check later.
Again, thanks you all and Chrome for the base mod...
will be working on this...
Re: Dynamic Price Updater
Thank you for one awesome mod!
I was just wondering, I have my attributes on a tab....is there a way to get the "force" attribute function to work when on a tab...meaning if they click on add to cart and no attributes were selected it will give them an error message....If I remove the attributes from the tab this feature works fine....but it does not seem to work when the attributes are on the tab?!?!?!
Hope this makes sense!!!
Thanks again.....this is exactly what I needed!!!
Re: Dynamic Price Updater
wow I have been looking for a solution like this for a while, thanks very much
can the price scroll with the page so it is always visible?
I have a long list of product options and would love it if I could get the price to scroll down so it is always visible, I know how to do absolute positioning but I would know where to start programming, I see when I save a product page page it says
HTML Code:
<!--bof Add to Cart Box -->
<DIV id=cartAdd>Add to Cart: <INPUT maxLength=6 size=4 value=1
name=cart_quantity><BR><BR><INPUT type=hidden value=180
name=products_id><INPUT title=" Add to Cart " type=image alt="Add to Cart"
src="HOPC1 [HOPC1] - $281_00 OZM Systems, Powerful Custom Computers_files/button_in_cart.gif">
</DIV><!--eof Add to Cart Box-->
which is what I want to scroll, but where do I start
thanks for all of your efforts
:clap: