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)
-   -   Special Offers Module (https://forum.x-cart.com/showthread.php?t=1144)

enge919 05-30-2004 10:06 AM

No problem.......

If you want to add this to other pages just add the include, in the case of the about us page add the include to skin1/help/about.tpl where you want it to appear:

Code:

{include file="customer/main/specials.tpl" specials=$specials}

You also need to add the require to the appropiate .php script, in this case it would be xcart/customer/help.php. Just add the require below the last require in that script:

Code:

require "./specials.php";



Enjoy!

jeeya 05-30-2004 03:28 PM

great, I will set it up somewhere where it will show more products on about.tpl instead of 4, i will put about 12.

Thanks.

enge919 06-21-2004 11:13 PM

I have a client that wants this mod to show the newest products only in the last 60 days. Can anyone tell me what argument to use?

I suppose it would tie to the add_date timestamp in the xcart_products database, something to the effect of "AND < 60" where 60 is the number of days from the current day we want to show the newest products, I just need to know what the proper format would be for the unix timestamp and how to show only products "less than 60 day old".

funkydunk 06-22-2004 01:00 AM

unix time is in seconds

therefore 60 days is 60*60*24*24

dvanhoos 09-08-2004 11:50 AM

Duplicate Entries
 
So I get duplicate entries in the Specials section frequently, and always if I only have one item on special. Am using the RAND function so can understand when more than 4 products on special, but it always shows two off the same item when it's only one product. You can see it at http://hydrangeasplus.com and hit refresh a couple of times and you'll see duplicates. Not a real big deal, but still curious. Any ideas?

enge919 09-08-2004 08:20 PM

Here's one for anyone running this with 4.0.3.

Using this mod it does not display the price, It displays this instead: "enter your price".

I am working on finding the fix for this but if anyone can help it would be greatly appreciated and it sure would help others that use this in 4.0.x branch of xcart.

Likewise, if/when I figure out a fix I will post it here.

markwhoo 09-12-2004 09:15 AM

Quote:

Originally Posted by enge919
Here's one for anyone running this with 4.0.3.

Using this mod it does not display the price, It displays this instead: "enter your price".

I am working on finding the fix for this but if anyone can help it would be greatly appreciated and it sure would help others that use this in 4.0.x branch of xcart.

Likewise, if/when I figure out a fix I will post it here.


Please do, I am currently upgrading a store to 4.03 and was wondering what changes may be required to get this workable for the newer version.

Thanks to those that may be of help

24md 09-15-2004 06:42 AM

What a great mod, thanks a lot, have been using it for a little while and its working a treat. 8)

funkydunk 09-19-2004 12:06 AM

Quote:

Originally Posted by 24md
What a great mod, thanks a lot, have been using it for a little while and its working a treat. 8)


thanx :)

enge919 09-19-2004 01:30 AM

funkydunk,

Quote:

Here's one for anyone running this with 4.0.3.

Using this mod it does not display the price, It displays this instead: "enter your price".

Have any idea what to change in the script to get it to work properly with 4.0.3?

I have not had time with my schedule to check into it yet.


All times are GMT -8. The time now is 02:33 PM.

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