| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Use Javascript and CSS to hid / flip visibilty of elements | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
sstill,
CopperB is probably having problems because the instructions aren't terribly clear. Thank you for explaining "why" it works and all, but you're not clear for the folks who don't "already know" on how to implement it. For instance... you said... Quote:
Well... what does that mean....exactly? what is a javascript page? or somewhere on the page mean? Please post crystal clear instructions that illustrate what people are supposed to do. Quote:
Ok...now what? Replace it? add it above? add it below? amend to it? What are the people who don't know this stuff supposed to do when they get to line 188? Thanks for the mod...it's a great one. But to avoid many many replies and confusion and people tarsnishing your work with questions....you gotta be super duper clear when instructing people who to implement them. step by step. don't let people think on their own. *smile* - Shannon
__________________
- www.TheShotList.com X-Cart version 4.0.13 PHP 4.3.10 MySQL 4.0.23 Web server Apache Operation system Linux Perl 5.008004 XML parser (expat) 1.95.6 |
|||||||
#12
|
|||||||
|
|||||||
Here we go...
First of all I would like to say Thanks for this is a great little mod and Yes I agree it would have been much easier from the start to just say replace your giftcert.tpl with the code below. The code above was incomplete missing the javascript tags which most newbies would never even know and would be pulling their hair out not knowing why its not working, in addition I fixed a few out of place things to give it a cleaner look. Code below tested and works in 4.0.13
replace the entire contents of giftcert.tpl found in directory: /skin1/modules/Gift_Certificates/giftcert.tpl with the code below, tested and works in 4.0.13: Quote:
There is one annoying little glitch I did find which is also in the original giftcert.tpl template and that is in the To: email field there is a space that you have to delete out to enter your email, for the life of me I could'nt figure out how to get rid of the space, anyone? |
|||||||
#13
|
|||||||
|
|||||||
IndieDepot,
Thanks for the comments, your right, I could go into more detail, but then I have to assume a certain level of knowledge. If there is a questions such as you asked Quote:
That is what these forums are for, asking questions, getting directions. My mod is written for people who understand on a basic level the workings of Javascript, if you don't understand Javascript I would not attempt this mod. Unfortunatly because all carts differ in some ways I can't just flop out mod that is universal (or I would be charging for it.) Mostly the mods I post are things that I have done and posted in the hopes that someone can adapt it and apply it to their cart. No guarentees though, if you don't understand what something is ask or Google on it, if the directions are unclear ask. Simple as that. I hope I don't need to dumb things way down or put up disclaimers all over the place to keep people from shooting themselves in the foot. WARNING!! WARNING!! WARING!! This mod could distroy your cart, cost you millions of dollars in down time, bring about global warming, use all your mouse fluid, break the tip of our pencil, lower your chances at winning the lottery, etc.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#14
|
|||||||
|
|||||||
sstillwell,
I didn't mean to ruffle your feathers dude. All I did was make an observation on how you communicated as opposed to 95% of the other great mods posted on this wonderful website, and then I simply commented on it explaining why you had troubles with people right off the bat...and how you could avoid them in the future. Had I not said anything, then snorocket probably would have never came with his fix, and your great mod will have gone unused by many, MANY people when it didn't have to. I was always told "Don't Assume Anyting"...especially the level of compentence of others....espcially on a website where beginners come to learn. This is not a geeked-out hackers site...i don't think. *smile* Either way, I didn't mean to bend you outta shape about it. snorocket, Thanks for making a 'Universal' and 'Free' fix to the great mod posted by sstillwell. - Shannon
__________________
- www.TheShotList.com X-Cart version 4.0.13 PHP 4.3.10 MySQL 4.0.23 Web server Apache Operation system Linux Perl 5.008004 XML parser (expat) 1.95.6 |
|||||||
#15
|
|||||||
|
|||||||
IndieDepot,
No offense taken, I was just having a little fun at your expense. Seriously though, my mod was written in response to someone liking what I had done in a few places on my site. It is more of a concept that can be used in several different places than a specific mod. "Don't assume anything" is a nice cliche but you have to assume a level of knewledge. For example if I say 'ok edit the home.tpl file'. Do I not assume that they know how to edit a text file? Actually on these forums we have a wide range of knowledge from people who have no idea how to edit HTML to those that are coding PHP. So yes, there are geeks among us. In closing, I do appreciate all comments good/bad, they help me improve and that is what I am interested in.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#16
|
|||||||||
|
|||||||||
So, where the register.tpl code and java should be add?
__________________
"The point is, to make so much money, that money isn't the point anymore." Pro Version 4.0.19 Gold Version 4.1.3 Linux |
|||||||||
#17
|
|||||||
|
|||||||
Hide/Flip Shipping Fields?
Has anyone been able to succesfully hide/flip the shipping fields in register.tpl?
yea yea yea I know sstillwell posted the code to do this and it works perfectly but the formatting is the most horrendous thing I've ever come across. I've poked around the code for hours in an effort to fix the formatting with no progress, let us know if you have managed to hide/flip the shipping fields while retaining the same formatting as the orginal code, Thank You. |
|||||||
#18
|
|||||||
|
|||||||
Re: Hide/Flip Shipping Fields?
Quote:
Try This: Code:
I would just like to figure out how to keep the Yes checked after the customer is registered with a different shipping address. So far it just defaults to No, confuses the customer if he wants to ship something to the billing address at a later time
__________________
Core version: 5.3.2.7 PHP: 5.6.29 MySQL server: 5.5.5-10.0.27-MariaDB-cll-lve (InnoDB engine support enabled) Web server: Apache Operating system: Linux XML parser: found GDLib: found (0) Translation driver: Database Curl version: 7.29.0 |
|||||||
#19
|
|||||||
|
|||||||
Quote:
Just a thought, but you could have smarty do a test on the value of the address fields. If it's the same then leave it as "no" if it is different then make it "yes". Code:
You'll also need to add that to the css that hides that block of markup. Code:
I have not implemented this so it's just a guess.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#20
|
|||||||
|
|||||||
i keep getting an error in the javascript console in firefox that says "flipdiv is not defined" and nothing happens when i click yes or no
|
|||||||
|
|||
X-Cart forums © 2001-2020
|