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)
-   -   Price Match...Oh, Phil you there? (https://forum.x-cart.com/showthread.php?t=28175)

ranger82nd 01-19-2007 11:32 AM

Price Match...Oh, Phil you there?
 
Phil~

I just found your Price Match MOD and it's a beauty, just what I was looking for.
Question, could this be incorporated as a pop-up, instead of cluttering the product page?

PhilJ 01-19-2007 12:03 PM

Re: Price Match...Oh, Phil you there?
 
Good idea, I'll add that feature over the weekend :)

ranger82nd 01-19-2007 12:06 PM

Re: Price Match...Oh, Phil you there?
 
Awesome, thanks! 8)

dfawdon 01-19-2007 03:15 PM

Re: Price Match...Oh, Phil you there?
 
Thanks Phil, another really handy mod, I have added it as a tab.

I had to change in pricematch.php to stop getting an access denied message after submission

Code:

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

to

Code:

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

dfawdon 01-19-2007 03:33 PM

Re: Price Match...Oh, Phil you there?
 
If I could make a request Phil, could you add the CAPTCHA image to this form like your excellent product enquiry, and also make the T's & C's box readonly ?

ranger82nd 01-30-2007 11:17 AM

Re: Price Match...Oh, Phil you there?
 
Phil, anything new on this?

PhilJ 01-30-2007 12:42 PM

Re: Price Match...Oh, Phil you there?
 
Sorry, not yet, I'm looking at adding a captcha now.

To make the T&C readonly...

Just change...

Code:

<textarea name="tnc" cols="40" rows="5" id="tnc">

to...

Code:

<textarea name="tnc" cols="40" rows="5" id="tnc" disabled>

PhilJ 01-30-2007 04:18 PM

Re: Price Match...Oh, Phil you there?
 
update, try...
Code:

<textarea name="tnc" cols="40" rows="5" id="tnc" contenteditable="false">
or...
Code:

<textarea name="tnc" cols="40" rows="5" id="tnc" readonly>

PhilJ 03-26-2007 07:20 AM

Re: Price Match...Oh, Phil you there?
 
Update: I've added a new mod that consists of...

- Product Enquiry
- Send to Friend
- Price Match
- Contact Form

...all as popup windows, with validation and captchas :)

See my site for details.

Phil

William Lam 10-13-2007 10:26 PM

Re: Price Match...Oh, Phil you there?
 
Hi Phil.

Is there an option to add image verification for price match request, nothing major maybe just 3 characters ???

wildelectronics 11-07-2007 02:05 AM

Re: Price Match...Oh, Phil you there?
 
Hi, this mod sounds great when applied, however I'm having this problem.

When I go to apply the languages patch for the Price Match Request found at www.xcartmods.co.uk, it doesn't work and there is a screen with the following text that gets redirected back to xcart, with a note saying that the patch has been successful:
-------------------------------------------------------------------

Testing patch applicability and generation list of files could take several minutes, please be patient.
--------------------------------------------------------------------------------
Applying patch. Please be patient...
--------------------------------------------------------------------------------
Warning: Invalid argument supplied for foreach() in /home/wildelec/public_html/wildwebwizards/admin/patch_files.php on line 61
Done.
----------------------------------------------------------------------
&
This is line 61 & 62 of patch_files.php:

foreach ($patch_files as $index=>$patch_file) {
echo $patch_file["orig_file"]." ... "; flush();

---------------------------------------------------------------------

The patch doesn't seem to work and the labels for the mod aren't present. Any ideas?

If you do not know what this is, perhaps you could tell me how I can patch the following into the database using PhpAdmin:

-----------------------------------------------------------------
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match','Price Match','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Descr','Seen our product priced lower elsewhere?','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Name','Name','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Email','Email','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Telephone','Telephone','Lab els');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Comp_Link','Competitors Link','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Comp_Price','Competitors Price','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Incl_Tax_Shipping','(inclus ive of tax & shipping)','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Comments','Comments','Label s');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_TNC','Terms & Conditions','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Terms','Price Match Terms & Conditions go here.','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Read_Terms','I have read and understood the Terms & Conditions','Labels');
INSERT INTO xcart_languages VALUES ('US','lbl_Price_Match_Thanks','Thank you, we will be in touch very shortly.','Labels');
--------------------------------------------------------------------

Any help would be appreciated.

Regards Cheryl :)

PhilJ 03-18-2008 07:32 AM

Re: Price Match...Oh, Phil you there?
 
This mod now includes a captcha if anyone's interested

espresso 04-01-2008 06:30 AM

Re: Price Match...Oh, Phil you there?
 
Quote:

Originally Posted by PhilJ
This mod now includes a captcha if anyone's interested


Hi Phil, thank you, just what I was waiting for. Great mod.

Metal-X-Man 04-06-2008 11:39 AM

Re: Price Match...Oh, Phil you there?
 
Mod works great with the CAPTCHA!

Thanks for adding this for me - worth the money. No more SPAM!

George

chris.barber 05-08-2008 02:25 PM

Re: Price Match...Oh, Phil you there?
 
Hi Phil, I updated my version to this today and I have to say thanks, this will be a godsend, because quite frankly I have no need for Power Trowels, Glass Machinery and in particular bl00dy Warcraft Gold... can't these people find something better to do, my customers never see these Price Matches anyway, so why try and spam a link onto my site... grrrrrrrrrrrrrrr

Thanks a million as you have helped it all go away.

robertswww 01-02-2009 10:17 AM

Re: Price Match...Oh, Phil you there?
 
Hi PhilJ,

Thank you for providing the free Price Match MOD with Captcha.

We have been using it successfully for months on our X-Cart 4.1.10 site. But, about 2 weeks ago, the CAPTCHA image stopped showing up in the form. However, the built-in X-Cart Captcha, that we have enabled for the Contact Us form page, still displays properly and works fine.

Our captcha folder has the correct file permissions (i.e. writable) and it is still generating the files within the folder, each with a unique name, such as: 0109a14ee9cc, 03e26ce2aa15, etc.

Firefox doesn't display anything in place of the image, just a blank white space. If you try and Submit the form in Firefox, it now returns the following Error Message: Sorry, there was a problem. Please try again, ensuring your email address is valid and the 5 letter code is correct.


Safari shows a blue box with a Question Mark, and if you click to open the image in a new tab, it displays the following:

Warning: fclose() [function.fclose]: 2 is not a valid stream resource in /home/oursite/public_html/pricematch.php on line 63

Warning: fclose() [function.fclose]: 2 is not a valid stream resource in /home/oursite/public_html/pricematch.php on line 66

Warning: Cannot modify header information - headers already sent by (output started at /home/oursite/public_html/pricematch.php:63) in /home/oursite/public_html/pricematch.php on line 69
ЪьЪЮJFIFЪЧ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ЪшC    $.' ",#(7),01444'9=82<.342ЪшC  2!!222222222222222222222222222222222222222222222 22222Ъюd"Ъд Ъд╣}!1AQa"q2│▒║ #B╠аRяП$3br┌ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ┐└┘├┤┬┴┼▓⌠■∙√≈≤≥  ╒ё╓╔╕╖╗╘╙╡Ё╢╣╤╥╦╧ бцдефгхийрстужвьызАБЦДЕФ ГХИЙЯРСТУЖВЬЫЗЪд  Ъд╣w!1AQaq"2│B▒ ╠а #3RПbrя $4А%Я&'()*56789:CDEFGHIJSTUVWXYZcdefghijstu vwxyz┌┐└┘├┤┬┴┼▓⌠■∙√≈ ≤≥ ╒ё╓╔╕╖╗╘╙╡Ё╢╣╤ ╦╧╨бцдефгхийрстужвьызБЦ ДЕФГХИЙРСТУЖВЬЫЗЪз ?Жm+Jс╓яЛ]Л-Yзч2лп╘$М·*ГЖ>≈Ъ@ш?ШП©АF▐Ъ KЗЖ▐ЪAЦ┐БМеГ▀4сБ╫U<хЙ~╕ }_WтУ┬ж·╟©⌠L│4фу..Ю▌9%■y· Rд╬b╡ Н-├' ╪▓сЪcИТ ЁЪ© ЧcИТ ЁЪ© Ч│Ю ~Ш\рУ(56▌[м#S÷K√Е`╧1cВ╩:!!├T20ЦЩ~ШCрТ 4ф▌+м_S┐K┼Евx╤2ГВ╩:9N░2Fr Ж>≈Ъ@ш?ШП©АGЖ>≈Ъ@ш?ШП©А\ф▒ Йzдk© _ъи╘юЗbЙ√Вsгrд<о)╒o-U\7б▒▓НэЯeУф≥ЮщrЧнO.ЙвO╦  звXь╘аЮЮ│ж─-ЪcИТ ЁЪ© ЧcИТ ЁЪ© ЧД_дМPп|7т▒зК_ш╨u╔ЧдV≈1 ЗRКт)х*~Нv▐l _ьЗ_ЩlЪОбЪ┘ьЗ_ЩlЪОбЪ┘yЕч╥ ╝е?┴\жУм Лвs e╒▀⌡E╣TSнЧCГ╩0С0Gкшр,&ШF²m? `╨С"GСМф#≈ х2ъ)Й9<╖*p3╤┌вX┘-Ю▌6ЙJф│A;⌡·(╘|wЪ!╦КыТ&╒─; ]Ч@√УМЧ┌+■O┤ГCЯ÷5О≥6╖╙о ╚Zщ,Eбwг√хCd╡°┌╧иjе┤▄ТК ]:жщА╨/H▄UW─5YЪ└ОKЪ·÷ВбЪЯT©a е╬²m ЕвзНё┴k▐,GФ╦3М.NNLж╞Аy╝|Ki ="Ч; ZvЁ∙╖╥3е=╧;╤2oR|0e`z┐░xgЭ'z_Э ╪Ъ╬Ъ┼ёЧ╫/Чx^ъ ЪеP© Ьj irш*д≈WwWy}tЮ)╦╦|o}ё└S▓OxjИ q[╣д√╥v╥ yct─1╥╦LЛ}╖┤$<OC┌*бw╔Ъо оШАЬ╙?А;рЪГ┘ГЩП©ЭUgxGАт^Я ч╡nЮ√iБx {w├hыуЖB├Wь╔В╠▄╟ш╟╗вtо М©jzO²ДЩ╨р[o7nМ⌡п╝Лdgн2+#Ч╫/Чx^ъ ЪеQЪ ч≈Ъ


Our server GD Stats are listed below:

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled

Has anyone else encountered this problem, and does anybody have a fix for it?

Thanks,

Robert

espresso 01-02-2009 10:30 AM

Re: Price Match...Oh, Phil you there?
 
I just checked our website, and indeed, we have the same problem, the captcha image is not working either. The last price match request we got was on Dec-16th 2008. About 2 weeks ago.

nomonkeybiz 01-02-2009 10:45 AM

Re: Price Match...Oh, Phil you there?
 
Quote:

Warning: fclose() [function.fclose]: 2 is not a valid stream resource in /home/oursite/public_html/pricematch.php on line 63

In pricematch.php (line 63), find:
Code:

fclose($Handle);
change to:
Code:

closedir($Handle);

robertswww 01-02-2009 11:16 AM

Re: Price Match...Oh, Phil you there?
 
Hi NoMonkeyBiz,

I tried the replacement you suggested for Line 63, and it got rid of the first Warning error, but I still got:
Warning: fclose(): 2 is not a valid stream resource in /home/oursite/public_html/pricematch.php on line 67

So, I also added the same change to Line 67, but then got:
Warning: closedir(): 2 is not a valid Directory resource in /home/oursite/public_html/pricematch.php on line 67

Still no Captcha code image showing with either change. And the Headers Already Sent error still exists.

Any other ideas?

Thanks,

Robert

nomonkeybiz 01-02-2009 11:21 AM

Re: Price Match...Oh, Phil you there?
 
In line 67:
Code:

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

Change $handle to $Handle.

robertswww 01-02-2009 11:28 AM

Re: Price Match...Oh, Phil you there?
 
Thanks NoMonkeyBiz!

Price Match works perfectly again!

To recap the fix:

File pricematch.php

Line 63:
Change: fclose($Handle);
To: closedir($Handle);

Line 67:
Change: $handle = fopen('./captcha' . '/' . $FileName, 'w');
To: $Handle = fopen('./captcha' . '/' . $FileName, 'w');

Much appreciated, and Happy New Year!

Robert

espresso 01-02-2009 11:48 AM

Re: Price Match...Oh, Phil you there?
 
"nomonkeybiz", you rock :-)
works again for me too.
Was this due to a server php update version out there ?
Thanks again

nomonkeybiz 01-02-2009 12:07 PM

Re: Price Match...Oh, Phil you there?
 
Yes with PHP 5.2.8.

Cyber Matrix 02-26-2009 11:45 AM

Re: Price Match...Oh, Phil you there?
 
I was testing the price match and after i click submit I got this as a confirmation. And I never got the email of the request.

Can be used at http://www.thepromoshop.com/products/port-authority-long-sleeve-easy-care-shirt.html - click on price guarantee

�����JFIF���������>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ���C�    $.' ",#(7),01444'9=82<.342���C  2!!222222222222222222222222222222222222222222222 22222�����d"��������������  �������}�!1AQa"q2���#B�� R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz �������������������������������������������������� ���������������������������������  ������w�!1AQaq"2�B ���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvw xyz����������������������������������������������� ���������������������������� ��?��m+JӤ��]�-Y��2�Щ$��*��>���@�?���F��� K����A�������M���_�چ��4:\�G F�� ��`�w������_�l���������_�l�������T��Ƨ����O 2��O��g��hԱ��d�Ұ�g��~ �O��]�^;"���K��d�[�$FWp�Cs��:�}/�����▐�}/�����╗xV=}t�g�ћ˛��-�)Q66A�@[�z� ���zU��"���}G]���X��ʐ>�7��x8�@?�>���@�?���G�>���@�?���\Ƒ��z�k � _�ɩ��b��s�r�<�)�o-U\7‘���5h�ѯ��� A��[YdT���ǃ�l��h?������߅�� ?������߅�� ��z���-:�H� j��CYb�S����ev��Z�J������6���/�Q����6���/�W�O�r+_^���%ޛ��gco� �h�TTI�1�@w,fR'��3[�����#rꭎ@b#=�3�(�<��A8�ۜ9J�e d��i��������_�*��N���y��|/��@�+�M�.]5�/-���H6�� �X� � Nq�������x��I[{���u8u�Ks2�F T:�޽���������_�*��N���y��|/��@�</5��n�G����Mn�q4���v�M�I/�,�O@0=%s�������_�*��N���y��|/��@�?��N��u��۾�\l� <����X���7A�Wa\��'z_�����������/�x^� ���P2|=�"������L׵ ��t�Ω1H�C)Q�w8�8�����Lӭ�,���mbHaM��E�(���ְ?�;� �������U�������_�*�1


How do I fix this?

robertswww 02-27-2009 09:31 AM

Re: Price Match...Oh, Phil you there?
 
Cyber Matrix,

Are you running the original pricematch.php? If so try implementing the Fix that is re-capped in Post #21 above.

Make sure your server has the GD graphics library turned on and your captcha folder has the correct file permissions.

Also, make sure your email address is set in Line 10: $emailTo =

Robert

Cyber Matrix 02-27-2009 09:58 AM

Re: Price Match...Oh, Phil you there?
 
Thanks for the suggestion however I already had applied the fix in post 21 before the fix the captcha did not even show when I went to the pop up. Now the captcha shows but after you click submit you get this on the confirmation page

By the way the permission are set correctly.


�����JFIF���������>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ���C�    $.' ",#(7),01444'9=82<.342���C  2!!222222222222222222222222222222222222222222222 22222�����d"��������������  �������}�!1AQa"q2���#B�� R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz �������������������������������������������������� ���������������������������������  ������w�!1AQaq"2�B ���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvw xyz����������������������������������������������� ���������������������������� ��?��m+JӤ��]�-Y��2�Щ$��*��>���@�?���F��� K����A�k!�V��]�ko��-vY�����vɴIW���������w��_�l���������_�l����� ��Ka ·�m ���k�,G��3�.NNL�'�=S�m�x�v�������P,bX%g'R�. "2��2�p���c�� ���� �c�� ���� �C╠���?���\�<�l�H���� ���������N_čoQ�ׇ-��+�*��P��QEEg�Ծ�D 1��^���;�t��_�l���������_�l�������s�v���u�2 ��F���Ż���R�"��*#9#�ǭlx���L�n�g'�uk��M �k�lT��p@�@��������߅�� ?������߅�� �K��1���Vu 2F�/����<��B��� �ō�W�P/�}/�����▐�}/�����╪�/k���2d��A��w��m�����Dc�H�-���.0N3��L��h�2������Q��JToQ��6GS�4�x�� ]b��8P۩+�nx���������e��К���t�X״���_�ڞ /����+��?��y�ta>�F�c=}�>��zu��kn���$F*��@������ w���� ���������#��[K�^h�t�[vX��� � Ǟ���BT+)$�L����K���������T�w���� �������]o ir魨�yh��(�A��8��ĸN@bs���co���6��Q<3&�7#dr2 �X�������_�*��N���y��|/��@ ������?�d2���l)���m…^��5����~��;��u���n��7� ]���3�dVG�'z_����� ������/�x^� ���Pk������v�=wgs���G��n�n�wu�N=밮c��/�x^� ���Q�� ޗ��</?���� �c����ϴ��i��_�y^fߓ��6��9�+��c��/�x^� ���Q�� ޗ��</?������������Bj*��uh5�F;�t�QbD���؟Z(�

mrerotic 05-31-2009 04:03 PM

Re: Price Match...Oh, Phil you there?
 
This would be even nicer if the captcha used the stores built in captcha. Also would be nice to explain to everyone that everytime you use this right now a captcha file is created in /captcha but as far as I can tell the only time its deleted is if someone actually submits the form if not then this directory is getting full of captcha images that arent being removed.

chris.barber 06-02-2009 12:31 AM

Re: Price Match...Oh, Phil you there?
 
mrerotic, I'm not sure that's true, I have this installed and I have had it for a long time now and I just checked the captcha directory and there are only entries in there for this month.

mrerotic 06-02-2009 07:06 PM

Re: Price Match...Oh, Phil you there?
 
Ok, hopefully you are correct. I didn't see anywhere in the php script where its removing old captcha files. But I will test this as well and let you know.
Thanks for the reply.

DavyMac 06-21-2010 01:55 AM

Re: Price Match...Oh, Phil you there?
 
After using the form once every subsequent submission fails because Captch reports that the code is wrong.

The problem is that the Captcha image is being cached by the browser, so every time the form is displayed it has the very first captcha image, which doesn't match the Captcha code created for this session.

Although I have worked out what the problem is does anyone have a solution please?


All times are GMT -8. The time now is 06:19 PM.

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