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)

JWait 01-13-2006 05:06 AM

Is there any way to get this mod to mimic the Featured Products? I have products listed single file in the Sub-Categories pages, but in 3 columns in the Featured Products, and have Featured Products in just about every Category. I would like this mod to resemble a Category page (3 columns), and not a Sub-Category (1 column) page like it does now.... does this make sense?

SmartAss 03-03-2006 11:56 PM

Help!
 
I followed the instructions at the beginning of this thread to add new items section, and I get a new products box, with no products in it at all...Any ideas.

you can view my site at: www.smartassclothing.com/store/home.php

Your help is greatly appreciated. :?:

24md 03-14-2006 09:40 AM

Hi

I have this mod working well, only one query.

Recently we have added a wholesale membership level and it's now picking up products with the wholesale membership price.

How can I limit the mod to only displaying products from a certain membership level, or more importantly their normal price when not associated to any level.

I saw this question earlier in this thread but couldn't see an answer. Any help would be much appreciated.

Thanks

cliffo4 03-20-2006 01:33 PM

Re: New Products page
 
Quote:

Originally Posted by lapidarist
This is my first xcart add-on. I wrote some code to show New Products on its own page.

Firstly I thankyou for this full and useful code - with a few mods to it have combined in ito our seltup nicely.

However - there is a small bug in the php code

The line near bottom that reads:

Code:

$smarty->assign("navigation_script","newproducts.php?days=$days&sortby=$sortby&sort_direction=".$sortdirection);

should be:

Code:

$smarty->assign("navigation_script","newproducts.php?days=$days&sortby=$sortby&sortdirection=".$sortdirection);
That is take the underscore in sort_direction out

This manifests itself when you use the sort by links and then try and use the page navigation numbers as it fails to set the correct direction properly.

Hope that is of use to others too.

Vacman 03-25-2006 07:40 AM

Can somebody post the completely correct code and steps here for this mod? Trying to figure which page, etc is making my head hurt... :)

cliffo4 03-25-2006 07:53 AM

Quote:

Originally Posted by Vacman
Can somebody post the completely correct code and steps here for this mod? Trying to figure which page, etc is making my head hurt... :)


goto http://forum.x-cart.com/viewtopic.php?p=107474#107474 and then correct the line in the php as I described before

lapidarist 03-25-2006 08:26 AM

Quote:

Originally Posted by cliffo4
Quote:

Originally Posted by Vacman
Can somebody post the completely correct code and steps here for this mod? Trying to figure which page, etc is making my head hurt... :)


goto http://forum.x-cart.com/viewtopic.php?p=107474#107474 and then correct the line in the php as I described before


Thanks for the fix. I have been very busy trying to make a living lately, so I haven't had much time to keep up with the forum.

- james -

Vacman 03-25-2006 08:25 PM

OK did the above instruction, fixed the error, but now I get this:

Page not found!
The requested page does not exist or you are not allowed to access it!

What have i done wrong?

BTW: http://www.vacsew.com/xcart/newproducts.php

Lionel 03-25-2006 10:24 PM

go back and read the second post on page 8

cliffo4 03-26-2006 12:38 AM

Quote:

Originally Posted by Vacman
OK did the above instruction, fixed the error, but now I get this:

Page not found!
The requested page does not exist or you are not allowed to access it!

The error you show tends to happen because the page paramateres that have been set for the templates is not included in the home_main.tpl file So:

Quote:

1) You need to edit {xcart_dir}/skin1/customer/home_main.tpl

Add the following lines before the {else} at bottom of file:

Code:

{elseif $main eq "newproducts"}
{include file="customer/main/newproducts.tpl"}


So Adjust that and you should be ok.


All times are GMT -8. The time now is 10:01 AM.

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