| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Simple Random Quotes | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Simple Random Quotes
This is a simple Random Quotes script to be displayed on customers view. I use it for Cigar Quotes, you can use it for anything you want.
Step 1: Create a file in /customer directory called rand_quotes.php with the following code in it: Code:
Note: Notice that you can create as many quotes as you like (I have about 30 on my Cigar Site), just add another line with: Quote:
Step 2: Create a file under /skin1/customer named rand_quotes.tpl with the following lines in it: Code:
Step 3: In your /skin1/customer/home.tpl file add these lines above { include file="customer/categories.tpl" } or practically anywhere you want them to display: Code:
Enjoy !!!
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#2
|
|||||||||
|
|||||||||
I'm assuming this is for 3.5.3.
This is a nice mod, and anyone can see the potential for using it to display all types of random messages. Random coupon code display, Random announcement of specials etc. Can we use Smarty tags in the php file for the display of the random text? |
|||||||||
#3
|
|||||||||
|
|||||||||
Quote:
Yes for 3.5.3, but Im sure it's simple enough to work on quit any version. Thats the main idea, I wanted to keep it simple but maybe further on I while make it more powerful, as this is like a Static Quote (you have to FTP the file when you make changes), but I have been thinking in making it dynamic on the admin side in order to change things whenever needed and as fast as possible. Regarding Smarty, havent tried it, but as I have been learning Smarty, I can see that anything is possible, it is a good templating engine for sure, try it out and let us know.
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#4
|
|||||||
|
|||||||
When i use it there is a icon and a orange row. Can this be transparant and only the text? Can i use this instead of the welcome?
|
|||||||
#5
|
|||||||||
|
|||||||||
Quote:
The icon come out because the template system is calling a dingabat as an include file. Yes it can be transparent, just call it direct (not mentioning the added element as a Menu type). As it says here:Step 3: Quote:
You can add it instead of the welcome message of course. That way you can create a random welcome.
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#6
|
|||||||
|
|||||||
Why don't we just try Marquee, it's the easy way to show tex, just make new tpl and put the lines.
<marquee scrolldelay="140"><blink><font size="1" face="Arial">put your lines, quotes here</font></blink></marquee>.
__________________
X-Cart Version 4.1.8 Hosted on Linux |
|||||||
#7
|
|||||||||
|
|||||||||
RP,
Please tell me you are kidding. Blink and Marquee look terrible. Those were good effects like 4 years ago, but no one uses them now. I'm not even sure they are compatible in every browser. |
|||||||||
#8
|
|||||||
|
|||||||
I just saw many people using it, although I don't see much difference it php quotes and marquee, only webdesigner knows how they are being displayed, not many visitors does.
__________________
X-Cart Version 4.1.8 Hosted on Linux |
|||||||
#9
|
|||||||||
|
|||||||||
It's random quotes. Marquee you have to sit there for ten minutes and wait for all of the information to scroll by. The average user doesn't have that long of an attention span when surfing.
Random quotes gives the impression of dynamic content. The content changes every page load. So the quotes are usually different and unique. The customer either sees A, B or C. But not all 3 unless they keep refreshing the page. It's a pretty big difference. |
|||||||||
#10
|
|||||||
|
|||||||
it's working nice welcome for the customer.
How can i change the color and size? |
|||||||
|
|||
X-Cart forums © 2001-2020
|