Thread: DUAL Pricing v2

Page 91 of 151 FirstFirst ... 41818990919293101141 ... LastLast
Results 901 to 910 of 1503
  1. #901
    Join Date
    Dec 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    Quote Originally Posted by robwag View Post
    Sorry if this solution is buried in the posts, I tried a search but didn't see an answer.

    Is there a way to show the MSRP / Retail price along with the WS price?

    Thanks,

    --RW
    UPDATE:

    I reinstalled again just to make sure and noticed I didn't overwrite a couple of files the first time.

    Success:

    Retail Price: Starting at: $135.00
    Whole Sale Price: Starting at: $100.00

    Just what we needed. Thanks for making the addon.

    --RW

  2. #902
    Join Date
    Dec 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    I finally got attributes to add to the cart with the right price when logged in as wholesale customer or retail.

    I followed all the steps on post #687

    As Twitch suggested I changed all variables:

    - customer_whole
    - customer_wholesale and
    - customers_whole

    to only 'customers_wholesale'.

    Then I only added two small bits of code to shopping_cart.php.

    It can be found /includes/classes/shopping_cart.php

    Find line (around 755):
    PHP Code:
    $new_attributes_price zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty); 
    Add this below:
    PHP Code:
    if ($_SESSION['customer_id']) {
                  if (
    $customer_check->fields['customers_wholesale'] != "0") {
                  
    $new_attributes_price zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price_w'], $qty);
                  }
                  } 
    Then find line (around line 946):
    PHP Code:
    $new_attributes_price zen_get_discount_calc($products_id$attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty); 
    Add this below:
    PHP Code:
     if ($_SESSION['customer_id']) {
                  if (
    $customer_check->fields['customers_wholesale'] != "0") {
                  
    $new_attributes_price zen_get_discount_calc($products_id$attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price_w'], $qty);
                  }
                  } 
    The first code will adjust the sub total in the cart to match the wholesale pricing. The second will make the actually price match the wholesale price. If you have other discounts applied like coupons or sales you will have modify the codes similar to what I have done. I'm not using any discounts so this works for me. At least this gives you the idea of what you have to do.

    Thanks for all of your help!

  3. #903
    Join Date
    Oct 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    greatss!!!
    That works fine!!!
    Thank you very much!!!!


  4. #904
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    Quote Originally Posted by edingtoncollection View Post

    under: //get specials price or sale price

    if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
    $special_price = false;
    } else {

    if ($specials->RecordCount() > 0) {
    $special_price = $specials->fields['specials_new_products_price'];
    } else {
    $special_price = false;
    }
    }

    and under: // return special price only

    if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
    return false;
    } else {
    if ($specials_price_only==true) {
    if (zen_not_null($special_price)) {
    return $special_price;
    } else {
    return false;
    }
    } else {


    $product_to_categories = $db->Execute("select master_categories_id from " . TABLE_PRODUCTS . " where products_id = '" . $product_id . "'");
    $category = $product_to_categories->fields['master_categories_id'];

    $sale = $db->Execute("select sale_specials_condition, sale_deduction_value, sale_deduction_type from " . TABLE_SALEMAKER_SALES . " where sale_categories_all like '%," . $category . ",%' and sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001-01-01') and (sale_date_end >= now() or sale_date_end = '0001-01-01') and (sale_pricerange_from <= '" . $product_price . "' or sale_pricerange_from = '0') and (sale_pricerange_to >= '" . $product_price . "' or sale_pricerange_to = '0')");

    if ($sale->RecordCount() < 1) {
    return $special_price;
    }
    }
    The above logic is from edingtoncollection and tells the system to ignore the sales price when logged in. I am trying to do the opposite. I want it to ignore the sales price when NOT logged in and to apply the sales price when logged in. I am still struggling to make this happen. I thought it would have been as simple as changing != '0' to ='0' but that did not work. Can someone offer some assitance?
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  5. #905
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: DUAL Pricing v2

    I've checked the confirmed working mods thread http://www.zen-cart.com/forum/showth...38#post1097138. I can't find any mention of dual pricing or hidden wholesale. Is this mod compatible and if not are there any suggestions for a 1.5 compatible mod?

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

    Default Re: DUAL Pricing v2

    Quote Originally Posted by badarac View Post
    I've checked the confirmed working mods thread http://www.zen-cart.com/forum/showth...38#post1097138. I can't find any mention of dual pricing or hidden wholesale. Is this mod compatible and if not are there any suggestions for a 1.5 compatible mod?
    I am upgrading the wholesale/dual pricing cart I built to 1.50 right now. I will keep you posted if it works...

    Twitch

  7. #907
    Join Date
    Dec 2011
    Location
    Atlanta, GA
    Posts
    32
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    Quote Originally Posted by twitchtoo View Post
    I am upgrading the wholesale/dual pricing cart I built to 1.50 right now. I will keep you posted if it works...

    Twitch
    How about an update, any mods necessary so far?

  8. #908
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: DUAL Pricing Special Problem

    I made the changes to my functions_prices.php as per edingtoncollection post. However, the wholesale account holder is still seeing the specials price and not the wholesale price.

    This is such a great mod, I can't believe someone doesn't have a solution to this.

    Anyone?

  9. #909
    Join Date
    Mar 2011
    Posts
    17
    Plugin Contributions
    0

    Default Re: DUAL Pricing v2

    I have version 1.3.9h

    I have the mod installed, but when someone who is wholesale actually adds product to the cart, the price is incorrect and is the retail price. Any advice?

  10. #910
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: DUAL Pricing v2

    Quote Originally Posted by badarac View Post
    I've checked the confirmed working mods thread http://www.zen-cart.com/forum/showth...38#post1097138. I can't find any mention of dual pricing or hidden wholesale. Is this mod compatible and if not are there any suggestions for a 1.5 compatible mod?
    If it's not listed, then it's not compatible.. and like nearly all Zen Cart modules there WILL be changes required to get any mod to work with v1.5. What changes are required will vary from mod to mod..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

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