Re: Newest Products
After, adding those code, whats next? how do we set it up? where does it appear on the admin part? how do I let it appear on the store front/
Please |
Re: Newest Products
It does not appear in the admin section, it appears on your shopping cart home page and you can either enter this in your Speed bar in admin section. Just put in Link Title = New Products and url = newproducts.php.
You can also edit your skin1/customer home.tpl |
Re: Newest Products
Quote:
I just want to clarify, if I only want to make a new page like yours, I just have to include those two files? I do not need it to show up on the home page at all, so do I not need the newproducts.tpl? I am using 4.3.1, but I get "Page not found! The requested page does not exist or you are not allowed to access it!". I have put the "newproducts.tpl" into the /skin1/customer/main and I have put the "newproducts.php" into the root directory. When i visit the php file, I get the error listed above. Thanks |
Re: Newest Products
Has this error been resolved because I am getting this also? The page not found. Thanks in advance for your help.
|
Re: Newest Products
I have not found the answer yet. I have tried a few things, but nothing seems to work. Let me know if you make any head way and I will do the same.
|
Re: Newest Products
I got the page to load by adding the two lines of code to the home_main.tpl page but when the page loads it does not display anything. just : in a big menu box with a folder icon in left hand corner.
|
Re: Newest Products
Just to give you guys an update for version 4.3.1, maybe this can help someone else. I got the label to show for the What's new category by changing the language code from US to en because 4.3.1 does not use code US like the previous versions. I am still not able to get the description to show so I just included it in the title code for now. I have not added any new products in a while but I set the (How many days for the products (0 to disable) setting to 1000 and I can get products to show up which is good. Now is there a way to add a (if) statement some place so that if there are no new products for that time frame, it will display a message like (No new products have been added at this time). I notice that if there are no new products it will display the featured products list from my home page which is not good for me.
|
Re: Newest Products
I've had this running for ages and it's been fine, but I've added a field to the database, and the products.tpl template displays different images based on this field.
The search function this uses doesn't search for this field though so it's displaying the wrong images. I've tried looking in func.product.php but I can't seem to find the right place to add my field to the select query. Can anyone help? tia, |
Re: Newest Products
Hi all, I just tried to add this mod to my 4.3 shop, and it looks perfect. However, all the product thumbnails take me to the home page when I click them, not the product page. It doesn't even attempt to go to the product page. I don't know smarty or php, and I kinda put it all together based on a variety of posts in this thread, so I must have done part of it wrong.
Can anyone tell me where I can find code that tells the product thumbnail to link to the product detail page rather than the home page? Thanks! |
Re: Newest Products
For anyone having trouble getting the normal price to show in 4.2.3 (not the list price) I had to update the query in newproducts.php (from the original post) like so:
Code:
SELECT xcart_products.*, xcart_pricing.*, xcart_quick_flags.* from xcart_products LEFT JOIN xcart_quick_flags ON xcart_quick_flags.productid = xcart_products.productid LEFT JOIN xcart_pricing ON xcart_pricing.productid = xcart_products.productid WHERE forsale = 'Y' ORDER BY add_date DESC LIMIT 12 So that problem is taken care of. My final problem is getting the buy now button to work. Has anyone gotten the buy_now button functioning with this mod? |
All times are GMT -8. The time now is 09:35 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.