Forums / Contribution-Writing Guidelines / Zencart+Ajax made easy? solution discussion

Zencart+Ajax made easy? solution discussion

Locked

Started by yellow1912 on 2 Dec 2008, 5:01 AM · Views: 20,765

Results 21 to 32 of 32
This thread is locked. New replies are disabled.
8 Dec 2008, 10:06 PM
#21
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Zencart+Ajax made easy? solution discussion

okay i added the include and removed my dbconnect and now it doesnt work. below is the ajaxsearch.php code. can you see is anything else missing?

<?php require('includes/application_top.php'); /* mysql_connect('localhost', 'me', 'me'); old connection script mysql_select_db("me"); */ if(!isset($_REQUEST["search"])) exit; $search=mysql_real_escape_string(trim($_REQUEST["search"])); $result = $db->Execute("SELECT products_name, products_description.products_id, products.products_id, products_status FROM products_description, products WHERE products_description.products_id = products.products_id AND products_status=1 AND products_name LIKE '%$search%';"); if(mysql_num_rows($result)) { echo "<ul>"; while($r=mysql_fetch_assoc($result)) { $title = $r["products_name"]; echo "<li>$title</li>"; } echo "</ul>"; } ?>

thanks!

8 Dec 2008, 10:09 PM
#22
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

That is not the way you are supposed to iterate the result from db query. You can check the default search page or search the package for $db->Execute and you will see many examples of the correct way to use result returned.

Anyhow, if you need further assistance, please post in another thread so that we dont have to go off topic here.

Regards

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

8 Dec 2008, 10:14 PM
#23
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

thanks for the pointers. i will start another thread for this if i cant find what i am looking for in the files.

11 Dec 2008, 10:24 PM
#24
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

@all: Please excuse me for my lack of activity in the recent days, I have something came up which needed immediate attention. I will be back on this topic next week,

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Dec 2008, 11:49 PM
#25
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

Here is the first tutorial in the series as promised, please let me know if you find anything hard to understand:

Zencart + Ajax made easy (part 1)

(I use blog so that I can later edit the post as needed. Also, it's easier to organize)

Special thanks to Ells for helping me to review and correct errors.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

21 Dec 2008, 4:27 AM
#27
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

Ajax Checkout pre-alpha will be available within 2 weeks. Please PM to get access to test site and reserve a copy of the package.

Please note you are NOT allowed to re-distribute this alpha testing package.

A public release will be available later.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

19 May 2009, 1:38 PM
#28
mrchristoh avatar

mrchristoh

New Zenner

Join Date:
May 2009
Location:
from parts unknown
Posts:
74
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

Hi Yellow,

Any chance of getting a working sample?
I only ask as i have tried the tutorial on your blog = i failed

pretty sure that others would appreciate your hard work and insight.

thanks in advance

25 May 2009, 3:33 AM
#29
dermanomann avatar

dermanomann

New Zenner

Join Date:
Feb 2006
Location:
New Zealand
Posts:
146
Plugin Contributions:
1

Re: Zencart+Ajax made easy? solution discussion

There is also a completely different, alternative solution to this problem - however, not complete yet :/

ZenMagick implements basic Ajax support. Examples, including drag & drop can be found in the ZenMagick demo store demo.zenmagick.org

In contrast to yellows solution, in ZenMagick the Ajax requests only include data, not HTML.

Also, the next version of ZenMagick will include Ajax support for shipping methods and thus allowing an Ajax based shipping calculator :)

Cheers, mano

4 Jun 2009, 6:00 AM
#30
mrchristoh avatar

mrchristoh

New Zenner

Join Date:
May 2009
Location:
from parts unknown
Posts:
74
Plugin Contributions:
0

Re: Zencart+Ajax made easy? solution discussion

dude,

zenmagick email returns "CHEAP PILL SPAM" apparently you think that your emailing the author (Helga?) but you get added to a spam monkeys list.

shame on you.

please other avoid zenmagick........unless you need cheap pills

5 Jun 2009, 12:28 AM
#31
dermanomann avatar

dermanomann

New Zenner

Join Date:
Feb 2006
Location:
New Zealand
Posts:
146
Plugin Contributions:
1

Re: Zencart+Ajax made easy? solution discussion

Mrchristoh:

dude,

zenmagick email returns "CHEAP PILL SPAM" apparently you think that your emailing the author (Helga?) but you get added to a spam monkeys list.

shame on you.

please other avoid zenmagick........unless you need cheap pills

Look, I haven't really got a clue as to what your problem is, so if you have to blame people could you please explain why?
It also seems that you haven't really paid attention at all because I am the author of ZenMagick.
In any case this totally off topic, so let's move this to PM instead.
mano

14 Jun 2009, 10:31 PM
#32
dermanomann avatar

dermanomann

New Zenner

Join Date:
Feb 2006
Location:
New Zealand
Posts:
146
Plugin Contributions:
1

Re: Zencart+Ajax made easy? solution discussion

I'd just like to add that I resolved this issue with Mrchristoh via PM to everyone's satisfaction.

It appears that this has been some unlucky coincidence. We never received the initial email he was referring to. Subsequent emails (after our PM conversation) have proven that the email address he used does not trigger spam.

However, like many other people with publicly available email addresses it happens that my email address is used as sender id for spam. I regularly get bounced spam emails with my email as sender/return address. I am sure you'll agree that there isn't a lot to be done about with the state of affairs of current email technology.

Right, back to business and the topic this thread is all about: Ajax in zen-cart.

mano