Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default per 'Category' Dual or Wholesale Pricing

    I would like to be able to set wholesale customers a 'discount per category', and it should override Salemaker discounts - is there a plugin or other modification that will do this. I have searched plugins and forums and Google but the closest I found is 'Dual Pricing - Wholesale Pricing' plugin but it only allows setting a net price, per item.

    Any ideas on how this could be achieved?

    cheers,
    Mike

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,017
    Plugin Contributions
    61

    Default Re: per 'Category' Dual or Wholesale Pricing

    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

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

    Default Re: per 'Category' Dual or Wholesale Pricing

    Many thanks Melanie - I installed your Group Pricing Unlimited on a 1.5.5f install using method 2 (overwrite a core file, collect_info.php) and the same (overwrite) with the two includes files /includes/functions/functions_prices.php and /includes/classes/shopping_cart.php and am getting the following myDEBUG error - symptoms were only two lines in admin/configuration/Group Pricing Unlimited (version and status, nothing else, expected more?) and an error on admin/catalogue/products > product page 'Group Pricing - WARNING: An Error occurred, please refresh the page and try again.' and nothing at all under that, no content.
    My knowledge of database code is very limited so I am not sure how to resolve this.
    Code:
    [04-Sep-2018 06:26:16 UTC] Request URI: /admin/product.php?cPath=65&product_type=1&pID=279&action=new_product, IP address: 203.63.42.62
    #1  trigger_error() called at [/home/rings1/public_html/includes/classes/db/mysql/query_factory.php:171]
    #2  queryFactory->show_error() called at [/home/rings1/public_html/includes/classes/db/mysql/query_factory.php:143]
    #3  queryFactory->set_error() called at [/home/rings1/public_html/includes/classes/db/mysql/query_factory.php:270]
    #4  queryFactory->Execute() called at [/home/rings1/public_html/admin/includes/functions/extra_functions/group_pricing_unlimited.php:16]
    #5  get_gpu_pricing() called at [/home/rings1/public_html/admin/includes/modules/group_pricing_unlimited.php:20]
    #6  require(/home/rings1/public_html/admin/includes/modules/group_pricing_unlimited.php) called at [/home/rings1/public_html/admin/includes/modules/product/collect_info.php:417]
    #7  require(/home/rings1/public_html/admin/includes/modules/product/collect_info.php) called at [/home/rings1/public_html/admin/product.php:142]
    
    [04-Sep-2018 06:26:16 UTC] PHP Fatal error:  1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BY group_id' at line 1 :: SELECT * FROM zen1_group_pricingORDER BY group_id ==> (as called by) /home/rings1/public_html/admin/includes/functions/extra_functions/group_pricing_unlimited.php on line 16 <== in /home/rings1/public_html/includes/classes/db/mysql/query_factory.php on line 171
    *changed all instances of my admin folder name in above file to 'admin' for security reasons
    cheers,
    Mike
    Last edited by shags38; 4 Sep 2018 at 07:57 AM.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: per 'Category' Dual or Wholesale Pricing

    ./YOUR_ADMIN/includes/functions/extra_functions/group_pricing_unlimited.php line 20
    change

    TABLE_GROUP_PRICING. "ORDER
    to
    TABLE_GROUP_PRICING. " ORDER

    (space after quote).
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: per 'Category' Dual or Wholesale Pricing

    Quote Originally Posted by swguy View Post
    ./YOUR_ADMIN/includes/functions/extra_functions/group_pricing_unlimited.php line 20
    change

    TABLE_GROUP_PRICING. "ORDER
    to
    TABLE_GROUP_PRICING. " ORDER

    (space after quote).
    Thanks for that Scott - it did get rid of the error warning however the overall function has not improved - I now get the myDEBUG error below - I am wondering if the database table prefix may be an issue? I use a prefix zen1_ ... checking the database a configuration_group exists for Group_pricing_unlimited and are there two entries in configuration, version and status.
    Code:
    [05-Sep-2018 00:04:02 UTC] PHP Fatal error:  Call to undefined function zen_draw_label() in /home/rings1/public_html/MY_ADMIN/includes/modules/group_pricing_unlimited.php on line 29
    Attachment 18020
    Attachment 18021

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: per 'Category' Dual or Wholesale Pricing

    This is a 1.5.5 function; you can just add it to

    admin/includes/functions/html_output.php

    Code:
      function zen_draw_label($text, $for, $parameters = ''){
        $label = '<label for="' . $for . '" ' . $parameters . '>' . $text . '</label>';
        return $label;
      }
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: per 'Category' Dual or Wholesale Pricing

    Quote Originally Posted by swguy View Post
    This is a 1.5.5 function; you can just add it to

    admin/includes/functions/html_output.php

    Code:
      function zen_draw_label($text, $for, $parameters = ''){
        $label = '<label for="' . $for . '" ' . $parameters . '>' . $text . '</label>';
        return $label;
      }
    Thanks Scott - that worked.

    So I have read the readme but cannot find an explanation as to how to;
    a) create groups
    b) add a customer to a group

    also I assume to populate groups to products I would use EasyPopulate and adjust every group price manually?

    I appreciate that this plugin is based on 'product and unit price' - ideally I was hoping for a process whereby I could apply a discount 'percentage' off list prices 'by category' for different levels of wholesaler/stockist, .i.e. some will get a larger discount than others based on their level and some will not want, need, be authorized for all categories.

    Applying a discount per category can be done via coupon manager using the restrictions tab however it does not allow to apply the discount to the 'list price only if the product is on special', hence a wholesaler would get discount on sale price .... (inbuilt SaleMaker has the function selection to do this) ... if that function was available in the coupon admin it would solve my requirement (and be useful to others I would think).

    In your opinion could this function be added to the coupon program without a massive rewrite? I am not a coder so am not sure what may or may not be involved.

    Many thanks for your support,
    cheers,
    Mike

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: per 'Category' Dual or Wholesale Pricing

    a) create groups
    - Admin-Customers-Group Pricing, then do an Insert
    b) add a customer to a group
    - Admin-Customers-Customer-Edit then at the bottom, set pricing group.

    BTW just sent you email. There are much less painful ways to accomplish this.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: per 'Category' Dual or Wholesale Pricing

    Quote Originally Posted by swguy View Post
    a) create groups
    - Admin-Customers-Group Pricing, then do an Insert
    b) add a customer to a group
    - Admin-Customers-Customer-Edit then at the bottom, set pricing group.

    BTW just sent you email. There are much less painful ways to accomplish this.
    Thanks Scott - I haven't seen your email yet ?

    cheers,
    Mike

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

    Default Re: per 'Category' Dual or Wholesale Pricing

    Found the email

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How remove Dual Pricing - Wholesale Pricing ?
    By dmagic in forum General Questions
    Replies: 5
    Last Post: 20 Nov 2013, 08:20 AM
  2. 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
  3. Help. installed Dual Pricing - Wholesale Pricing
    By lcarlo1507 in forum Basic Configuration
    Replies: 3
    Last Post: 20 Nov 2010, 11:06 PM
  4. 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
  5. 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

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