Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Oct 2009 at 23:49 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
deepeddy commentedI just made exactly this same patch to my local copy of uc_cart.module. this is a "me too" on making this rather minor change.
Comment #2
shi99 commentedNice suggestion that helped me. Thanks.
Comment #3
tr commentedTagging and moving to 7.x-3.x.
Comment #4
DeFr commentedPatch for 7.x-3.x attached.
Comment #5
longwaveWould it be even better to split all the message code out of uc_cart_complete_sale() and into one or more new theme functions?
Comment #6
longwaveCommitted.
Comment #7
longwaveI guess this could be backported without breaking compatibility.
Comment #8
DeFr commentedSure, patch for 6.x-2.x attached.
With regards to #5, I think it might make sense for D7 to use the fact that theme functions can now be preprocess to, and thus the whole building of the messages array, the filter_xss call and the final concatenation in a new preprocess function. Giving the array meaningfull keys instead of using automatic numeric key might help to. Then, the preprocess function adds both the keyed messages array and the simple concatenation to the variables, and then if you want to remove some specific part of the message, then you can just unset the corresponding key in the message array in your own preprocess function, rebuild the concatenation and be done with it. Would that make sense ?
Comment #9
longwaveCommitted to 6.x. Any further change requests for this function in D7 should be in a new issue.