Zen Cart Logo

DUAL Pricing v2

Views: 363,323

Results 421 to 440 of 1,504
3 Mar 2009, 5:36 AM
#421
keenskin avatar

keenskin

New Zenner

Join Date:
Nov 2005
Posts:
49
Plugin Contributions:
0

DUAL Pricing v2

I need to display both RETAIL PRICE and WHOLESALE PRICE before login. I followed the instruction below, but no sucess.
Anyone knows? how to achieve this?
thanks

madfastride:

Just walk through every file and anytime you see a note mentioning the code has been changed for dual pricing then remove these "if" statements;

if ($_SESSION['customer_id'])

if ($customer_check->fields['customers_whole'] != "0")
```Also get rid of any functions that may be executed just to gather data for an "if" statement.  Some basic PHP skills or trial and error will be needed in order to remove the right code with the corresponding functions.
> 
> For example... 
> 
> ```php
//***********************************************************************
//***DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************
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") { 
     echo '<span id="retailwhole">' . ' 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 /> ';
 }
}
//***********************************************************************
//***END DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************
```Above (taken from tpl_product_info_display.php, line 67-75) will now look like this...
> 
> ```php
//***********************************************************************
//***DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************
 
     echo '<span id="retailwhole">' . ' 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 /> ';

//***********************************************************************
//***END DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************
```Next you can just edit the tpl_product_info_display.php file in order to change the wording to suit your needs.
6 Mar 2009, 9:27 PM
#422
gezuvor avatar

gezuvor

New Zenner

Join Date:
Apr 2007
Location:
Orange County, CA
Posts:
88
Plugin Contributions:
2

Re: DUAL Pricing v2

Okay, after reading 20 pages of posts I haven't seen an answer to this...

Is it possible for me to include additional discount levels? Some of our products have 6 discount levels below retail. Is it as simple as just increasing the "10-9-8" to "10-9-8-7-6-5"? Ditto for attributes...

Many thanks for a great mod, btw!

7 Mar 2009, 4:00 AM
#423
gezuvor avatar

gezuvor

New Zenner

Join Date:
Apr 2007
Location:
Orange County, CA
Posts:
88
Plugin Contributions:
2

Re: DUAL Pricing v2

Okay, I answered my own question. Adding additional levels will work just like the original ones does. Excellent!

However, another problem has appeared. In my /admin/categories.php, the prices shown are all incorrect by a wide margin higher or lower. The price on the public site and the /admin/product.php are fine, so I guess I'll need to dig a bit in the categories page...

20 Mar 2009, 7:25 AM
#424
adelrami avatar

adelrami

New Zenner

Join Date:
Mar 2009
Location:
USA
Posts:
15
Plugin Contributions:
0

Re: DUAL Pricing v2

Hello all
I have installed the Dual peicing mod V 1.5 for my zencart 1.3.8 but i didnt get that field "Whole sale price" in products
appreciate your help:cry:

20 Mar 2009, 3:40 PM
#425
template_cascade avatar

template_cascade

New Zenner

Join Date:
Jan 2009
Posts:
40
Plugin Contributions:
0

Re: DUAL Pricing v2

adelrami,

If you not seeing it in the admin panel I'd double check that all your files uploaded properly. Most issues like this are due to an FTP error. I'd also make sure your DB is updated properly.

20 Mar 2009, 8:38 PM
#426
adelrami avatar

adelrami

New Zenner

Join Date:
Mar 2009
Location:
USA
Posts:
15
Plugin Contributions:
0

Re: DUAL Pricing v2

Well, I just re uploaded the files again, file, file. then it worked :)
Super add-on

27 Mar 2009, 9:33 PM
#427
sagiordano avatar

sagiordano

New Zenner

Join Date:
Nov 2007
Posts:
13
Plugin Contributions:
0

Re: DUAL Pricing v2

Hello,

I tried reading through this whole thread for this answer but there are many pages so forgive me if this was answered somewhere else but is there a way to exclude the wholesale customers from the regular sales/discounts that are applied to the products and only allow retail customers to receive those discounts?

1 Apr 2009, 12:18 AM
#428
template_cascade avatar

template_cascade

New Zenner

Join Date:
Jan 2009
Posts:
40
Plugin Contributions:
0

Re: DUAL Pricing v2

sagiordano:

Hello,

I tried reading through this whole thread for this answer but there are many pages so forgive me if this was answered somewhere else but is there a way to exclude the wholesale customers from the regular sales/discounts that are applied to the products and only allow retail customers to receive those discounts?

There is currently no functionality built into Dual Pricing for this. Seems like building in quantity discounts and specials into the mod would be a good use of time...

1 Apr 2009, 10:44 PM
#429
msatkn avatar

msatkn

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi,
I have installed Dual Pricing Mod 1.5 on my Zencart 1.3.8a by following the instructions in the readme.txt. I now get series of lines from the shopping_cart.php at the top of the admin page (see attached) and similarly on the main page. I can not login into admin also. Despite searching every page on this thread I could not find anyone having the same problem. Does anyone have any idea why this is happening? My url is https://www.celticsilk.com.

Thanks.

1 Apr 2009, 11:03 PM
#430
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: DUAL Pricing v2

msatkn:

Hi,
I have installed Dual Pricing Mod 1.5 on my Zencart 1.3.8a by following the instructions in the readme.txt. I now get series of lines from the shopping_cart.php at the top of the admin page (see attached) and similarly on the main page. I can not login into admin also. Despite searching every page on this thread I could not find anyone having the same problem. Does anyone have any idea why this is happening? My url is https://www.celticsilk.com.

Thanks.

The only thing you can do when this kind of thing happens is to just restore your files from the back-up you hopefully made before installing the mod. Then try re-installing the mod. It could be an error you made during upload or an error that your ftp program made. If you have other mods installed, many of them use the same files. You might accidentally override files that other mods are using, thus causing all kinds of fun little errors.

1 Apr 2009, 11:24 PM
#431
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: DUAL Pricing v2

msatkn:

Hi,
I have installed Dual Pricing Mod 1.5 on my Zencart 1.3.8a by following the instructions in the readme.txt. I now get series of lines from the shopping_cart.php at the top of the admin page (see attached) and similarly on the main page. I can not login into admin also. Despite searching every page on this thread I could not find anyone having the same problem. Does anyone have any idea why this is happening? My url is https://www.celticsilk.com.

Thanks.
This will happen will one or more files fail during an FTP upload. Upload the files again.

FTP uploads can fail for many reasons and usually, re-uploading the files will correct the problem.

2 Apr 2009, 2:10 PM
#432
msatkn avatar

msatkn

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: DUAL Pricing v2

Thank you Craftzombie and Website Rob for your help and reply. Uploding the files again solved the problem. I thought I lost it all for while. Next I shall have go installing the minimum order mod. Thanks again.

4 Apr 2009, 11:11 PM
#433
msatkn avatar

msatkn

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi,
I found that Dual Pricing is a very neat solution for retail and wholesale in one store. However without a complemantary shipping module or a method Dual Pricing module has a serious shortcoming. In this forum there are no solutions offered to define different shipping rates for wholesale and retail customers.

Is there anyone using the Dual Pricing mod has found a solution to this problem? Any help or suggestion would be much appreciated.

8 Apr 2009, 7:21 AM
#434
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

Re: DUAL Pricing v2

Wanted to check and see how it was going to add the quanity discounts to the duel pricing mod?

9 Apr 2009, 4:35 AM
#435
template_cascade avatar

template_cascade

New Zenner

Join Date:
Jan 2009
Posts:
40
Plugin Contributions:
0

Re: DUAL Pricing v2

@d1rage5: Going slow for updates on the mod. Plus I'm delaying things hoping ZC2.0 will come out and I can avoid some re-writes...

@msatkn Yes, everyone has a different option they'd like to separate out for their whole sale customers. Instructions on how to run parallel stores sharing one product database and a log-in page would be the only way to make everyone happy :) and for now, that's my secret.

11 Apr 2009, 10:22 AM
#436
msatkn avatar

msatkn

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi,
I found an ad hoc solution to implement different shipping charges for retail and wholesale customers. The solution is to create a shipping module for each customer group and adding a few lines of codes in each shipping module to disclose the charges applicable to the customer's status.

The solution is in this thread http://www.zen-cart.com/forum/showpost.php?p=380422&postcount=7.

12 Apr 2009, 4:11 AM
#437
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

Re: DUAL Pricing v2

It would be nice to have this mod with the changes before version 2 comes out being that could be next year and then it could be a while before its ready for a live site with all the bugs that would be worked out.

13 Apr 2009, 4:17 AM
#438
template_cascade avatar

template_cascade

New Zenner

Join Date:
Jan 2009
Posts:
40
Plugin Contributions:
0

Re: DUAL Pricing v2

@msatkn Cool, thanks for coming back here and posting a link to your solution :clap:

@d1rage5 Completely Agree, but as it stands I'm barely keeping my head above water. I'll see if I can put anything else out there. Just don't hold your breath... :blink:

13 Apr 2009, 7:46 PM
#439
pts3227 avatar

pts3227

New Zenner

Join Date:
Apr 2009
Posts:
56
Plugin Contributions:
0

Re: DUAL Pricing v2

Ok, I know this has to have already been answered somewhere, but for the life of me I can't find it. I have zc1.38 and dual pricing1.5 I have read over the read me file and finally figured out the sql part I think, then it says to copy the files over then go to admin... copy the files where??? I know I am probably crazy, but I can't figure it out and I'm going crazy! :frusty::frusty::frusty:

13 Apr 2009, 8:17 PM
#440
d1rage5 avatar

d1rage5

Zen Follower

Join Date:
Jan 2008
Location:
Roswell, Ga USA
Posts:
144
Plugin Contributions:
0

Re: DUAL Pricing v2

There are several files that you may need to merage together so make sure you have backed up the orginal files (like customers.php) use a program like winmerge to view the orginal and the new one.

FTP all files to your site like in the admin section ftp to the corosponding area.

under your admin directory (or what ever you renames the admin area) has three files then you have two directories uder admin (images and includes) do the same copy files up to the correct directory.

You will need to do the same to the includes directory (this is different then the includes folder under the admin folder.

That should be all you need to do.