Thread: DUAL Pricing v2

Page 139 of 151 FirstFirst ... 3989129137138139140141149 ... LastLast
Results 1,381 to 1,390 of 1503
  1. #1381
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,546
    Plugin Contributions
    9

    Default Re: DUAL Pricing v2

    Your first screen shot looks to be of Group Pricing. This cannot be used with Group Pricing, one or the other.
    Ok, I deleted those now.

    The customer screen doesn't show any text box to enter the level of the customer.

    For the price display on the product page, that is most likely due to tpl_product_info_display.php not being merged correctly with your template
    Like I said in my post, I uploaded the original from the pack and it didn't show up neither. So I believe now the issue is on the customer screen not showing the textfield to enter the level.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  2. #1382
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,582
    Plugin Contributions
    29

    Default Re: DUAL Pricing v2

    If you're not seeing this on the customer page in the admin, then the plugin is not properly installed.

    Name:  Capture.PNG
Views: 216
Size:  1.8 KB

  3. #1383
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,546
    Plugin Contributions
    9

    Default Re: DUAL Pricing v2

    ok, I thought it was located under the email subscription, not under email. GOT IT! It wasn't showing prices on front end but I log off and logged in and they showed up. THANKS!
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  4. #1384
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,582
    Plugin Contributions
    29

    Default Re: DUAL Pricing v2

    Quote Originally Posted by ideasgirl View Post
    ok, I thought it was located under the email subscription, not under email. GOT IT! It wasn't showing prices on front end but I log off and logged in and they showed up. THANKS!
    Glad you got it working! Yes, you do need to log out and back in when making changes to the customer pricing level.

  5. #1385
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    186
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    I have noticed in this thread a few years back that there was a discussion having this plugin work with the minimum order plugin. Has anyone had any success with ZC 1.5.5a with the ability to have different minimum order amounts for wholesale or retail customers.
    Thanks

  6. #1386
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: DUAL Pricing v2

    Quote Originally Posted by allmart View Post
    I have noticed in this thread a few years back that there was a discussion having this plugin work with the minimum order plugin. Has anyone had any success with ZC 1.5.5a with the ability to have different minimum order amounts for wholesale or retail customers.
    Thanks
    Yes for 1.54... :) Shouldn't be too much different to install into 1.55x although I haven't tried just yet. Needs custom code to include the ws/rt switches.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  7. #1387
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    186
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    Any suggestion of where to start, please.

  8. #1388
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    186
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    I was able to figure out from the Minimum Order plugin thread how to differentiate retail or wholesale customers in the : /includes/classes/observers/class.minimum_order_amount.php file by adding "if ($_SESSION['customer_whole'] != '' = 1)" indicating the customer is a wholesale customer. I just can't figure out the coding to change the minimum order value based on if the customer is retail or wholesale since I want two different amounts. This is part of the existing coding
    Code:
                                 if ($_SESSION['customer_whole'] != '' = 1 ) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
    					$_SESSION['valid_to_checkout'] = false;
    					$messageStack->add('shopping_cart', sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_ORDER_AMOUNT + 100)) . '<br />', 
    
    'caution');
    				  }
    				}
    			}
    			}
    Any help with trying to achieve this is greatly appreciated.

  9. #1389
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    186
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    Ok I figured it out, might be sloppy but it works. For the code below, if the customer is a retail customer than the minimum order is what is set in admin. If the customer is a wholesale customer in this case the minimum order is $300. Just replace all instances of 300 (in red) to what you desire. Ideally you can add a field in your database and change the coding instead of having to modify this file. Hope someone finds this helpful.
    Code:
    <?php
    /**
     * class.minimum_order_amount.php
     *
     * @copyright Copyright 2005-2007 Andrew Berezin eCommerce-Service.com
     * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: config.minimum_order_amount.php 1.0.1 20.09.2007 0:06 AndrewBerezin $
     */
    
    /**
     * Observer class used to check minimum order amount
     *
     */
    class minimum_order_amount extends base {
      /**
       * constructor method
       *
       * Attaches our class to the ... and watches for 4 notifier events.
       */
      function minimum_order_amount() {
        global $zco_notifier;
    //      $_SESSION['cart']->attach($this, array('NOTIFIER_CART_GET_PRODUCTS_START', 'NOTIFIER_CART_GET_PRODUCTS_END'));
        $zco_notifier->attach($this, array('NOTIFY_HEADER_END_SHOPPING_CART', 'NOTIFY_HEADER_START_CHECKOUT_SHIPPING', 'NOTIFY_HEADER_START_CHECKOUT_PAYMENT', 'NOTIFY_HEADER_START_CHECKOUT_CONFIRMATION'));
      }
      /**
       * Update Method
       *
       * Called by observed class when any of our notifiable events occur
       *
       * @param object $class
       * @param string $eventID
       */
      function update(&$class, $eventID) {
        global $messageStack;
        global $currencies;
    	global $db;
        switch ($eventID) {
          case 'NOTIFIER_CART_GET_PRODUCTS_END':
          case 'NOTIFY_HEADER_END_SHOPPING_CART':
    	    if (isset($_SESSION['customer_id'])){
    			$prevOrders = $db->Execute("SELECT count(orders_id) total_orders FROM ".TABLE_ORDERS." WHERE customers_id = ".(int)$_SESSION['customer_id']);
    			if ((int)$prevOrders->fields['total_orders'] == 0) {
    				if ($_SESSION['customer_whole'] != '' < 1) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_FIRST_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < MIN_FIRST_ORDER_AMOUNT) {
    					$_SESSION['valid_to_checkout'] = false;
    					$messageStack->add('shopping_cart', sprintf(TEXT_FIRST_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_FIRST_ORDER_AMOUNT)) . '<br />', 'caution');
    				  }
    				}
    				}
    			 
    			
    			
    			
    			
       /**
       * BOF Wholesale MinOrder $300.00
       */		
       
    						if ((int)$prevOrders->fields['total_orders'] == 0) {
    				if ($_SESSION['customer_whole'] != '' > 0 ) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_FIRST_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < 300) {
    					$_SESSION['valid_to_checkout'] = false;
    					$messageStack->add('shopping_cart', sprintf(TEXT_FIRST_ORDER_UNDER_MIN_AMOUNT, $currencies->format(300)) . '<br />', 'caution');
    				  }
    				}
    				}
    			} 
    			}
       /**
       * EOF Wholesale MinOrder 
       */		
    			
    			
    			
    			
    			
    			
    			else {
    				if ($_SESSION['customer_whole'] != '' < 1 ) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
    					$_SESSION['valid_to_checkout'] = false;
    					$messageStack->add('shopping_cart', sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_ORDER_AMOUNT)) . '<br />', 'caution');
    				  }
    				}
    			}
    		
    			
    			
       /**
       * BOF Wholesale MinOrder 
       */		
    
    				if ($_SESSION['customer_whole'] != '' > 0 ) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < 300) {
    					$_SESSION['valid_to_checkout'] = false;
    					$messageStack->add('shopping_cart', sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(300)) . '<br />', 'caution');
    				  }
    				}
    			}
    			}
    		
       /**
       */		
    			
    			
    			
    			
    		} else {
    			if ($_SESSION['customer_whole'] != '' < 1) { 
    			if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    			  if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
    				$_SESSION['valid_to_checkout'] = false;
    				$messageStack->add('shopping_cart', sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_ORDER_AMOUNT)) . '<br />', 'caution');
    			  }
    			}
    		}
    	
    		
    		
       /**
       * BOF Wholesale MinOrder 
       */		
    	
    				if ($_SESSION['customer_whole'] != '' > 0 ) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < 300) {
    					$_SESSION['valid_to_checkout'] = false;
    					$messageStack->add('shopping_cart', sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(300)) . '<br />', 'caution');
    				  }
    				}
    			}
    			}
    		
       /**
       * EOF Wholesale MinOrder 
       */	
    		
    		
    		
    		
    		
    		
            break;
          case 'NOTIFY_HEADER_START_CHECKOUT_SHIPPING':
          case 'NOTIFY_HEADER_START_CHECKOUT_PAYMENT':
          case 'NOTIFY_HEADER_START_CHECKOUT_CONFIRMATION':
    	    if (isset($_SESSION['customer_id'])){
    			$prevOrders = $db->Execute("SELECT count(orders_id) total_orders FROM ".TABLE_ORDERS." WHERE customers_id = ".(int)$_SESSION['customer_id']);
    			if ((int)$prevOrders->fields['total_orders'] == 0) {
    				if ($_SESSION['customer_whole'] != '' < 1) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_FIRST_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < MIN_FIRST_ORDER_AMOUNT) {
    					zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    				  }
    				}
    				}
    			
    			
    	
       /**
       * BOF Wholesale MinOrder 
       */			
    	
    				if ((int)$prevOrders->fields['total_orders'] == 0) {
    				if ($_SESSION['customer_whole'] != '' > 0) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_FIRST_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < 300) {
    					zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    				  }
    				}
    				}
    			} 
    			}		
    	
       /**
       * EOF Wholesale MinOrder 
       */
    			
    			
    			else {
    				if ($_SESSION['customer_whole'] != '' < 1) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
    					zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    				  }
    				}
    			}
    			
    			
    			
    			
    			
    			
       /**
       * BOF Wholesale MinOrder 
       */		
    			
    					if ($_SESSION['customer_whole'] != '' > 0) { 
    				if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    				  if($_SESSION['cart']->show_total() < 300) {
    					zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    				  }
    				}
    			}
    			}
    			
       /**
       * EOF Wholesale MinOrder 
       */		
    			
    			
    			
    			
    			
    		} else {
    			if ($_SESSION['customer_whole'] != '' < 1) { 
    			if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    			  if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
    				zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    			  }
    			}
    		}
    		
    		
    		
    		
       /**
       * BOF Wholesale MinOrder 
       */		
    		
    				if ($_SESSION['customer_whole'] != '' > 0) { 
    			if ($_SESSION['cart']->count_contents() > 0 && MIN_ORDER_AMOUNT > 0) {
    			  if($_SESSION['cart']->show_total() < 300) {
    				zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    			  }
    			}
    		}
    
    		}
       /**
       * EOF Wholesale MinOrder 
       */		
    		
    		
            break;
          default:
            break;
        }
      }
    }
    ?>

  10. #1390
    Join Date
    Apr 2015
    Location
    PA
    Posts
    2
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    Attributes and Dual Pricing:

    Has anyone gotten attribute pricing to work properly on a 1.5.5d installation?

    I am working on a fresh install with a theme/skin/template but no other mods at the moment and while the dual pricing mod works for the base price (showing wholesale customers both the retail price and the wholesale and properly charging wholesale when the product is added to the cart), attributes are only using the retail price difference.

    tl;dr Attributes only show retail pricing and when added to the cart subtract only retail pricing even when clearly seeing the effects of dual pricing on the base price.
    ZC 1.5.5
    PHP 5.6

    Thanks for any information you can provide!

 

 

Similar Threads

  1. Dual Pricing - Wholesale Pricing - Some issues I was able to fix
    By hollettster in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 17 Dec 2010, 12:00 AM
  2. Dual Pricing - Wholesale Pricing for Zen 1.3.7 works with Easypopulate
    By micheloo in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 20 Jan 2010, 06:01 PM
  3. No Attributes after installing Dual Pricing - Wholsale Pricing
    By drybsmt in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Sep 2009, 11:09 AM
  4. Quantity Discounts and Dual Pricing - Wholesale Pricing
    By snarkys in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 2 Jul 2007, 06:47 PM
  5. Dual Pricing Module & Dual Tax Classes
    By WILL in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 25 May 2007, 10:44 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR