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 21 to 40 of 47
15 Sep 2010, 6:40 PM
#21
fakedecoy avatar

fakedecoy

Zen Follower

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

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

zc 1.3.8a

I installed the Request for Quote 1.0 Shipping and Payment Module found here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=480

  • In the shipping module settings in the admin, the only zone option is to DISABLE one zone for the module. However, it doesn't work. No matter what zone I select, it enables the module for all zones.

  • The payment module has no option to select a zone. There's a blank text field in the settings that from the source code appears to be for selecting a zone, but in that case it should be a dropdown type field.

It's version 1.0 from 2007, so it appears that this module has been abandoned and never entirely worked.

Basically I want to have all international customers and customers outside the non-continental US have only one shipping option, $0 and with an explanation that it's a shipping quote request, and one payment option, with an explanation that it's a request for a quote, with no payment information needed.

I can use the MultiGeoZone MultiTable Shipping Module as the shipping option, but for the payment module I still need something that will email me a request for a quote and not ask for any online payment information from a customer (much like the moneyorder module) . Any suggestions?

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

15 Sep 2010, 8:17 PM
#22
amandagero avatar

amandagero

Zen Follower

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

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

i have started a mod like this, but it is far from being finished. i will post here with upates, but please do not expect anything soon

15 Sep 2010, 9:33 PM
#23
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

So I tried removing and reinstalling the payment module, and I get this error during reinstall.

1062 Duplicate entry 'MODULE_PAYMENT_RFQ2_PAYTO' for key 2
in:
[insert into zen_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.

Anyway, what might I do to fix the code such that it uninstalls correctly? I found the remove function, below, but the code looks too simple to show any problem.

    function remove() {
	    global $db;
      $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
    }

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

15 Sep 2010, 9:36 PM
#24
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

Why does that key get left in? Is there a fix to the uninstall code to get it to remove the key properly so that the module can be reinstalled properly? That key never properly displays in the admin settings for the shipping module either, so there's something wrong with the code regarding it.

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

15 Sep 2010, 9:38 PM
#25
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

Must not be properly listed in the keys() section.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Jan 2011, 5:09 AM
#26
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

Does anyone have this working with the 1.3.9 version of zencart

and

Does the cart get "saved" till the quote is sent to the customer?

Webzings Design
Semi retired from Web Design

12 Jan 2011, 12:54 AM
#27
tezla avatar

tezla

New Zenner

Join Date:
Nov 2008
Posts:
27
Plugin Contributions:
0

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

I also need to know if the new RFQ 1.01b is compatible with ZenCart 1.3.9h.

I need to upgrade ZenCart to close security holes, but I'll wait if they are not compatible (must have RFQ working). I would love to hear about a working install.

ZenCart: 1.3.8a Fresh install back in 2008 (Admin folder renamed recently)
Addons: Request For Quote (RFQ v1.01), FCK Editor 2.5
Template: ezBlue
Customizations: Maybe a few display text changes in the PHP code here and there (footer, etc) ... nothing special

11 Feb 2011, 5:18 PM
#28
billswebbiz avatar

billswebbiz

New Zenner

Join Date:
Aug 2010
Posts:
5
Plugin Contributions:
0

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

Has anyone made this work for ZC 1.3.9 yet?

Thanks,
BW
ZC 1.3.9h

8 Mar 2011, 5:52 PM
#29
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

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

AmandaGero:

i have started a mod like this, but it is far from being finished. i will post here with upates, but please do not expect anything soon

How goes it?

Attached is a revamped 139 version of RFQ based on the freeshipper.php and moneyorder.php files. It currently works for me, but I am still testing. Please note that I have not included the admin/includes/languages/english/orders.php, which needs to be addressed.

Comments/Criticisms appreciated.

9 Mar 2011, 2:39 PM
#30
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

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

Please ignore the zip of my previous post and use this zip.

Apologies for any inconvenience.

10 Mar 2011, 9:46 AM
#31
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

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

Sorry to do this to you all, but hopefully this is the final form of my mod, really and truly.

Added a description to the order review and cleaned code.

31 May 2011, 10:56 PM
#32
3rdcoast avatar

3rdcoast

New Zenner

Join Date:
Feb 2005
Location:
Houghton, MI, USA
Posts:
16
Plugin Contributions:
0

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

OK, I've finally gotten this module to work with the ability to set a shipping zone that causes the module to be DISABLED. If the shipping address is IN the shipping zone, this module is DISABLED. If the shipping address is NOT IN the shipping zone, this module is ENABLED.

I've attached an updated rfq.php file with all the above corrections and my corrections. This is for Zen-Cart 1.38a.

Here's my corrections:

Starting at line 40 replace this code:

        $check_flag = true;
        $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");
        while (!$check ->EOF) {
          if ($check->fields['zone_id'] < 1) {
            $check_flag = true;
            break;
          } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
            $check_flag = false;
            break;
          }
          $check->MoveNext();
		}

With this code:

        $check_flag = true;
        $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");
        while (!$check ->EOF) {
          if ($check->fields['zone_id'] == $order->delivery['zone_id']) {
            $check_flag = false;
            break;
          }
          $check->MoveNext();
		}

WOO HOO!

21 Jun 2011, 9:06 PM
#33
3rdcoast avatar

3rdcoast

New Zenner

Join Date:
Feb 2005
Location:
Houghton, MI, USA
Posts:
16
Plugin Contributions:
0

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

One last (fingers crossed) minor correction. (Change <> to =).

  $check_flag = true;
        $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");
        while (!$check ->EOF) {
          if ($check->fields['zone_id'] == $order->delivery['zone_id']) {
            $check_flag = false;
            break;
          }
          $check->MoveNext();
		}

I'll submit update to the add ons directory as well.

25 Oct 2011, 2:47 AM
#34
asiamarinehub avatar

asiamarinehub

New Zenner

Join Date:
Oct 2007
Posts:
41
Plugin Contributions:
0

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

I am using your RFQ139 and activate both under payment and shipping. I got the shipping module "orange" status and thus cannot see this method when I am doing a check out. My version is 1.3.9h and is a fresh installation under localhost. Can you help?

26 Oct 2011, 5:09 AM
#35
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

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

Hi asiamarinehub

I get orange in admin also and believe it has to do with the setup of this mod to activate only when certain products are in cart eg oversized, overweight, specific categories/products.

Because I use Australia Post (OzPost mod) as my default shipper, who themselves prescribe limits upon what they will ship, I have no need for RFQ unless the certain products are in cart.

As I assume you are flagging my mod variation, you may wish to compare my mod variation with the original mod to get an idea how it works.

Hope this helps.

27 Oct 2011, 4:31 AM
#38
asiamarinehub avatar

asiamarinehub

New Zenner

Join Date:
Oct 2007
Posts:
41
Plugin Contributions:
0

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

Hi dw08gm

You mean there is special setting or conditions in order to use RFQ? I did not quite get your last paragraph.

"As I assume you are flagging my mod variation, you may wish to compare my mod variation with the original mod to get an idea how it works."

27 Oct 2011, 1:32 PM
#39
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

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

Hi asiamarinehub

I am no expert on the mod and only shared what worked for me. I have added conditional statements to the mod but IIRC these were remmed out in those uploaded.

Your problem could be anything. You may not have installed the mod correctly.

Have you uninstalled my variant and installed the older version to see if you get the same result.

Cheers

16 Dec 2011, 10:28 AM
#40
pazaz avatar

pazaz

New Zenner

Join Date:
May 2007
Posts:
47
Plugin Contributions:
0

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

dw08gm:

Sorry to do this to you all, but hopefully this is the final form of my mod, really and truly.

Added a description to the order review and cleaned code.

I have removed completely the old RFQ files and added only the files in this mod but it completely ignores the RFQ now??

Any ideas?

Im using 1.39h