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

Show Products On Offer

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-05-2011, 02:25 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Show Products On Offer

Hi All,

Been thinking about this for a while, but just never been able to get my head around what I want to do!

I just want to be able to have a page that shows all products that are on special offer.

I want to display all products that have a "market price" - But have no idea how I would get that?

I don't mind where the page is - At the moment, I'm just using the standard "offers.php" page from the "X-Cart Special Offers" module.

Any help would be great!

Jean
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #2  
Old 01-05-2011, 03:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Show Products On Offer

You can create a search page where market price > 0. If default search can't do it it's not hard to custom code one
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 01-11-2011, 01:37 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Show Products On Offer

Thanks, Steve! - I looked a little further into it and I've managed to get a list of products with list_price > 0



(I'm now not sure that this is the route that I'm going to go down, but for the purpose of getting this to work, for now, I'll go with it - I can always adjust the query afterwards!)




Currently, I've used this:

http://forum.x-cart.com/showthread.php?t=1144

And edited it to suit what I want.



This now shows my list of products, with a list_price > 0 on the welcome.tpl template!

However, I don't want it on the main page, I want it on "offers.php" in the xcart/modules/special_offers - Which is linked to from the main page.

But I can't get it to display?

I've tried adding both of these (separately!) in to offers.php, but it doesn't show:

require $xcart_dir."/specials.php";
require "./specials.php";

In webmaster mode, it doesn't pick up $specials - So it's definitely a php thing, not a template thing?


I'm piecing together bits from my limited knowledge - But I'm probably doing something daft?

Thanks for any help!
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #4  
Old 01-11-2011, 01:50 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Show Products On Offer

*sniggers*

I think I'm using the wrong offers.php !?

There's another, not in the "modules", but in the root xcart directory?


.. mind you, I tried it there, too - and it still doesn't work!

__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #5  
Old 01-12-2011, 03:55 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Show Products On Offer

What we did was instead of using special offers module, we created a normal product category called "Specials" (or whatever) and used this third-party module:

http://www.websitecm.com/x-cart-mods/multiple-product-listing-templates-for-xcart.html

It allows you to assign a different style of template to each category/subcategory.

So we modified the existing product listing template to display only particular data (such as the market price) and assigned it to that category only...

Useful mod - I think XC should include this facility is future versions

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #6  
Old 01-17-2011, 12:23 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Show Products On Offer

It's an option, definitely - However, I've already had X-Cart modify the way that X-Cart handles free products (it now puts the free items in the cart automatically, instead of having to go back and add them manually!)

If it wasn't for this, I'd definitely look in to that way of doing it.

Thanks!
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:09 PM.

   

 
X-Cart forums © 2001-2020