X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Show Products On Offer (https://forum.x-cart.com/showthread.php?t=57369)

JeanB 01-05-2011 02:25 AM

Show Products On Offer
 
Hi All, 8-O

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

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? 8-[

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

cflsystems 01-05-2011 03:19 AM

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

JeanB 01-11-2011 01:37 AM

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

:wink:

(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! :)

JeanB 01-11-2011 01:50 AM

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! :-"

:roll:

chamberinternet 01-12-2011 03:55 AM

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

JeanB 01-17-2011 12:23 AM

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! :)


All times are GMT -8. The time now is 12:05 AM.

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