| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
beating my head against a wall over and over again | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() can someone, anyone tell me how to embed a rotating javascript banner INSIDE the category description and everytime I go to update it deletes all my delicious hard earned coding.
Heeeelp! I can only pick myself and throw myself into this brick wall so many times before I turn to the bottle and drown my sorrows. ![]()
__________________
"Time flies like an arrow, fruit flies like a banana" - Groucho Marx xcart gold version4.4 |
|||||||
#2
|
|||||||
|
|||||||
![]() You can't add javascript to a database field like a category description. You'd need to hard-code it in the template and use {if} statements to only display it for that category.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#3
|
|||||||
|
|||||||
![]() blah!! hardcoding! excuse me while i weep tears of fear and frustration
__________________
"Time flies like an arrow, fruit flies like a banana" - Groucho Marx xcart gold version4.4 |
|||||||
#4
|
|||||||
|
|||||||
![]() would it be cheating if I ask perhaps ask what kind of if statement I need to do?
__________________
"Time flies like an arrow, fruit flies like a banana" - Groucho Marx xcart gold version4.4 |
|||||||
#5
|
|||||||
|
|||||||
![]() I'll bake you cookies
__________________
"Time flies like an arrow, fruit flies like a banana" - Groucho Marx xcart gold version4.4 |
|||||||
#6
|
|||||||
|
|||||||
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
![]() To allow javascript in category descriptions you should alter the "admin/category_modify.php" script and add:
PHP Code:
right after: PHP Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#8
|
|||||||
|
|||||||
![]() Wow, didn't know that! That makes it even easier!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Taking this one step further, I would put your javascript in a separate file so that you just add one line to the description. Then if you need to make changes to the banner you just do that in the js file without having to edit the description.
![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|