Hi All,
It's been a long time since I was active here. Just been busy doing non-osc stuff. But...
I'm back to working on osCommerce, and I'm modifying a number of contributions to work with my v2.3.1 install. Among other things, I've installed the Admin Theme Switcher and I've been changing image 'submit' buttons over to the new jquery buttons to take full advantage of the switcher.
I ran into a big snafu with Header Tags SEO, though.
Turns our the update function on one of the pages uses the 'x' value sent when clicking on the image... but there isn't an 'x' value sent with the jquery button. I'm sure most contributions do not utilize this technique, but it is something to look for if your jquery submit button doesn't work. In this case the code was
[indent]if (isset($_POST['x'])[/indent]
But it could just as easily have been
[indent]if (isset($HTTP_POST_VARS['x'])[/indent]
and of course, such a 'flag' could also use the y coordinate.
So if your converted button doesn't submit, I recommend doing a quick search for ['x'] or ['y'] (including the brackets,) to eliminate that possibility from the list of things that could be wrong.
If you find it is being used, you'll have to find something else to replace it with. You may be able to find a key/value that is being used as part of the if/elseif statement, like I did. Or you may need to add a hidden input with a value to test for.
I hope this information will save some of you from the hours of frustration I went through where none of the 'usual suspects' were causing my problem.
And if anyone else has an image-to-button 'ah-ha' moment, please feel free to add it here. It would be cool to have a single thread that answers our questions about converting over to the jquery button.
Cheers,
-Anita
- osCommerce Support Forum
- → Viewing Profile: Skittles
Latest News: (loading..)
About Me
Hi. I'm Anita Cross, founder of Online Shop Owners of America (OSOA). I've been helping businesses market their products online since 1995 and I established my own company, Call Of The Wild, in 1999.
My pet project, OSOA, is still in development, but I have a Facebook page where I share marketing articles, as well as my own tips and recommendations for osCommerce sites and product marketing in general. I hope you will join me here: Online Shop Owners on Facebook.
osCommerce powered sites I own and operate include:
OSOA Marketplace,
SimplySilkTm.com, and
Call Of The Wild Photo
My pet project, OSOA, is still in development, but I have a Facebook page where I share marketing articles, as well as my own tips and recommendations for osCommerce sites and product marketing in general. I hope you will join me here: Online Shop Owners on Facebook.
osCommerce powered sites I own and operate include:
OSOA Marketplace,
SimplySilkTm.com, and
Call Of The Wild Photo
Community Stats
- Group Community Member
- Active Posts 341 (0.16 per day)
- Most Active In General Add-Ons Support (276 posts)
- Profile Views 9,979
- Age 58 years old
- Birthday February 9, 1954
-
Real Name
Anita Cross
-
Gender
Female
-
Location
Oregon
-
Interests
Outdoor Photography
2
Neutral
Latest Visitors
Topics I've Started
tep_image_submit to tep_draw_button, potential pitfalls
17 June 2011, 22:15
- osCommerce Support Forum
- → Viewing Profile: Skittles
- Forum Rules






Find content
