Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Direct Product Enquiry Form

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #41  
Old 07-08-2008, 01:08 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #42  
Old 07-08-2008, 08:39 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default 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
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #43  
Old 07-29-2008, 10:36 AM
 
sg_web sg_web is offline
 

Member
  
Join Date: May 2008
Posts: 29
 

Default 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?
__________________
X-Cart version 4.1.10 and 4.2 for client sites

Sandi Gauder
CMS Web Solutions Inc.
cmswebsolutions.com
Reply With Quote
  #44  
Old 08-09-2008, 11:33 AM
 
konadnailart konadnailart is offline
 

Member
  
Join Date: Mar 2005
Posts: 27
 

Default Re: Direct Product Enquiry Form

anyone know how to remove the captcha part?
thank you
__________________
Xcart 4.1.9, AOM, One Page Checkout, Buy Together, Smart Search, On Sale, XC SEO Pro, Preordered/Backordered, Reward Points (Unresolve Issue), Marketing Manager Pro V3, RubyMod Currency, GeoIP.
Reply With Quote
  #45  
Old 08-09-2008, 03:10 PM
 
nomonkeybiz nomonkeybiz is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 64
 

Default 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> -->
__________________
v4.4
Reply With Quote
  #46  
Old 08-09-2008, 07:47 PM
 
konadnailart konadnailart is offline
 

Member
  
Join Date: Mar 2005
Posts: 27
 

Default Re: Direct Product Enquiry Form

thanks nomonkeyiz it works.
thank you
__________________
Xcart 4.1.9, AOM, One Page Checkout, Buy Together, Smart Search, On Sale, XC SEO Pro, Preordered/Backordered, Reward Points (Unresolve Issue), Marketing Manager Pro V3, RubyMod Currency, GeoIP.
Reply With Quote
  #47  
Old 02-10-2009, 10:51 AM
 
MBA MBA is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 245
 

Default 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?
__________________
xCart Pro Version 4.0.17, 4.0.19, 4.1.8, 4.1.10, 4.1.11, 4.1.12 - retired
xCart Pro Version 4.3.1 - production
xCart Pro Version 4.5.1 - testing
RHEL Platform
Reply With Quote
  #48  
Old 02-11-2009, 02:56 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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');
__________________
xcartmods.co.uk
Reply With Quote
  #49  
Old 02-15-2009, 12:59 AM
 
jaydee jaydee is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 37
 

Default 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,
__________________
jd.
-
X-Cart Gold 4.1.9
Red-Hat Server
Reply With Quote
  #50  
Old 02-15-2009, 02:18 AM
 
jaydee jaydee is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 37
 

Default 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,
__________________
jd.
-
X-Cart Gold 4.1.9
Red-Hat Server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:18 AM.

   

 
X-Cart forums © 2001-2020