Patch (to be ported)
Project:
Ubercart Limited Time Offer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2010 at 07:56 UTC
Updated:
23 Nov 2012 at 17:40 UTC
here attached a patch to add lto expiration field to views 2.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_lto.patch | 8.62 KB | xlyz |
Comments
Comment #1
WebNewCastle commentedHi!
Thank you very much. This is very appreciated, especially as I was trying to find time to schedule this on my To Do list later this month. I appreciate the proactive effort.
I'm in the middle of some deadlines at the moment, but I'll work on getting this added as soon as possible.
Sincerely,
Matt
Comment #2
xlyz commentedyou're welcome. feel free to test and improve it :)
Comment #3
andygauk commentedI've patched the uc_lto module but I still can't see the expiration field in views. Can you help?
Comment #4
WebNewCastle commentedSorry for the delay from me if you were posting more to me than Xlyz. I'm still rather swamped with getting some other things finished, so I haven't been able to spend more than a few minutes with this so far - with the very much appreciated contribution from Xlyz. I am hoping to spend some time on this over the coming weekend if at all possible.
Comment #5
WebNewCastle commentedI started the process of adding this, but I need to give it some more time. I was having issues getting some of the field display settings to "take" - and I've experienced that with Views in other situations too. So, I'm going to try to set aside time soon to look through this some more, see if there are specific versions of Views which are problematic, etc.
Thanks again for all the work.
Comment #6
JGonzalez commentedsubscribing
Comment #7
BManuel commentedSubscribing
Comment #8
nastov commentedSubscribing
Comment #9
WebNewCastle commentedSorry for the delay here. Given the suggestion about making some changes to use CCK in another thread, I think that needs to be reviewed further before moving forward with this. Otherwise, it wouldn't be very efficient to press forward on something that would work differently if a CCK field is used instead.
I really don't like leaving all of this without Views integration, so despite a rather busy schedule lately I will work on trying to plan some time for all this.
Comment #10
BManuel commentedJust wanna say a big thank you for all the effort
Comment #11
xlyz commentedcck countdown formatter based on date module timestamp coming soon.
Comment #12
gakshay commentedOn the default node view expiration time is displayed (countdown resets to zero though).
But I'm using panels for my node view but not able to add expiration time to my pane. I know the print statement to display the expiration time but in case of panels I'm just confused. :(
Moreover, it would be great if the field appears inside the Ubercart tab (uc_panels module) and then it will be just a matter of drop and drag. I'm not sure but would try to achieve the same. Please help on that or the way to display Expiration time when rendered via panels (not default node view template)
Thanks
Comment #13
gakshay commentedCan you please confirm on the integration of uc_lto field availability on View's fields. In "node view" it works but want to have it working on "field view".
After applying the path its accessible in views (not in panels) but it serves the purpose.
Thanks
Comment #14
andrews501 commentedgakshay,
I was having the same problem when selecting LTO - Active Javascript Countdown in product, edit, the countdown reseted to zero.
If you look at Store Administration/Configuration/Limited Time Offer settings/, the section Active Timer Javascript Settings says that you need to move the file uc_lto.js to the directory Yourtheme/js/, so you will have Yourtheme/js/uc_lto.js, however, in the Active Timer Javascript Settings form you will need to type in : js/uc_lto.js (as it is after the initial installation of the module). By moving the file the LTO - Active Javascript Countdown works correctly.
Comment #15
WebNewCastle commentedHi,
Are you saying that even when you are not trying to customize the JS, it only worked after moving the file but not before? This is a bug if that is the case because the intent wasn't for there to be file moves required as part of default installation/usage. :-(
Comment #16
vidichannel commentedandrews501,
Thanks for the tip. I had moved the file as proposed. But until I added the path of my theme it showed up as 0.
My Settings:
Active Timer Javacript Settings
JS Style - Custom
mythemename/js/uc_lto.js --- This was the fix for me. Just "js/uc_lto.js" did not work.
Now it works to show the output.
Comment #17
bryanhidalgo commentedThank you #16 worked for me too
Comment #18
ricesteam commentedWhen it expires, the message "Expired" or whatever was set does not display, instead it displays how long the product has been expired ago.
Also, when the product expires, the ubercart "Add to Cart" button still works and still visible.
Comment #19
dgici commentedHello,
Could anybody tell me whether by using Views for uc_lto, I could display only the non-expired offers ?
Thanks
Comment #20
ferrum commenteduse filter current time less than expiry date for showing not expired offers only
Comment #21
ferrum commentedThank you for the patch which works fine but I'm missing this expiry date to be sortable. What to do in order to become a sortable expiry date column?
Comment #22
beschiak commentedHi
I was interesting how to do this module sortable in views (views-> style - table -> setting )
Pls somebody hint me ,what changes and where i must to do
I buying beer :)
Comment #23
ranx commentedSubscribing
Comment #24
kekko1 commentedHi ,
i have install this patch
but i have a error
Why this error?
help meee :)
thanks
Comment #25
WebNewCastle commentedI have not been able to fully look through the code that was contributed. But I also do not use the Skinr module at all.
Comment #26
bboybenny commentedsame problem here as #18. Please help!
Comment #27
diseño web palma de Mallorca commentedHi, I see that a lot of people had fixed that the counter goes to "O sec" in views.
I tried all possibilities on admin/store/settings/lto and moved the js file to drupal theme, and when only one of the products stils that can be added to the cart, works fine, but when I hace 2 products with countdown, so they can be added, then the counter appears like "0 sec"...
Im using .dev version of the module.
Anyone could get 2 o more products with countdown in the same view??
thank's
Comment #28
yusufsarac commentedI think the patch is not working. ı patched thi file and there is no field in views. can you help me with that? I'm trying to make a views that shows only expired products.
Comment #29
yusufsarac commentedCould anyone provide a patched version of this module for all of us who can not apply a patch please ?
Comment #30
Levdbas commentedTried to patch the file but it failed:
2 out of 2 hunks FAILED -- saving rejects to file uc_lto.patch.rej
can't find file to patch at input line 49
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
Would like to see a version patched with this in it.
Or can someone tell me exactly how they patched the file?
Thanx in advance!
Comment #31
WebNewCastle commentedIf there is anyone who has experience with Views integration that can help - please ping me or chime in. :-)
Comment #32
ferrum commentedmake expiry date sortable
give the views handler the attribute 'click sortable'. In uc_lto.views.inc change
to
and clear cache
Comment #33
gone404 commentedMake sure you clear the views cache in admin/build/views/tools.
I was unable to get the Lto views field to display without doing so.
Comment #34
dmendo11 commentedI recently installed this addion of views, but I do get the same code when using Acquia Prosper and Skinr. From what I was able to find out is that there is a missing file on the views theme folder that requires the item to display correctly.
Here is the information from the views theme:
I am not a coder, but maybe this will shed a light to someone who is more of an expert.
Views is a must for pages or blocks to show the Limited Time Offers been displayed. Anyone has a sample running?
Thanks,
David
Comment #35
jmajsai commentedHi!
Maybe someone has already tackled the following problem, and can help me.
I recently installed the last LTO dev version and applied the above patch. Then, I added the LTO field to a view. First, everything was working, countdown was visible in the view and also in the nodes. Then I modified the Time interval granularity from the default to 5, and from that time LTO is not working at all, and on the view page the following 2 error messages are repeated several times:
warning: include(./modules/uc_lto/views-view-field--expiration.tpl.php) [function.include]: failed to open stream: No such file or directory in /home/djskft/public_html/artikk/includes/theme.inc on line 1078.
warning: include() [function.include]: Failed opening './modules/uc_lto/views-view-field--expiration.tpl.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/djskft/public_html/artikk/includes/theme.inc on line 1078.
I have already tried some actions I'm capable of (reinstallation, version checking). Any idea?
Comment #36
jmajsai commentedCould someone make available the patched uc_lto.module file from a working environment? I'm quite a beginner, maybe I couldn't patch it right...
Thank you!
Comment #37
jmajsai commentedI tried to investigate further on by my own.
1. views-view-field--expiration.tpl.php is missing from the uc_lto folder.
2. themes.inc line 1078 (include "./$template_file"; // Include the template file) is in the function called theme_render_template.
3. The above function is to 'Render a system default template, which is essentially a PHP template.'
I guess there should be a file called views-view-field--expiration.tpl.php in the uc_lto folder, containing something like it would be a theme template...?
Comment #38
texas-webuser commentedI applied the patch, cleared the cache, cleared the views cache but still cannot find the uc_lto expiration field to add to my views. Can someone please help? I saw that there was a whole chunk of lines starting with "#". Do these need to be included? Maybe paste the code so I can copy and paste and not patch it. Thank you for your help!
Comment #39
sbydrupal commentedThx for the module. It is very useful and lightweight. Version 6 Views with fields is working. Great, yet, is there any possibility to
have version 7 to have Views integration ?
Thx