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)

photo 07-08-2008 01:08 AM

Re: Direct Product Enquiry Form
 
Quote:

Originally Posted by paul@dimoda.com.au
Has anyone got this working with CDSEO or CDSEO pro? CDSEO rewrites so that there is no message that the enquiry is sent of that the captcha is incorrect...

Phil's Enquire mod works fine for me using CDSEO

ecommerce 07-08-2008 08:39 AM

Re: Direct Product Enquiry Form
 
Thanks Photo.

Also guys, if the "Configurator" mod by x-cart is being used,
and a customer configures a Computer, after they are done
configuring, instead of adding to cart I will like to have the tab
"Enquiry Form".

Question: If they submit the Enquiry Form after configuring,
will all the configuring details be submitted to admin?

OR will only the name of the product be submitted to admin?

Thanks

sg_web 07-29-2008 10:36 AM

Re: Direct Product Enquiry Form
 
I've just installed the v4.x version of the Direct Enquiry mod and it's working like a charm except when the product name has a quotation mark i.e. " in it. The email is truncating the product name at the ". Is there a way to modify the DoStripSlashes function to strip the quotes as well?

konadnailart 08-09-2008 11:33 AM

Re: Direct Product Enquiry Form
 
anyone know how to remove the captcha part?
thank you

nomonkeybiz 08-09-2008 03:10 PM

Re: Direct Product Enquiry Form
 
Quote:

Originally Posted by konadnailart
anyone know how to remove the captcha part?
thank you


In enquire.php (line 207-209), change to:
Code:

/* if (!checkXCM_captcha($XCMcode)) {
 $ValidationFailed = true;
} */


In enquire.tpl (line 11-14), change to:
Code:

    /* if (theForm['code'].value == ""){
        errMsg = "Please enter the code";
        setfocus = "['code']";
    } */


In enquire.tpl (line 64), add the starting comment tag:
Code:

<!--    <tr>

In enquire.tpl (line 80), add the closing comment tag:
Code:

</tr> -->

konadnailart 08-09-2008 07:47 PM

Re: Direct Product Enquiry Form
 
thanks nomonkeyiz it works.
thank you

MBA 02-10-2009 10:51 AM

Re: Direct Product Enquiry Form
 
We've used this mod on 4.1.10 and 4.1.11 with no issues but today suddenly the captchu doesn't show and we are getting a ton of these types of errors in the server log:

[Tue Feb 10 13:07:07 2009] [error]

PHP Warning: fclose() [<a href='function.fclose'>function.fclose</a>]:

3 is not a valid stream resource in /home/userwww/public_html/enquire.php on line 60

Line 60 in the enquire.php file is the fclose($Handle);

The only significant change to the server was updating PHP from 5.2.6 to 5.2.8 that we needed for another bit of software to run faster... I wonder if anyone has seen this yet?

PhilJ 02-11-2009 02:56 AM

Re: Direct Product Enquiry Form
 
Untested, but try this.

1) Change:

fclose($Handle);

To:

closedir($Handle);

2) Change:

$handle = fopen('./captcha' . '/' . $FileName, 'w');

To:

$Handle = fopen('./captcha' . '/' . $FileName, 'w');

jaydee 02-15-2009 12:59 AM

Re: Direct Product Enquiry Form
 
I was having the fclose errors as well. This fixed it:

Lines 57-60:
Code:

closedir($Handle);

 $Handle = fopen('./captcha' . '/' . $FileName, 'w');
 fclose($Handle);


The image generated is a little underwhelming. Any ideas how to improve it? Can we pull in X-Carts image verification somehow?

Cheers,

jaydee 02-15-2009 02:18 AM

Re: Direct Product Enquiry Form
 
If the user gets the captcha wrong, they are returned to a blank page with empty fields, requiring them to enter their enquiry again. Yuck!

I've been fiddling with PHP for ages but can't seem to get things to pass across. PHP isn't my strong point...

Any suggestions or help please?

Cheers,

accesspos 09-06-2010 11:50 PM

Re: Direct Product Enquiry Form
 
Quote:

Originally Posted by jaydee
If the user gets the captcha wrong, they are returned to a blank page with empty fields, requiring them to enter their enquiry again. Yuck!

I've been fiddling with PHP for ages but can't seem to get things to pass across. PHP isn't my strong point...

Any suggestions or help please?

Cheers,


i would love to know the answer to this as well

HAS 04-11-2011 08:20 AM

Re: Direct Product Enquiry Form
 
Hello,

Hope that someone can help me with next problem :

I use the Product Enquiry Form with Producttabs.
When the form is submitted the productpage does a refresh and shows the content in the first tab (upselling products) So the custmer doesn't see the message that the Enquiry is properly submitted or isn't.
I would like to see a message in dialog.message (as in "sent to a friend") or after a pagerefresh the content shown in the last clicked tab.
I tried to change next in the tabs.js next line :
Code:


var enabletabpersistence = 0

into
Code:

var enabletabpersistence = 1
This result in showing the content in the last clicked tab after refresh (which is oke) but also in errors (IE8 (invalid argument - jquery-min.js) and messing up the multicollum in upselling products in the first tab.

Help will be appreciated !!!
Has

JeanB 04-18-2011 07:55 AM

Re: Direct Product Enquiry Form
 
Quote:



Quote:

Originally Posted by jaydee
If the user gets the captcha wrong, they are returned to a blank page with empty fields, requiring them to enter their enquiry again. Yuck!

I've been fiddling with PHP for ages but can't seem to get things to pass across. PHP isn't my strong point...

Any suggestions or help please?

Cheers,


Quote:

Originally Posted by accesspos
i would love to know the answer to this as well



I would like to know the answer to this, too!

Also - We have moved servers recently and now the 'Captcha' is not working - Just shows a little red 'X'?

What can I do to get this working again, without re-installing - Problem is that I would have to do it again when we go live - not something I want to do!?

PhilJ 04-18-2011 08:25 AM

Re: Direct Product Enquiry Form
 
JeanB, ensure your /captcha directory is writable/permissions are set to 777.

JeanB 04-18-2011 08:48 AM

Re: Direct Product Enquiry Form
 
Hi Phil,
The permissions are definitely 777 - they weren't, but are now and it still hasn't made a difference.

PhilJ 04-18-2011 08:49 AM

Re: Direct Product Enquiry Form
 
What is your PHP version? 4 or 5

anandat 04-18-2011 09:15 AM

Re: Direct Product Enquiry Form
 
Phil,
How to add just a link "click here for this product inquiry" instead of entire tab ?

JeanB 04-18-2011 11:08 PM

Re: Direct Product Enquiry Form
 
Sorry for the delay, Phil - I had to wait 'til I was back at my desk to find out for you ...

It's a dedicated server with PHP 5.1.6?

Cheers :)

JeanB 04-18-2011 11:32 PM

Re: Direct Product Enquiry Form
 
Ok - Strange - I changed the permissions to 777 yesterday and it still didn't work.

I've double checked them today and they've reverted to 755! I changed them to 777 now and it's spot on!

Thanks for your help, Phil! :D Whoop! :D


If you might be able to shed some light on how to remember what the customer has written, if they get the captcha wrong, that would be fantastic!


All times are GMT -8. The time now is 02:19 AM.

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