Thread: DUAL Pricing v2

Page 106 of 151 FirstFirst ... 65696104105106107108116 ... LastLast
Results 1,051 to 1,060 of 1503
  1. #1051
    Join Date
    Aug 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    Please help!

    We need this addon for zencart 1.5! ;)

  2. #1052
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: DUAL Pricing version 2

    Quote Originally Posted by ezecca View Post
    Please help!

    We need this addon for zencart 1.5! ;)
    In case you didn't read through this support thread.. there is no v1.5 version..
    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.

  3. #1053
    Join Date
    Aug 2011
    Location
    Portland, Oregon
    Posts
    20
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    I also need this for Zen Cart version 1.5.0. Is there an update to this Duel Pricing plugin that works with the latest Zen Cart?

    Thank you.

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

    Default Re: DUAL Pricing version 2

    I will be releasing my wholesale pricing for 1.39h shortly, I have also started on a wholesale pricing for 1.5 and things are looking good :)

    Twitch.

  5. #1055
    Join Date
    Aug 2011
    Location
    Portland, Oregon
    Posts
    20
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    That sounds great! Do I check back here for the link to the new release?

    Also, Zen Cart 1.5 does work with the Dual Pricing 1.8, BUT, it conflicts with the Master Password and the two cannot be used together. Something you may want to think about is putting the Master Password, or something similar, as part of Dual Pricing. Especially since a lot of wholesale stores owners need to login as a customer when they are taking phone orders, email orders, etc.

    Thank you!

  6. #1056
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: DUAL Pricing version 2

    Hello Diva, (or others that can help :))

    I have recently installed Dual Pricing - Wholesale Pricing - I am running v1.3.9h

    Zen Cart® Versions v1.3.9
    Original Author romanus
    Last Updated by jackie.taferner - 10 Aug 2011
    Downloads 29,159
    http://www.zen-cart.com/downloads.php?do=file&id=74

    I have installed it twice - or over installed it / re-installed it and I still cannot get it to work at all - NOTHING shows up in admin under any section.

    I note this in the readme file "THIS REPLACES GROUP PRICING. IF YOU USE GROUP PRICING THEN DON'T USE THIS."

    I am not using Group Pricing, i.e. I have never installed it but it shows up under Customers in Admin so I can only assume it was part of the Zencart package.

    Additionally I note a file for admin called 'easypopulate.php' .... does this mean that for this Plug-in to work one has to have the Easy Populate plug-in installed also ?? I can't find anything in the readme file to suggest that.

    Looking for some help here :)

    cheers,
    Mike

  7. #1057
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: DUAL Pricing version 2

    I tried to add this as a p.s. in edit but it timed out :)

    is this how this mod works ?

    p.s. here is how I envisaged this working so please correct me where I may have it wrong. On home page I could have a sidebox saying - 'Wholesale Prices available for Resellers' or something similar that went to an ez page explaining what was required for someone to qualify as a Wholesale customer and asking them to respond, maybe via via an email form completing certain information, e.g. their company name, website, business details, etc so that upon receipt of this info you could assess whether to allocate their status as a wholesale customer and at what discount level. Then through admin they would be allocated to that category so when they log in they see pricing to that level.

    Is this basically how it works (when install works) ??

  8. #1058
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: DUAL Pricing v2

    Quote Originally Posted by jjj0923 View Post
    ok - well I just wrote the code and tested it.

    not too difficult

    one module needs to be modified:

    /includes/classes/order.php

    I made three changes to this module. I have not looked at 1.5 but I suspect the code is very similar

    You can take a look in your code and see how similar they are.

    1) code needs to be added to read the customers_whole field from the customers table so that you can check to see if this is a wholesaler/dealer (and skip the sales tax calculation)

    that''s easy.

    find this code:

    PHP Code:
    $customer_address_query "select c.customers_firstname, c.customers_lastname, c.customers_telephone, 
    and replace it with:

    PHP Code:
    $customer_address_query "select c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_whole, 

    then find:

    PHP Code:
          // find product's tax rate and description
          
    $products_tax $this->products[$index]['tax'];
          
    $products_tax_description $this->products[$index]['tax_description']; 
    and insert this code after it (please bear in the mind that this code may be superfluous since we'll be avoiding the sales tax calculations altogether next, but I like to be safe)

    PHP Code:
         if ($customer_address->fields['customers_whole'] > 0)
          { 
    $products_tax 0;
            
    $this->products[$index]['tax'] = 0;
            
    $tax_add 0;
            
    $this->products[$index]['tax_description'] = '';
          } 

    then finally there a chunk of code RIGHT BELOW what we just added that does all the sales tax calculation.

    what I found in the standard 1.39 module is shown below:


    PHP Code:
          if (DISPLAY_PRICE_WITH_TAX == 'true') {
            
    // calculate the amount of tax "inc"luded in price (used if tax-in pricing is enabled)
            
    $tax_add $shown_price - ($shown_price / (($products_tax 10) ? "1.0" str_replace('.'''$products_tax) : "1." str_replace('.'''$products_tax)));
          } else {
            
    // calculate the amount of tax for this product (assuming tax is NOT included in the price)
    //        $tax_add = zen_round(($products_tax / 100) * $shown_price, $currencies->currencies[$this->info['currency']]['decimal_places']);
            
    $tax_add = ($products_tax/100) * $shown_price;
          }
          
    $this->info['tax'] += $tax_add;
          foreach (
    $taxRates as $taxDescription=>$taxRate)
          {
            
    $taxAdd zen_calculate_tax($this->products[$index]['final_price']*$this->products[$index]['qty'], $taxRate)
                    +  
    zen_calculate_tax($this->products[$index]['onetime_charges'], $taxRate);
            if (isset(
    $this->info['tax_groups'][$taxDescription]))
            {
              
    $this->info['tax_groups'][$taxDescription] += $taxAdd;
            } else
            {
              
    $this->info['tax_groups'][$taxDescription] = $taxAdd;
            }
          } 

    I added an if statement to wrap this code and only execute it if the customers is a non wholesaler/dealer

    my code is shown below:
    PHP Code:
    // jjj added
     
    if ($customer_address->fields['customers_whole'] == 0)
        {    
          if (
    DISPLAY_PRICE_WITH_TAX == 'true') {
            
    // calculate the amount of tax "inc"luded in price (used if tax-in pricing is enabled)
            
    $tax_add $shown_price - ($shown_price / (($products_tax 10) ? "1.0" str_replace('.'''$products_tax) : "1." str_replace('.'''$products_tax)));
          } else {
            
    // calculate the amount of tax for this product (assuming tax is NOT included in the price)
    //        $tax_add = zen_round(($products_tax / 100) * $shown_price, $currencies->currencies[$this->info['currency']]['decimal_places']);
            
    $tax_add = ($products_tax/100) * $shown_price;
          }
          
    $this->info['tax'] += $tax_add;
          foreach (
    $taxRates as $taxDescription=>$taxRate)
          {
            
    $taxAdd zen_calculate_tax($this->products[$index]['final_price']*$this->products[$index]['qty'], $taxRate)
                    +  
    zen_calculate_tax($this->products[$index]['onetime_charges'], $taxRate);
            if (isset(
    $this->info['tax_groups'][$taxDescription]))
            {
              
    $this->info['tax_groups'][$taxDescription] += $taxAdd;
            } else
            {
              
    $this->info['tax_groups'][$taxDescription] = $taxAdd;
            }
          }
    // jjj added
          



    GOOD LUCK!
    Hello. I've made the changes on the orders.php page as suggested in this thread to remove the taxes for wholesale accounts, and unfortunately it messes with the tax calculations even for retail customers. Any ideas?

  9. #1059
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: DUAL Pricing v2

    I have recently installed Dual Pricing - Wholesale Pricing - I am running v1.3.9h

    Zen Cart® Versions v1.3.9
    Original Author romanus
    Last Updated by jackie.taferner - 10 Aug 2011
    Downloads 29,159
    http://www.zen-cart.com/downloads.php?do=file&id=74

    I have installed it twice - or over installed it / re-installed it and I still cannot get it to work at all - NOTHING shows up in admin under any section - other than prices show as $xxx/0 indicating to me that 'something' is working, but as I said there is nothing at all in admin nor in configuration.

    I note this in the readme file "THIS REPLACES GROUP PRICING. IF YOU USE GROUP PRICING THEN DON'T USE THIS."

    I am not using Group Pricing, i.e. I have never installed it but it does show up under Customers in Admin so I can only assume it was part of the standard Zencart package.

    Additionally I note a file for admin called 'easypopulate.php' .... does this mean that for this Plug-in to work one has to have the Easy Populate plug-in installed also ?? I can't find anything in the readme file to suggest that.

    Looking for some help here :) (still)

    cheers,
    Mike

  10. #1060
    Join Date
    Mar 2011
    Location
    Ireland
    Posts
    286
    Plugin Contributions
    0

    Default Re: DUAL Pricing version 2

    Quote Originally Posted by twitchtoo View Post
    I will be releasing my wholesale pricing for 1.39h shortly, I have also started on a wholesale pricing for 1.5 and things are looking good :)

    Twitch.
    Hi twitchtoo, just picked up on your thread, so happy someone working on this;
    I have a store in 1.3.9h yet to install wholesale pricing but will soon be launching new store in 1.5 and hope to have the dual pricing working on this if its ready, perhaps, the existing versions would suffice in the interim, what you think cheers

 

 

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