X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Direct Product Enquiry Form (https://forum.x-cart.com/showthread.php?t=26896)

PhilJ 12-07-2006 03:23 PM

Re: Direct Product Enquiry Form
 
hmm, I've installed it on v4.0.x and v4.1.x stores without any problems.

PhilJ 12-10-2006 03:27 AM

Re: Direct Product Enquiry Form
 
Found the reason for the access denied issue...

In enquire.php

change

Code:

header("Location: product.php?productid=".$productid."&sendenqok=1");

to

Code:

header("Location: product.php?productid=".$XCMproductid."&sendenqok=1");

My mistake :(

dfawdon 12-10-2006 05:12 AM

Re: Direct Product Enquiry Form
 
Thanks Phil, that fixed it.
Also need to change the line for incorrect validation code used:

Code:

header("Location: product.php?productid=".$productid."&sendenqok=2");

to

Code:

header("Location: product.php?productid=".$XCMproductid."&sendenqok=2");

Quote:

Originally Posted by PhilJ
Found the reason for the access denied issue...

In enquire.php

change

Code:

header("Location: product.php?productid=".$productid."&sendenqok=1");

to

Code:

header("Location: product.php?productid=".$XCMproductid."&sendenqok=1");

My mistake :(


chamberinternet 12-16-2006 04:04 PM

Re: Direct Product Enquiry Form
 
Great Stuff ... That did the Trick ..

Thanks PhilJ & Dfawdon :)

daveb1 01-05-2007 04:53 PM

Re: Direct Product Enquiry Form
 
Hi All

I've just installed it, and whilst I got the errors mentioned above, they were easily fixed with the 2 lines of code mentioned above.

My trouble now is that it always says the code is wrong... I've tried loads of times, and always the same problem... I don't think my eyesight is that bad!!

Also, it doesn't show the code at all in the static pages, just an "image not found" red cross.

Any one got a solution? You can try it out at http://lizzybug.co.uk/home.php, or http://lizzybug.co.uk/catalog/index.html and pick any product.

Cheers

Dave

daveb1 01-06-2007 01:41 PM

Re: Direct Product Enquiry Form
 
OK, I've turned of the captcha error by commenting out the exit line, but that obviously means there's no validation on the captcha at all now. If anyone has any ideas on why it doesn't validate I'd be pleased to hear them!

Also it doesn't work on the static product pages at all, it just sends the word "enquire" to the search page. This COULD be because of a modification I've got that sends any wierd URLs to an "intelligent" 404 page, or it could be something else.

Any help?

Thanks

Dave

daveb1 01-09-2007 02:12 PM

Re: Direct Product Enquiry Form
 
well I've had to disable it for the moment, shame as it was exactly what I was looking for. I've PM'd PhilJ just in case he hasn't seen this thread for a while... I'll report back here if he finds a solution.

Regards

Dave

daveb1 01-15-2007 01:09 AM

Re: Direct Product Enquiry Form
 
Well I saw the package had been updated, so I installed the new version... still doesn't work on the static pages. Does anyone know if it's supposed to?

Dave

PhilJ 01-15-2007 05:32 AM

Re: Direct Product Enquiry Form
 
Dave, it's meant for the product pages only.

daveb1 01-17-2007 08:42 AM

Re: Direct Product Enquiry Form
 
Sorry, by static pages I meant the product pages in the html catalog directory. Is it supposed to work in those?


All times are GMT -8. The time now is 04:40 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.