X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Newest Products (https://forum.x-cart.com/showthread.php?t=1084)

tom437 03-13-2010 08:35 AM

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

ShishaPipeUK 03-14-2010 06:51 AM

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

Pyro 03-30-2010 04:21 PM

Re: Newest Products
 
Quote:

Originally Posted by ShishaPipeUK
The newproducts works fine with 4.3.1

Attached are the 2 files i use on 4.3.1 which are

My X-Cart home directory - newproducts.php
My X-Cart home/skin1/customer/main/newproducts.tpl

I have also included my X-Cart home/skin1/customer/home_main.tpl file as this is a new shop and not been changed yet.


And you can view this at http://www.nightscene.co.uk/shop/newproducts.php



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

sparker2 04-02-2010 08:52 PM

Re: Newest Products
 
Has this error been resolved because I am getting this also? The page not found. Thanks in advance for your help.

Pyro 04-02-2010 08:59 PM

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.

sparker2 04-02-2010 09:05 PM

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.

sparker2 04-04-2010 08:21 AM

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.

amy2203 04-11-2010 10:02 AM

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,

jadefrolics 04-13-2010 02:13 PM

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!

presson83 05-11-2010 11:48 AM

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 04:00 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.