Thread: Quick Order

Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    London
    Posts
    53
    Plugin Contributions
    0

    help question Quick Order

    So very handy. Works well as I'm running a wholesale site and is exactly what I need. Is there any support for this mod?

    It's running well on the latest version of Zen but there are a few issues, the breadcrumb was one, but have since commented out the home link from init_add_crumbs.php so fixed that but now have a prob that it doesn't display the error stack messages if you are not logged in and try to use form?

    Think it has something to do with this bit of code?

    Code:
    // so there's a setting that's stopping the customer to see prices, let's get a better idea of what that is
    	
    		// assume the customer doesn't need to log in
    		$qo_require_login = false;
    		switch (true) {
    			case (STORE_STATUS >= 1):
    				// showcase no prices
    				$qo_error_message = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' .  TEXT_SHOWCASE_ONLY . '</a>';
    			break;
    			case (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == ''):
    				// customer must be logged in to browse
    				$qo_require_login = true;
    			break;
    			case (CUSTOMERS_APPROVAL == '2' and $_SESSION['customer_id'] == ''):
    				// show room only
    				// customer may browse but no prices
    				$qo_require_login = true;
    			break;
    			case (CUSTOMERS_APPROVAL == '3'):
    				// show room only
    				$qo_error_message = TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM;
    			break;
    			case (CUSTOMERS_APPROVAL_AUTHORIZATION != '0' and $_SESSION['customer_id'] == ''):
    				// customer must be logged in to browse
    				$qo_require_login = true;
    			break;
    			case (CUSTOMERS_APPROVAL_AUTHORIZATION != '0' and $_SESSION['customers_authorization'] > '0'):
    				// customer must be logged in to browse
    				$qo_require_login = true;
    			break;
    			default:
    				// unknown error
    				$qo_error_message = sprintf(QO_UNKNOWN_ERROR, zen_href_link(FILENAME_CONTACT_US));
    			break;
    		}
    		
    		// customer needs to be logged in
    		if ($qo_require_login === true) {
    			$messageStack->add('quick_order', QO_ERROR_LOGIN_TO_PROCEED, 'error');
    		}
    		else {
    			// add standard error message
    			$messageStack->add('quick_order', sprintf(QO_ERROR_CANNOT_PROCEED, zen_href_link(FILENAME_CONTACT_US), $qo_error_message), 'error');
    		}
    		
    	// end 'false'
    	break;
    	} // end switch
    
    ?>

    Any help would be appreciated.

    Site is at http://www.erigodvds.com/index.php?m...ge=quick_order [R18 Site]

    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Quick Order

    Look up user DWNO... He played a big part in its dev.

    I have a relatively "new" version at www.commotionstore.co.uk which we call fast-track ordering. Take a look, then PM me if necessary

    It works fine for us, but it can't handle products with attributes. I did a little bit of tweaking to get it to work the way I wanted, but it serves our purpose very well.
    20 years a Zencart User

  3. #3
    Join Date
    Aug 2006
    Location
    London
    Posts
    53
    Plugin Contributions
    0

    Default Re: Quick Order

    I was just hoping I could get it to display the message stack warning until you logged in, if you clicked on it and you weren't logged in. Everything thing else is hunky dorey thanks.

 

 

Similar Threads

  1. Quick Order
    By dwno in forum All Other Contributions/Addons
    Replies: 53
    Last Post: 3 Mar 2020, 01:57 AM
  2. v154 Quick Order - How to change sort order?
    By anduril3019 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Jun 2015, 09:09 PM
  3. v138a Quick Re-order aka order_history.php history beyond last order
    By beyerg in forum Customization from the Admin
    Replies: 1
    Last Post: 24 Jan 2012, 11:14 PM
  4. Quick Order
    By medgollc in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Dec 2010, 06:20 PM

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