Zen Cart Logo

DUAL Pricing v2

Views: 363,312

Results 241 to 260 of 1,504
27 Jun 2008, 7:29 PM
#241
slowawake avatar

slowawake

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

DUAL Pricing v2

i don't think there are overrides for the admin section at all.

i've installed a whole lot of mods and custom code throughout my site, and i'm not looking forward to future upgrades, but with a decent folder/file comparison app you can at least go back and find everything you changed in the previous version. just a thought.

27 Jun 2008, 7:41 PM
#242
tamara avatar

tamara

New Zenner

Join Date:
Jun 2008
Location:
Waupun, Wisconsin
Posts:
3
Plugin Contributions:
0

Re: DUAL Pricing v2

Thanks, I now remember reading about that. Appreciate the response!

Tamara

28 Jun 2008, 4:51 AM
#243
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

Tamara:

The ReadMe.txt states "Making these changes WILL make upgrading your store to new versions harder."
Tamara, All modifications you make to the base Zen-Cart code will make upgrading harder as when you uprade you can't really just overwrite the old versions files with the new ones as you have customized the file. SlowAwake, is right. The best thing to do when upgrading and when adding more than one module that affect the same file is to use file comparing software. I recomend WinMerge which is free and easy to use.

Tamara:

Can I install this mod taking advantage of the override system as with customization files?

slowawake:

i don't think there are overrides for the admin section at all.

I would just use the file comparison software. I agreed with SlowAwake but just did a little test and it seems like there might be overrides for the admin section. I would say go ahead if you want.

Cheers,

28 Jun 2008, 12:58 PM
#244
tamara avatar

tamara

New Zenner

Join Date:
Jun 2008
Location:
Waupun, Wisconsin
Posts:
3
Plugin Contributions:
0

Re: DUAL Pricing v2

madfastride:

...The best thing to do when upgrading and when adding more than one module that affect the same file is to use file comparing software...

...I agreed with SlowAwake but just did a little test and it seems like there might be overrides for the admin section...

I suppose it couldn't hurt to try. I have solid backups of my site and database. I guess the worst that could happen is Zen Cart slaps me with a big :censored:. I'll do some more research on the admin/override issue and then give it a go. Who knows, maybe I'll get lucky.

29 Jun 2008, 2:19 AM
#245
trac_nez avatar

trac_nez

New Zenner

Join Date:
Jun 2008
Posts:
20
Plugin Contributions:
0

Re: DUAL Pricing v2

I've installed the Version: 1.3.2 on Zen Cart™ Version: v1.3.8. For the wholesale price I put 12.99-10.99-0-7.99, then assigned my account to level 4, but when I go to the site and log-in still I see the regular price which is 14.99, even though I am suppose to see 7.99. what is it that I am doing wrong?

Just a side note, is there anything else I have to do from the admin section besides putting the wholesale price and assigning a wholesale level to the user?

thank you.

29 Jun 2008, 3:45 PM
#246
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

trac_nez:

I've installed the Version: 1.3.2 on Zen Cart™ Version: v1.3.8. For the wholesale price I put 12.99-10.99-0-7.99, then assigned my account to level 4, but when I go to the site and log-in still I see the regular price which is 14.99, even though I am suppose to see 7.99. what is it that I am doing wrong?
Please read this post as it might help you out. Also try using '0.00' instead of '0' I'd be surprised if this is what's breaking, but if it is I'll fix it in a future release.
trac_nez:

Just a side note, is there anything else I have to do from the admin section besides putting the wholesale price and assigning a wholesale level to the user?
No there is nothing else you need to do from the admin section. If your problem persists please give a few more details. Such as when you go to catalog > categories/products do you see the whole sale prices along with the retail price?

29 Jun 2008, 5:17 PM
#247
trac_nez avatar

trac_nez

New Zenner

Join Date:
Jun 2008
Posts:
20
Plugin Contributions:
0

Re: DUAL Pricing v2

madfastride:

Please read this post as it might help you out. Also try using '0.00' instead of '0' I'd be surprised if this is what's breaking, but if it is I'll fix it in a future release.

No there is nothing else you need to do from the admin section. If your problem persists please give a few more details. Such as when you go to catalog > categories/products do you see the whole sale prices along with the retail price?

still not working... when I go to catalog > categories/products I do see the wholesale prices with the retail.

On thing I don't get is that what it said on the readme.txt file,

"you can see that you will have 4 levels of wholesale price available the 3rd level is 0 so customers set to level 3 will get the level 1 price.
In the attributes, you need to use comma separation eg

50.00,30.00,0.00,25,00

Attributes can be set in the same way."

What does this means?

Thank You.

30 Jun 2008, 1:28 AM
#248
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

trac_nez:

"you can see that you will have 4 levels of wholesale price available the 3rd level is 0 so customers set to level 3 will get the level 1 price.
In the attributes, you need to use comma separation eg

50.00,30.00,0.00,25,00

Attributes can be set in the same way."

What does this means?

Thank You.
It means that if you set one of the WS values to 0, instead of giving away your product the price will default back to level one.
trac_nez:

still not working... when I go to catalog > categories/products I do see the wholesale prices with the retail.
This means that the prices are being entered correctly into your database. It's just not displaying correctly. Did you upload the includes/templates/YOUR TEMPLATE/tpl-product_display.php into the proper folder? Meaning did you change the "YOUR TEMPLATE" into the current template you are using.

30 Jun 2008, 2:14 AM
#249
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

I received this via PM and thought I would share the solution just in case.

trudesign:

I am wondering if I install it I will be able to have most customers see no pricing, and people that login that I give wholesale access to, can shop with wholesale pricing.

so everyone would see no pricing whatsoever unless I give them wholesale access.

note out lines 139, 143 of includes/functions/functions_prices.php. They are identical and look like the following.

$products_price = $product_check->fields['products_price'];
```Furthermore note the following lines (70-76) in includes/templates/YOUR TEMPLATE/tpl_product_info_display.php

```php
if ($_SESSION['customer_id']) {
  $customers_id = $_SESSION['customer_id'];
    $customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
 if ($customer_check->fields['customers_whole'] == "1") { 
     echo '<span>' . ' Retail Price: '.$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';
 }
}
```This should work. I haven't tested it.  Please let everyone know if it does.  It will not ever show the Retail Price but you will need to add some arbitrary number in there.  There is a way to show a MSRP or such price in the Retail prices place and only show that to WS customers but it will get a lot more complicated.  

Cheers,
11 Jul 2008, 9:35 PM
#250
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: DUAL Pricing v2

This is the thread that the Wholesale pricing mod says to go to for support, so please don't stomp on my fingers!

I own Easy Populate Pro, which is installed in a version of Zencart 1.38a. I just installed the wholesale pricing mod, and now Easy Populate is "burping". I get the following error when I tryt o open it in Admin:

Fatal error: Call to a member function on a non-object in /home/dbgoldsm/public_html/store/admin/includes/functions/extra_functions/easypopulate_functions.php on line 594

Any help for this clueless php ignorant soul appreciated!

thank you,

betty

13 Jul 2008, 12:01 AM
#251
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

Betty,

Sorry no finger stomping here! This sounds like it could be a little bit more complicated of a problem... What version of ZC are you running? What version of PHP (you might not know this)? Have you made any other changes? What files were changed that both mods effect? Can you post the code in the file that the error is referring to? Maybe a few lines before and after also.

Thanks,

13 Jul 2008, 2:10 PM
#252
vambo avatar

vambo

New Zenner

Join Date:
Jun 2008
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi.
I have installed this mod, but have 2 questions.

  1. I only sell CD's and set the product type as Music, but when editing a product there is no where to enter the wholesale prices (although it is working in the General product type). Will this work with Music product types or will I have to set my products to General?

  2. I use zones to set the postage rates, is it possible to have different postage rates for the wholesalers?

Many thanks

13 Jul 2008, 3:20 PM
#253
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: DUAL Pricing v2

madfastride:

Betty,

Sorry no finger stomping here! This sounds like it could be a little bit more complicated of a problem... What version of ZC are you running? What version of PHP (you might not know this)? Have you made any other changes? What files were changed that both mods effect? Can you post the code in the file that the error is referring to? Maybe a few lines before and after also.

Thanks,

Zencart is version 1.38a, Php is version 4.4.8

Here are lines 576-616 of the file:

function ep_chmod_check($tempdir)
{
  global $epMsgStack, $config_fail;
  if (!file_exists($tempdir . ".") || !ep_is_writable($tempdir))
  {
    @chmod($tempdir, 0700);
    if (!ep_is_writable($tempdir))
    {
      @chmod($tempdir, 0777);
      if (!ep_is_writable($tempdir))
      {
        if (strstr(php_uname(), 'Windows'))
        {
          $epMsgStack->add(EASYPOPULATE_MSGSTACK_TEMP_FOLDER_MISSING, 'warning');
          $config_fail[] = 'EASYPOPULATE_FAIL_CONFIG_TEMPDIR_MISSING_WIN';
        }
        else
        {
          $epMsgStack->add(EASYPOPULATE_MSGSTACK_TEMP_FOLDER_MISSING, 'warning');
          $config_fail[] = 'EASYPOPULATE_FAIL_CONFIG_TEMPDIR_MISSING';
        }
        $chmod_check = false;
      }
      else
      {
        $epMsgStack->add(EASYPOPULATE_MSGSTACK_TEMP_FOLDER_PERMISSIONS_SUCCESS, 'success');
        $chmod_check = true;
      }
    }
    else
    {
      $epMsgStack->add(EASYPOPULATE_MSGSTACK_TEMP_FOLDER_PERMISSIONS_SUCCESS, 'success');
      $chmod_check = true;
    }
  }
  else
  {
    $chmod_check = true;
  }
  return $chmod_check;
}

I'm actually thinking of removing easy populate since this particular store doesn't need it. It's just a part of the install package I use. Problem is I don't know how to remove it from the db, unless it's just a matter of getting rid of some tables.
I do have other mods installed as well that I got an error message from, one being fckeditor v2.5. So I turned it off. I have image handler, quick updates, google base, google sitemaps, google analytics, ty package tracker, recently viewed, and I can't remember right now if there are any more.

thank you,
betty

15 Jul 2008, 4:54 PM
#254
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

Betty,

Sorry it looks like I can't really help you on this forum. I would try a google search of "Call to a member function on a non-object in site:zen-cart.com" to see some of the other threads involving this problem. I know that 1.3.8 was optimized for php 5.2. I don't know if your problems could be stemming from this. Overall though I haven't seen this happen before. I'm running this mod with most all of the packages you listed with no complications. So I'm guessing the problem lies elsewhere. Again sorry. Further more judging by the line that is giving the error it looks like easy populate is trying to tell you that your temp directory is missing...

15 Jul 2008, 5:06 PM
#255
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

vambo:

  1. I only sell CD's and set the product type as Music, but when editing a product there is no where to enter the wholesale prices (although it is working in the General product type). Will this work with Music product types or will I have to set my products to General?
    The mod does only work with General... sounds like it would be easy to switch everything over. You could even use a SQL command to do it all at once if you're familiar with that.
    vambo:

  2. I use zones to set the postage rates, is it possible to have different postage rates for the wholesalers?
    I'm sure you can get Zencart to do this. I'm not familiar enough with the back end working of zones to guide you through it without doing the work myself but using the code that tells ZenCart to do something if a customer is whole sale you can pretty much do anything with some PHP knowledge.

if ($_SESSION['customer_id']) {
  $customers_id = $_SESSION['customer_id'];
    $customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
 if ($customer_check->fields['customers_whole'] != "0") { 
    
//your code


 }
} 
//note*** depending on where you use this you might have to change $db-> to $this-> 
15 Jul 2008, 5:21 PM
#256
vambo avatar

vambo

New Zenner

Join Date:
Jun 2008
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

madfastride:

The mod does only work with General... sounds like it would be easy to switch everything over. You could even use a SQL command to do it all at once if you're familiar with that.

Thank you for the quick reply. I really would love to keep the products as Music for the Artist, Record Company, and Genre links, but I guess it will have to be General if I want the wholesale prices. :(

madfastride:

I'm sure you can get Zencart to do this. I'm not familiar enough with the back end working of zones to guide you through it without doing the work myself but using the code that tells ZenCart to do something if a customer is whole sale you can pretty much do anything with some PHP knowledge.

if ($_SESSION['customer_id']) {
$customers_id = $_SESSION['customer_id'];
$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
if ($customer_check->fields['customers_whole'] != "0") {

//your code

}
}
//note*** depending on where you use this you might have to change $db-> to $this->


I don't know **any** PHP (must have been off that day :blush:) so this could be an uphill struggle, time to do some research. What file is the above code from?

Thanks
16 Jul 2008, 4:48 AM
#257
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: DUAL Pricing v2

vambo:

Thank you for the quick reply. I really would love to keep the products as Music for the Artist, Record Company, and Genre links, but I guess it will have to be General if I want the wholesale prices. :(

I didn't originally design this so I don't know why he made it only for general products. I can look into this and try and do it for the other categories. You will have to give me a bit of time on this though if you want to wait for it...

vambo:

What file is the above code from?It can be found in pretty much any of the front end files. Good luck

16 Jul 2008, 6:11 PM
#258
vambo avatar

vambo

New Zenner

Join Date:
Jun 2008
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

madfastride:

I didn't originally design this so I don't know why he made it only for general products. I can look into this and try and do it for the other categories. You will have to give me a bit of time on this though if you want to wait for it...

madfastride, WOW you are too kind.
I'd sure appreciate it if you could set it up for Music products, there must also be others who could use this mod too if it were enabled for Music. :clap:

18 Jul 2008, 3:38 AM
#259
dermanomann avatar

dermanomann

New Zenner

Join Date:
Feb 2006
Location:
New Zealand
Posts:
146
Plugin Contributions:
1

Re: DUAL Pricing v2

Hi there,

Just in case anyone is interested, as of 0.9.2 (coming in the next few weeks), ZenMagick is going to support Dual Pricing via a new plugin.

Initially only product prices will be supported, as the rewrite of attribute handling is not yet finished.

The reason for this sudden implementation is that a client needs this, so it had to be done.

I'd like to add that this mod, in combination with ZenMagicks site switch plugin can make a single installation work nicely for both retail and wholesale (you can even have separate users for each domain).

Cheers, mano

22 Jul 2008, 1:06 AM
#260
embepo avatar

embepo

New Zenner

Join Date:
Jul 2008
Posts:
3
Plugin Contributions:
0

Re: DUAL Pricing v2

I tried it but its all the same... Thanks man for ur help but I guess this is really complicated and writing a script for this problem is a really big goal. I dont know why but english version runs quite well but slovak version show only prices and no description and head titles... Please if you know why its not working, tell me how can I transport database from oscommerce shop to zencart shop.

Thanks
embepo