Forums / Addon Payment Modules / Need to get the Request for Quote Shipping module to work for v1.38a

Need to get the Request for Quote Shipping module to work for v1.38a

Views: 13,008

Results 1 to 20 of 47
24 Jun 2009, 1:09 PM
#1
v_linck avatar

v_linck

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Need to get the Request for Quote Shipping module to work for v1.38a

I am hoping someone can assist me with the Request For Quote (RFQ) Shipping and Payment Module. This module is currently compatible with Zencart 1.37 but I am trying to get it to work for v1.38a. I have tried searching in the forum for answers but I couldn't find any threads relating to my problem.

Anyway, I attempted to install the module in the hope that it might be compatible with the new version of Zencart after all. I merged the following according to the installation instructions:

/catalog/admin/includes/languages/english/orders.php

added the following line:

define('TEXT_RQF', 'Request for Quote'); // added for Request for Quote Payment and Shipping module

/catalog/includes/languages/english/palema/checkout_process.php

added the following line:

define('MODULE_PAYMENT_RFQ2_TEXT_EMAIL_FOOTER', 'Upon receiving your quote, you may choose to process the order. You will need to contact us with your payment information at this time. Your order will not ship until the full payment is received.');

After uploading all the installation files , the module appeared in both the shipping and payment module. I was able to activate it in the payment module without a problem. When I tried activating it for the shipping module, that's when the problem started. I had enabled the module to TRUE, sort order: 2, and also configured the zone (International, which I created previously) and clicked on UPDATE. I was brought back to the shipping modules default page, but quite a few modules were noticably missing from this page now, including the RFQ module. I have attached a screenshot of this problem (shippingmodule_2.jpg). I was also unable to edit any of the modules as the options on the right hand side completely disappeared.

I tried deleting all of the installation files, clearing the cache, restarting my computer, then reinstalling the RFQ module. Upon deletion of the installation files, the shipping module default page was restored (shippingmodule.jpg). Upon reinstallation, the shipping module default page was back to the example shown in shippingmodule_2.jpg. I tried this several times. Always the same result.

I am using my own customised template and tried switching back to the classic but of course, this didn't affect the admin at all.

Other addons that were previously installed include: About Us Page, Column Divider Pro, Column Layout Grid, CSS Menu, Flash Hacks, Newsletter Subscribe, Time Zone Offset and Zen Lightbox. I don't believe that the RFQ module conflicted with any of these, though of course, I could be wrong.

Any help would be greatly appreciated.

1 Jul 2009, 5:34 PM
#2
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

I'm experiencing a similar problem with v1.3.8. Yesterday I installed security_patchv138_20090619 followed by the RFQ shipping and payment module. I also have the backup_MYSQL_admin_plugin and super_orders_20_rev47 installed (both installed some weeks ago). Everything appeared to be working until I tried to configure the rfq plug-in in the shipping module. The error message appearing on my admin shipping module page (which is now minus some of it's original content as described by V_linck) is:

Fatal error: Cannot use object of type queryFactoryResult as array in /var/www/neshop/includes/modules/shipping/rfq.php on line 43

Any help would be appreciated. I'd love to be able to use this module. It would be an extremely helpful addition.

TIA

2 Jul 2009, 4:36 PM
#3
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Been troubleshooting the RFQ add-on module and have found several coding errors in shipping/rfq.php. Correcting these errors restores the shipping page of the admin area to it's previous appearance and functionality. The code fixes that I've corrected so far in shipping/rfq.php are as follows:

about line 43 -

2 Jul 2009, 4:50 PM
#4
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

To continue with code fixes for shipping/rfq.php --

line 43:
change:
if ($check['zone_id'] < 1) {
to:
if ($check->fields['zone_id'] < 1) {

~line 46:
change:
} elseif ($check['zone_id'] == $order->delivery['zone_id']) {
to:
} elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {

~line 50:
change:
$check->MoveNext;
to:
$check->MoveNext();

I'll post any other changes as I find them ASAP.

14 Jul 2009, 4:51 AM
#5
v_linck avatar

v_linck

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Hello,

Thank you once again for the help you've offered. I've implemented the changes you suggested and the RFQ is now showing. I have two issues which I'm hoping you can help me with. When editing this module in the admin, it has an option as follows:

"Shipping Zone
If a zone is selected, DISABLE this shipping method for that zone."

I selected the zone which I don't want it to apply to but it is still showing up in the estimate pop up and at the checkout page (see image). I only want it to apply for the international zone I've set up. What am I doing wrong?

The second issue is that I want to delete the icon in the checkout page. It's not showing anyway, and the alt tag shows up in its place so that it looks like I've repeated the legend title twice (see image). How can I remove this?

Any help would be greatly appreciated.

Thanks!

21 Jul 2009, 1:13 AM
#6
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

To comment out (i.e. remove) all shipping icons, use the override system and edit includes/templates/template_default/templates/tpl_checkout_shipping_default.php as follows:

Change line 70 to read:

<legend><?php echo $quotes[$i]['module']; ?><!-- <?php if (isset($quotes[$i]['icon']) && zen_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?>--></legend>

As far as the zone issue is concerned, make sure your zones are set up correctly. Setting up zones can be tricky. Can you give us more detail on exactly how you went about setting up your zones?

24 Jul 2009, 1:26 AM
#7
v_linck avatar

v_linck

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Hi,

I was able to remove the icons with your help - thank you. As for the zones ... I have two Zones defined. One for Australia, and one for International (which lists all other countries except for Australia). When editing the rfq shipping module, I selected Australia, because it says that" If a zone is selected, DISABLE this shipping method for that zone" and that's what I need it to do. I thought that rfq would only show if the customer is from one of the international countries. I’ve tested this module for a customer residing in the US and only the rfq module shows. I also tested rfq using a customer from Australia, this is when both the rfq and per item modules show together. The rfq quote rate is set to 0 if that helps at all, and I have double checked that the International zone does not include All Countries or Australia.

Thanks.

11 Aug 2009, 1:19 AM
#8
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Was this issue with the zones resolved for 1.3.8? I'm interested in using this module to require international customers to get a shipping quote from me before checking out.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

14 Aug 2009, 1:53 AM
#9
v_linck avatar

v_linck

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

I followed all of mmsim's suggestions and it seems to be working fine. It's just the zones issue that I can't seem to work out.

9 Sep 2009, 6:55 PM
#10
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

I'm having the same problem getting the RFQ module to recognize zones. It's almost as if it doesn't see the zone settings at all.

By the way, there's a typo in catalog\includes\modules\shipping\rfq.php. On line 41, it should read MODULE_SHIPPING_RFQ_ZONE not MODULE_SHIPPING_RQF_ZONE. Unfortunately, correcting this doesn't solve the zone issue we're currently experiencing.

I'm going to work on this a little more and to if I can figure out what's going on. :frusty: If I get it working, I'll post immediately. In the meantime, if anyone else has any ideas, please post them. This would be a very useful mod if it could be made to work.

10 Sep 2009, 12:32 AM
#11
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

I think I've corrected the "zone problem". It seems to test correctly for me, but someone else try it and see if it works in your case as well. Here's the correction:

In catalog\includes\modules\shipping\rfq.php Line 41 is:

$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id <> '" . MODULE_SHIPPING_RFQ_ZONE . "' and zone_country_id <> '" . $order->delivery['country']['id'] . "' order by zone_id");

I believe it should be:

$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id <> '" . MODULE_SHIPPING_RFQ_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

("zone_country_id <>" should be "zone_country_id =")
(don't forget to change the typo: MODULE_SHIPPING_RQF_ZONE should be MODULE_SHIPPING_RFQ_ZONE as posted earlier.

Does this correction work for anyone else?

10 Sep 2009, 2:18 AM
#12
v_linck avatar

v_linck

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Great work! Works just fine now. :clap: Thanks for posting the solution.

10 Sep 2009, 3:04 PM
#13
mmsim avatar

mmsim

New Zenner

Join Date:
May 2009
Posts:
8
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Thanks. I'm really glad this module finally works.

I've also found a simpler and much better way to eliminate the icon shipping_rfq.gif. This method does not involve modifying the template tpl_checkout_shipping_default.php.

To eliminate the icon, edit line 37 of catalog\includes\modules\shipping\rfq.php.

Change:
$this->icon = DIR_WS_ICONS . 'shipping_rfq.gif';

To:
$this->icon = '';

Simple. I don't know why I didn't see this solution before.

:smile:

15 Sep 2009, 1:16 AM
#14
edwardtilbury avatar

edwardtilbury

Zen Follower

Join Date:
Sep 2007
Posts:
169
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

One more problem, with RFQ 1.01 it won't work with short tags disabled!

Some code is like this:

<? blahblahblah ?>

Some is like this:

<?php blahblahblah ?>

This drove me off the wall.. I couldn't figure out why it would work on one server vs another, I was mysqldiff-ing and using meld all day long.. finally after looking at it after a good rest, I compared some modules to others and realized the lack of "php" on the first "<?"

So if you're having a bunch of extra text appearing in the payment area of the back end, make sure to just do a CTRL F and and find those short tags.. there's only a couple you need to change.

AIM edwardtilbury
GoogleTalk edwardtilbury

27 Oct 2009, 4:28 AM
#15
hey_you avatar

hey_you

New Zenner

Join Date:
Sep 2009
Posts:
49
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Is there anyway to have this module trigger when the cart reaches a certain weight?

Can it be set to only show the payment module if the RFQ shipping module has been selected?

7 May 2010, 9:12 PM
#16
mirostz avatar

mirostz

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Hello everyone,
I am new with Zen-Cart but I started to love it. I have implemented lots of modules for it, but I have a problem with one module and I can not run it. I looked all over the posts but I did not find anything about it. The module is called "RFQ Shipping and Payment Modules" and it is from "Free Software Add Ons" on zen-cart website.

I followed the steps in the INSTALL.TXT file, but I dont have the module available in my Shipping or Payment Modules in the Admin area. If someone is using this module please help me to install it.

PS. So far most of the modules I have installed has *.sql file which adds the necessary tables into the DB but in RFQ I did not find one, just *.php files.

Thanks!

8 May 2010, 9:40 AM
#17
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need to get the Request for Quote Shipping module to work for v1.38a

There's no SQL file in that mod.

I just installed it on a test site and it works fine, although I don't understand why many mods require the user to edit files - why not just include the edited file in the mod package?

Only thing I can think of is maybe you didn't change the name of the admin folder in the mod to the (changed) name of your folder before you uploaded the files (I've done that myself).

11 May 2010, 10:35 AM
#18
mirostz avatar

mirostz

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

Steve thanks for your reply,
I did a mistake I have few websites which I am managing and I uploaded the files in the wrong place, so silly :frusty:.

I did run the module and everythin went fine it was working very nice. Now I want to remove the module. When I did remove it from the admin panel everything went good. Then I tried to start my COD module and it started with no errors, but when I go to make an order it is not avalable there the option is missing...

I dont know if it has something with the RFQ module, but now when I try to start the RFQ module again I get this error:

1062 Duplicate entry 'MODULE_PAYMENT_RFQ2_PAYTO' for key 2
in:
[insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('For more info contact:', 'MODULE_PAYMENT_RFQ2_PAYTO', '', 'Who is the contact for quotations?', '6', '1', now());]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Now the RFQ and COD modules are not working all other are working just fine. The configuration keys got mess up or something and now I am stuck I guess i have to restore my backup to fix it.

3 Jul 2010, 12:25 AM
#19
avibodha avatar

avibodha

New Zenner

Join Date:
Nov 2007
Posts:
25
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

go into phpMyAdmin and remove the row for that key after you Uninstall it. It gets left in and has an error when re-installed.

3 Jul 2010, 7:05 AM
#20
harjean avatar

harjean

New Zenner

Join Date:
Apr 2008
Location:
Perth, Western Australia
Posts:
1
Plugin Contributions:
0

Re: Need to get the Request for Quote Shipping module to work for v1.38a

I have installed this module however the icon "shipping_rfq.gif" does not show (dreaded red X).

includes/modules/shipping/rfq.php has the following line:
$this->icon = DIR_WS_ICONS . 'shipping_rfq.gif';

However, when I view the source of the displayed page it shows as:

<legend>Request Shipping Quote <img src="**DIR_WS_ICONSshipping_rfq.gif**" alt="Request Shipping Quote" title=" Request Shipping Quote " width="100" height="80" /></legend>

The icon is in the images/icons folder.

Can anyone help?