"whats new" ConLib
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
"whats new" ConLib
Could someone create a "Whats New" ConLib that could pull the last 4 or so items added to the database and display them in a sidebar vertical or the main page horizontal?
Not a bad idea. Want me to see if I can make one?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
<cracks> brace yourself....
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Done. Tested. It rocks.
Shoot me a PM with your email and I'll send you the files.
The control has the same parameters as PopularProductsDialog, so you can specify the number of items, number of columns, vertical or horizontal orientation etc. it uses the product CreatedDate field value as the criteria for inclusion.
Someone smack me the next time I volunteer to write in C-Sharp
Shoot me a PM with your email and I'll send you the files.
The control has the same parameters as PopularProductsDialog, so you can specify the number of items, number of columns, vertical or horizontal orientation etc. it uses the product CreatedDate field value as the criteria for inclusion.
Someone smack me the next time I volunteer to write in C-Sharp
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
I've got an updated version of the Whats New user control. It properly excludes any hidden, private or otherwise disabled products from the display.
I've also uploaded it to my site so anyone can download it. Feel free to buy some fishing and hunting times while you're there, I won't stop you
http://www.solunar.com/newestproductsdialog.zip
I've also uploaded it to my site so anyone can download it. Feel free to buy some fishing and hunting times while you're there, I won't stop you
http://www.solunar.com/newestproductsdialog.zip
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Road Rider
- Commander (CMDR)
- Posts: 144
- Joined: Sat Jan 26, 2008 12:43 pm
- Contact:
Just unzip the files into your ~\ConLib\Custom folder.
You reference it like any other user control. Edit a Sidebar or Content Scriptlet and add the [[ConLib:Custom\NewestProductsDialog]] line.
You can look at other scriptlets and see how user controls are referenced to get an idea of how it's done.
You reference it like any other user control. Edit a Sidebar or Content Scriptlet and add the [[ConLib:Custom\NewestProductsDialog]] line.
You can look at other scriptlets and see how user controls are referenced to get an idea of how it's done.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Road Rider
- Commander (CMDR)
- Posts: 144
- Joined: Sat Jan 26, 2008 12:43 pm
- Contact:
- Road Rider
- Commander (CMDR)
- Posts: 144
- Joined: Sat Jan 26, 2008 12:43 pm
- Contact:
In the cell? You mean within the sidebar itself?
My layout skills are worse than my poker skills. I *think* you would have to modify the table in the layout scriptlet you are using so that the cell alignment is set to "centered".
I had to get another very kind forum member to help me change my page layouts so it would work correctly. I believe what we did though was change the style.css file so the body of the page always took up 100%. That automatically squeezed the sidebars into their minimum width. It worked perfectly, except for a few Able sidebars now squeeze too much and wrap badly.
Still haven't figured that one out - I so need to buy a book on this stuff
My layout skills are worse than my poker skills. I *think* you would have to modify the table in the layout scriptlet you are using so that the cell alignment is set to "centered".
I had to get another very kind forum member to help me change my page layouts so it would work correctly. I believe what we did though was change the style.css file so the body of the page always took up 100%. That automatically squeezed the sidebars into their minimum width. It worked perfectly, except for a few Able sidebars now squeeze too much and wrap badly.
Still haven't figured that one out - I so need to buy a book on this stuff
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Road Rider
- Commander (CMDR)
- Posts: 144
- Joined: Sat Jan 26, 2008 12:43 pm
- Contact:
Shouldn't be - the query uses the CreatedDate, not the LastModifiedDate.
What did you change when you edited the product?
I just tested an edit to a product and it correctly updated only the modified date, not the created date.
What did you change when you edited the product?
I just tested an edit to a product and it correctly updated only the modified date, not the created date.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Road Rider
- Commander (CMDR)
- Posts: 144
- Joined: Sat Jan 26, 2008 12:43 pm
- Contact:
The control is designed to exclude products that cannot be purchased. Enable some products and see what it does.
You do realize you can turn all products on or off from purchase with one switch in the store configuration screen? Enable Catalog Mode, bottom right of the screen.
I didn't really account for a store where all products are disabled from purchase when I made the control.
You do realize you can turn all products on or off from purchase with one switch in the store configuration screen? Enable Catalog Mode, bottom right of the screen.
I didn't really account for a store where all products are disabled from purchase when I made the control.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: "whats new" ConLib
lolstone76567 wrote:hi everyone..
thanks for sharing your opinion and suggestion in this site..
thanks a lot and have a nice day..
how to treat depression[/u]
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: "whats new" ConLib
When I need to fight depression I just grab my shotgun and IP trace some spammers