Active
Project:
Ubercart Limited Time Offer
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Sep 2011 at 06:23 UTC
Updated:
19 May 2012 at 17:50 UTC
Hi Matthew,
I wanted to know if you or any other user might need the button to change status upon the expiration of the product. This would be a great add-on and would benefit the UI of the module and more user friendly.
Right now if the user/buyer/visitor went to an expired product they just won't see the button. It would be great to show a message to the user instead of just disappearing, it can be replaced by a text/image that says Sold Out, Sale Expired, Sale Now Over, etc.
Comments
Comment #1
aquaphenixI was able to get this done by making my own uc_lto.js file and placing inside the theme folder of the site.
I added the following line to my own uc_lto.js file:
I also added the following to my own node-product.tpl.php file
This was also added to my template.php file
Be sure to change yourthemename_sold_out_text_function(&$content) to your actual theme name.
Given that its time of the essence to get my project done, I was able to do this temporarily. UC LTO is a good module, but needs for others to build upon it to make it better. The User Interface needs a lot of work and integration with Views is a must on the list.
Comment #2
haysuess commentedNicely done! This was very helpful thanks!