You are here:  » Price Tapestry integration in PHPNuke 7.8

Support Forum



Price Tapestry integration in PHPNuke 7.8

Submitted by MikeyC on Sat, 2006-08-26 09:40 in

Anybody know how i can integrate the pricetapestry script into PHPNuke?
A pricetapestry module for PHPNuke would be even better.
I am running PHPNuke 7.8 with the Multishop Module.

Submitted by support on Sat, 2006-08-26 10:55

Hi Mikey,

I don't have any experience with PHPNuke i'm afraid. Probably in terms of integration it would be more a case of using Price Tapestry's back-end (the database and admin section) and then creating a module to read the database. I'll take a look at the script and see what's involved.

Cheers,
David.

Submitted by MikeyC on Sun, 2006-08-27 09:08

Hi David,

Guess i'll have to look deeper into PHPNuke how to fix that.
Or is it possible to feed the data into OSCommerce? From OSCommerce i can than feed it into the PHPNuke multishop module.(www.php-multishop.com)

Submitted by krispy1812 on Fri, 2006-09-15 18:20

I wouldn't recommend integrating with PHPNuke as it is a very unstable CMS and constantly needs patching and updating. Nothing more than you would expect from a free content management system.

Submitted by MikeyC on Sat, 2006-09-16 08:03

So, in other words you wouldn't recommend any free open source as they constantly need patching and updating?
What would you suggest?

Submitted by MikeyC on Thu, 2006-09-21 07:02

Got it ! I managed to put the front end of price tapestry in PHPNuke.
Now for the admin part ...

Submitted by THoTH on Tue, 2006-11-07 14:37

MikeyC can you share your wisdom there ? THis is something I will be working on.

Submitted by MikeyC on Wed, 2006-11-15 20:31

THoTH,

I used the basic module code for PHPNuke and inserted the PT code into it.
Repeat this for all the PT files in the main folder.
Don't forget to adjust paths for the link ref. and the paths for included/required files in your PT Files.

Install the original PT script in a subfolder, and use this one as you would regularly. This will give you some backup. Be sure to upload the sql file into the nuke database and set the config files to the nuke database. The PT module will read the feeds from the PT script in the subfolder and show them in PHPNuke.

The reason i installed PT in a subfolder is because i can't get to the admin part of the PT Module thru PHPNuke yet and the install thru PHPNuke with the PT Module didn't go smooth.
So, i still got some work to do.

Submitted by THoTH on Thu, 2007-01-04 20:50

Mikey

Thanks so much for the information, I'll be starting this in the next week or so. I think I may be able to get the admin functions working from Nuke, bit of experience with doing this for other bits of code.

Have you an email address or some other way of getting in touch? You can contact me via the feedback form on Beyond The Cosmos if you would, as I'd like to swap some notes on this.

Thanks again bud

Submitted by MikeyC on Fri, 2007-06-08 08:26

Question concerning form in feeds_register_step1.php

I started porting the backend of pricetapestry into a phpnuke module, but i seem to have gotten stuck on what could be a tiny little problem. Front end by the way is already ported and is working fine.

i had put all the files from the price tapestry backend in the phpnuke admin enviroment and I now can get to the admin thru phpnuke, but when i get to the page feeds_register.step1.php which i call thru a function as i am using phpnuke and click on the button that should take me to feeds_register_step2.php, it takes me back to the phpnuke admin.

Obvious something isn’t right.

This is the code url I had put in the form on line 37 in the file feed_register_step1.php:

action='admin.php?op=FeedsRegisterStep2&'>";

Strangly, when I copy and paste the url into my browser, it does take me to the needed page ,so it does work.

When I try to go to to that page by clicking on the button in feeds_register_step1.php, I get the following url in my browser:

http://www.mydomain.net/admin.php?filename=tt_villavino.xml&useFormat=formatDetected&formatDetected=xml%7CPRODUCTS%2FPRODUCT%2F&formatSelected=

Somehow, I am missing the ?op= part and I need to get rid of the question mark in front of the filename=tt_villavino, this should be a &

The url should be :

http://www.mydomain.net/admin.php?op=FeedsRegisterStep2&filename=tt_villavino.xml&useFormat=formatDetected&formatDetected=xml%7CPRODUCTS%2FPRODUCT%2F&formatSelected=

Any help on this would be appreciated.

Mikey

Submitted by support on Fri, 2007-06-08 08:32

Hi Mikey,

I'm not familiar with phpNuke, but trying to see what you're doing it looks like the "op" parameter needs to be a hidden field in the form on the code from feed_register_step1.php, for example:

<input type='hidden' name='op' value='FeedsRegisterStep2' />

The submission URL should then be as your example, and I guess phpNuke picks up the "op" parameter and decides what to do...

Hope this helps,
Cheers,
David.

Submitted by MikeyC on Fri, 2007-06-08 08:34

Wow, that was a fast reply.
I'll try that.

Submitted by MikeyC on Fri, 2007-06-08 08:40

Thanks David,

It worked, and thanks for the fast reply.

Mikey

Submitted by MikeyC on Sat, 2008-06-21 07:59

Hi David,

I never made it thru
developing the whole module yet, as i am no programmer and learning by trial
and error.

Now i am stuck at the point where i got to "FeedRegisterStep2"
where i select all the needed fields from the feed.
When i hit "Register and Full Import" i get to the admin area without ever
importing anything.

Below is the code for the feed_register_step2.php modded to fit phpnuke.
I think it is the same kinda problem i ran into with feed_register_step1.php

Mikey

{code saved}

Submitted by support on Sat, 2008-06-21 08:09

Hi Mikey,

I can see the op=FeedsImport in what looks like the correct place, so I would imagine that it is a problem in admin.php in terms of handling the "FeedsImport" op case - as it seems to be falling through and then returning to the main admin area which is what the original Price Tapestry script would do after import.

This could happen, for example, if the file cannot be found. I notice that in this script, you have modified the path to the file in the call to MagicParser_parse() as follows:

  MagicParser_parse("modules/$module_name/feeds/".$filename,"myRecordHandler",$format);

A similar modification would be needed in the FeedsImport handler; so if this is missing that would explain nothing being imported...

Cheers,
David.

Submitted by MikeyC on Sat, 2008-06-21 14:04

Would that be this part in the admin.php ?

MagicParser_parse("modules/$module_name/feeds/".$admin_importFeed["filename"],"admin__importRecordHandler",$admin_importFeed["format"]);

Submitted by support on Sat, 2008-06-21 15:49

Hi Mikey,

That's correct. I notice that it uses a variable within the pat - $module_name - so one
thing to check is that this variable is set correctly within this part of the code as it
is within the registration step 2 block...

Cheers,
David.

Submitted by MikeyC on Mon, 2008-07-14 01:23

Hi David,

Checked all the paths. Everything seems o.k., still won't work.
I'll check everything again. I am on holiday with my laptop in the jungle, so enough time on my hands to check it out.

Submitted by support on Mon, 2008-07-14 08:09

Hi Mikey,

I notice that your mods use relative paths, i.e. "modules/...." instead of absolute; so one thing to check is that this is definitely correct relative to where the script is actually running...

Cheers,
David.