| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Bestsellers with short descriptions... | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I am trying to modify my bestsellers to include the short description, I have added the $bestseller.descr but it does not show any descriptions.
My question: Where is the database query for the bestsellers? I want to add descr to the list so that it will display them when prompted. I have looked at bestsellers.php but dont see it there. Here is the code for the tpl as it stands right now: Code:
Thanks a bunch for the help guys! Herb webmaster@bunnyburybaby.com
__________________
X-Cart Version 4.1.8 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() This is your new /skin1/modules/Bestsellers/menu_bestseller.tpl
I've correct some errors like 'thumbnailbs' -> 'thumbnail' one excess {/if} Code:
and this is your LAST 20 ROWS of your new /modules/Bestsellers/bestsellers.php. You should find row with 'if ($threshold)' and replace it to end of file with Code:
Enjoy!
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Holub,
I made the changes you suggested but the module still does not show me the descriptions. Could I be doing something wrong? Here is the code for the tpl I am working with. I should have named the template in my last post, I apologize for that. This only needs to work with the bestsellers.tpl, I do not use the menu_bestseller.tpl bestsellers.tpl Code:
Here is the code for my bestsellers.php after the change you suggested: Code:
The descriptions are still not showing up. Not sure why. I have a short description on the product pages. Here is my /product_thumbnailbs.tpl for those interested: Code:
This is a 4 year old site with over 1000 products. The folks working on it before me liked to use spaces, capitals etc in the image names, urls and other places you should not. I had to put some replace commands in to correct past errors. I will moving the excess html to a css once I have the mod working. Any help you can give is much appreciated. Herb
__________________
X-Cart Version 4.1.8 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Any other ideas? All are welcome!
__________________
X-Cart Version 4.1.8 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Do you have any php/mysql errors in logs? I can't find right decision without additional info. Can you provide me website address where you try to use these modifications?
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() No errors in the logs, you can see it near the bottom of this page: http://dev.bunnyburybaby.com/home.php The first "More Best Selling Products: " section is hard coded right now, the one below it is the best sellers module as it stands right now. You can see the second set of products is missing the short description.
__________________
X-Cart Version 4.1.8 |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() Hm... It's very strange. I've created new files (bestsellers.php and bestsellers.tpl and inserted code I've suggested - and it's work. There is one rationale I can suppose: in version 4.1.8 this method does not work (I've tested on 4.1.9). I'll try to test it on 4.1.8.
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() Yes, all OK. I'ts my fault, the function func_search_products was changed in 4.1.9.
There is less quality decision than previous. Please rollback changes and choose standart bestsellers.php file (without modifications). Then you should insert this code into bestsellers.php Code:
before lines (almost the end of file) Code:
I've tested this on 4.1.8 and found this work properly. Feel free to ask any questions.
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#9
|
|||||||
|
|||||||
![]() All first early worked great in my 4.1.9 project...funny how your always at the end of fixing what I'm looking for Anthony. Thanks for always contributing.
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
#10
|
|||||||
|
|||||||
![]() How would I get the manufacturers name to display before the product name in the bestsellers.tpl?
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
|
|||
X-Cart forums © 2001-2020
|