Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 45
  1. #31
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Request for Quote module problems

    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.
    Attached Files Attached Files

  2. #32
    Join Date
    Feb 2005
    Location
    Houghton, MI, USA
    Posts
    19
    Plugin Contributions
    2

    xhtml problem 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:
    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:
    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!
    Last edited by 3rdCoast; 21 Jun 2011 at 10:07 PM.

  3. #33
    Join Date
    Feb 2005
    Location
    Houghton, MI, USA
    Posts
    19
    Plugin Contributions
    2

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

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

    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();
    		}
    I'll submit update to the add ons directory as well.
    Last edited by 3rdCoast; 27 Jun 2011 at 01:57 PM.

  4. #34
    Join Date
    Oct 2007
    Posts
    41
    Plugin Contributions
    0

    Default Re: Request for Quote module problems

    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?

  5. #35
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Request for Quote module problems

    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.

  6. #36
    Join Date
    Oct 2007
    Posts
    41
    Plugin Contributions
    0

    Default Re: Request for Quote module problems

    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."

  7. #37
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default 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

  8. #38
    Join Date
    May 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Request for Quote module problems

    Quote Originally Posted by dw08gm View Post
    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

  9. #39
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

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

    1) Try removing/remming out the following code in both:
    a )includes\modules\payment\rfqpay.php
    b) includes\modules\shipping\rfqship.php

    Code:
    // enable-disable the module if order contains certain products or categories
        if (IS_ADMIN_FLAG == false) {
    	  if ( ($_SESSION['cart']->in_cart_check('master_categories_id','4') < 1) &&
               ($_SESSION['cart']->in_cart_check('master_categories_id','5') < 1) &&
               ($_SESSION['cart']->in_cart_check('master_categories_id','6') < 1)) {
             $this->enabled = false;
             }
           }
    2) If the above does not work, try removing/remming out the following code in both:
    a )includes\modules\payment\rfqpay.php
    b) includes\modules\shipping\rfqship.php

    Code:
    // disable the module if order only contains virtual products
    	if ($this->enabled == true) {
           if ($order->content_type == 'virtual') {
             $this->enabled = false;
            }
          }
    3) Report back here whether any of the above solves your problem or not.

    Cheers

  10. #40
    Join Date
    May 2007
    Posts
    47
    Plugin Contributions
    0

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

    Hi dw08gm

    I remmed out the enable/disable and no change then remmed out disable as well and no change?

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. v151 Request for Quote plugin
    By raunharman in forum General Questions
    Replies: 1
    Last Post: 25 May 2013, 10:11 AM
  2. Replies: 10
    Last Post: 5 Mar 2013, 07:33 PM
  3. Request contact shipping quote for international orders?
    By picandnix in forum General Questions
    Replies: 0
    Last Post: 1 Nov 2011, 12:37 AM
  4. Looking for Manual Shipping Quote module
    By JacobBushnell in forum Addon Shipping Modules
    Replies: 4
    Last Post: 19 Sep 2011, 07:05 PM
  5. How to generate a Request for Quote?
    By kevinw in forum Managing Customers and Orders
    Replies: 4
    Last Post: 15 Mar 2007, 12:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg