Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Special Offers Module

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 05-30-2004, 10:06 AM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default

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!
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
  #22  
Old 05-30-2004, 03:28 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

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.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #23  
Old 06-21-2004, 11:13 PM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default

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".
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
  #24  
Old 06-22-2004, 01:00 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

unix time is in seconds

therefore 60 days is 60*60*24*24
__________________
ex x-cart guru
Reply With Quote
  #25  
Old 09-08-2004, 11:50 AM
 
dvanhoos dvanhoos is offline
 

Member
  
Join Date: Jun 2004
Posts: 13
 

Default 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?
__________________
xcart v4.4.1
Reply With Quote
  #26  
Old 09-08-2004, 08:20 PM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default

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.
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
  #27  
Old 09-12-2004, 09:15 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

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
__________________
vs 4.1.12
Reply With Quote
  #28  
Old 09-15-2004, 06:42 AM
 
24md 24md is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: United Kingdom
Posts: 44
 

Default

What a great mod, thanks a lot, have been using it for a little while and its working a treat.
__________________
www.anime-on-line.com
4.5.2 (live)
php 5.3.17
mysql 5.5.27
Reply With Quote
  #29  
Old 09-19-2004, 12:06 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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.

thanx
__________________
ex x-cart guru
Reply With Quote
  #30  
Old 09-19-2004, 01:30 AM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default

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.
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:32 PM.

   

 
X-Cart forums © 2001-2020