Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2009 at 22:34 UTC
Updated:
8 May 2009 at 16:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
edegro commentedComment #2
rszrama commentedYep, the cart block fix needs to happen... was a relic from when I changed that to a background-image instead of an img tag. As for the price theming, gonna have Lyle chime in on what making that a div will do.
Comment #3
Island Usurper commentedCould you explain where exactly the divs are rendered inside of a span? Is it the Views price field? I'd like to keep the theme as a div because it makes the product page look better.
Comment #4
rszrama commentedfwiw, just looked at the payments tab, and having the price in a div looks yucky. I think I'm leaning toward the span, because really we don't know that every time a price is themed it should be a block level element. In fact, I think it would be much less so than an inline element, which would probably have allowed us to keep most of the prices as themed. : P
I can really only think of that one place on the product view page where it's in its own div, but then we may as well just put it in that one place in a wrapper (maybe it already is?).
Comment #5
edegro commentedIt's when I create a block using Views2 with price as a field. More specifically I was getting:
Comment #6
Island Usurper commentedOK, I'm just working on the uc_price change at the moment. Remind me to go back to the other changes when I'm done if I don't do it on my own.
Since changing theme_uc_price() to use a span allows us to use the "themed" revision in more places, I've gone ahead and done that in this patch. I tended not to change the revision when uc_price() was used as a replacement value in t() because sites should have the freedom to put any kind of elements there that might not be appropriate in a sentence.
I've also reused theme_uc_product_price() in uc_product_view() to add the wrapping div around the price.
Comment #7
Island Usurper commentedOK, tested well, so all changes have been committed.
Thanks.