| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Special Offers Module | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Special Offers Module
I have now completed a special offers part to show them on the home page. the code is as follows:
First create a specials.php file in xcart/customer this selects 6 items at random that are marked as discounted from the main/market price. Code:
Then add the following line into customer/home.php after the require featured proudcts bit. Code:
Then amend welcome.tpl to add the following code to where you want it to appear: Code:
Then amend skin1/customer/home_main.tpl to: Code:
Then and we are nearly there now !! create a special.tpl in skin1/customer/main as follows: Code:
You will see that I have added two extra fields into the languages, one to display if there are no special offers and one for the title to the main box. Enjoy. Funkydunk
__________________
ex x-cart guru |
|||||||
#2
|
|||||||||
|
|||||||||
Well done mate,
Your coming up with some great addons of late. Hats off to you
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
Necessity is the father of invention.
Just had a client who needed these bits so I put them together. Thanks for the feedback. There's more coming!
__________________
ex x-cart guru |
|||||||
#4
|
|||||||
|
|||||||
Hmmm...
I was thinking of doing something like this but I wanted it to be something like Bargain of the Day or Week.
I wanted to give everything a Bargain Price. The script would randomly pick an item for the time period. It would just need to check against a timestamp to see if it needed to generate a new bargain or run a cron job. I would also want it to show the Bargain Price on the product page. The one problem I see with yours is couldn't a customer simply continue to reload the page until it loaded the item they wanted to get the discount? |
|||||||
#5
|
|||||||||
|
|||||||||
It doesnt matter i suppose as all the items that will show up are chosen from the list of products that you have set as discounted.
This just puts a few on the front page to show them off
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#6
|
|||||||
|
|||||||
Shan,
Bang on. If you haven't selected a discount it wont pick it..simple as that. Now getting the system to do a discount automatically, now that is another thing, not sure how that would work.
__________________
ex x-cart guru |
|||||||
#7
|
|||||||||
|
|||||||||
Anyone created this as a side menu like the bestsellers has ?
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#8
|
|||||||
|
|||||||
Shan,
Yep - Am building a site at the moment with this in a lhs menu. Limited it to show 3 products though cos of space.
__________________
ex x-cart guru |
|||||||
#9
|
|||||||
|
|||||||
Quote:
How about one random discounted product or the option for more? |
|||||||
#10
|
|||||||
|
|||||||
I look forward to seeing the code
Haven't got time to amend this myself at the moment - clients come first - , but feel free to amend away and post your results.
__________________
ex x-cart guru |
|||||||
|
|||
X-Cart forums © 2001-2020
|