Zen Cart Logo

DUAL Pricing v2

Views: 363,317

Results 341 to 360 of 1,504
9 Oct 2008, 4:32 AM
#341
madfastride avatar

madfastride

Zen Follower

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

DUAL Pricing v2

ryanb4614:

Well I haven't added that file, and what happens is.... the price will change but it just won't say retail and whole sale. the price just shows at the wholesale price.... checkout and everything works so i assume it is safe to leave it at that.

True Ryan, sorry I should have been more specific. The tpl_product_display.php file will not change any functionality in the Dual Pricing module. It will not display the way it was intended without the change. The module is supposed to display a retail price to retail customers and a retail and whole sale price to whole sale customers. But if you are happy with the functionality by all means keep the module as it is. Cheers,

9 Oct 2008, 8:25 AM
#342
gary777 avatar

gary777

New Zenner

Join Date:
Oct 2008
Location:
Midwest USA
Posts:
71
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi Madfastride,

I must not have been very clear in my post, I understood exactly why you did what you did, it was weezee's post and the double "retail price" listing in her code that threw me off, it should have worked.

I hadn't taken a good look at the code at that point (as I mentioned) but was working on a similar task (that's how I found weezee's post) and saw that she hadn't received a response so tried to help as best I could. Your reply cleared everything up for me and hopefully weezee too.

Thanks again,

Gary777

9 Oct 2008, 6:22 PM
#343
setter avatar

setter

New Zenner

Join Date:
Aug 2007
Posts:
16
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi Everyone,

This mod is just what we're looking for and is working like a dream.

Could anyone tell me or help point me in the right direction so it will show the percentage diffrence in the two displayed prices?

So it would display like:

Retail Price: £xx.xx
Wholesale Price: £xx.xx
You Save: xx%

Many many thanks in advance.

10 Oct 2008, 4:26 AM
#344
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

setter:

Retail Price: £xx.xx
Wholesale Price: £xx.xx
You Save: xx%

Setter,
I'm glad you like the module. I'd like to add this to a release I'm working on. Along with a few other features, and customizations. But it keeps getting pushed back. You could rename a few variables and do the calculations in the tpl_display_product.php file. If you don't want to mess with it or nobody else has the code <wink>a little donation is going a long way with progressing this release and getting an early copy of the feature you donated for. </wink> PM me if you'd like.

10 Oct 2008, 4:33 AM
#345
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

Gary777:

Hi Madfastride,

I must not have been very clear in my post, I understood exactly why you did what you did, it was weezee's post and the double "retail price" listing in her code that threw me off, it should have worked.

Gary,

Thanks for pointing me in the right direction there, I did not see it right away and might never have. I understood that you had found the answer and were just helping me out. The second post was just trying to clarify, and over explain for anyone else finding the same problem as I'm a firm believer in that for every person who asks a question here there are five more (well four now that you revealed yourself) with the same problem. It will probably also cause me to change the read me file a bit.

17 Oct 2008, 12:46 AM
#346
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: DUAL Pricing v2

Mad,
How would I write the if statement to add $5.00 to my shipping cost??

My retail site has a flat rate of $5.00, but I charge my wholesale customers $10.00 for shipping!!!

Thanks in advance... :)

17 Oct 2008, 4:50 AM
#347
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

haredo:

Mad,
How would I write the if statement to add $5.00 to my shipping cost??

My retail site has a flat rate of $5.00, but I charge my wholesale customers $10.00 for shipping!!!

I don't really know the inner workings of the shipping cost calculations off the top of my head. And at the moment I am fortunate enough to be one of those with too much work :) So I can't really tell you where or exactly what to use. The following is the code you place anywhere to access WS only functions. This will be a good start to your project. Cheers,

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->  
19 Oct 2008, 4:28 AM
#348
elle_fresco avatar

elle_fresco

New Zenner

Join Date:
Apr 2008
Location:
Ohio
Posts:
22
Plugin Contributions:
0

Re: DUAL Pricing v2

OK I just encountered something very weird ... my wholesale pricing has stopped taking entries .. is there a ceiling on how many products a store can have as far as wholesale pricing goes?

I can not change any current prices .. it will not change and if I insert a new product, it will take it and the retail price .. but wholesale now comes up 0

Any idea's????

I just checked my product count and it is 2915

20 Oct 2008, 5:03 AM
#349
craftzombie avatar

craftzombie

Zen Follower

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

Re: DUAL Pricing v2

Elle Fresco:

OK I just encountered something very weird ... my wholesale pricing has stopped taking entries .. is there a ceiling on how many products a store can have as far as wholesale pricing goes?

I just checked my product count and it is 2915

I have 3310 products and wholesale pricing is still working great for me.

20 Oct 2008, 6:07 PM
#350
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

Elle Fresco:

I can not change any current prices .. it will not change and if I insert a new product, it will take it and the retail price .. but wholesale now comes up 0
Sorry to hear about this. I assume you mean that you can type into the WS field but once you update the product the WS price is not updated and a default of '0' is shown.

Have you made any changes to your admin files? Is there another module you used recently that would write over or modify the admin files, update_product.php or collect_info.php files? I would make sure that these two files contain all the needed Dual Pricing elements.

Cheers,

27 Oct 2008, 8:05 AM
#351
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: DUAL Pricing v2

Hey guys,

Just installed your module, which was a simple process.

I found however that I get this error when editing a product:

Warning: Missing argument 1 for FCKeditor::__construct(), called in htdocs\admin\includes\modules\product\collect_info.php on line 413 and defined in htdocs\admin\includes\fckeditor_php5.php on line 42

Obviously it's caused a conflict between FCKeditor and dual pricing. I searched this thread and there seems to be nothing on it.

Ta.

27 Oct 2008, 8:14 AM
#352
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: DUAL Pricing v2

Edit: It's ok sorry, I found the solution.

  1. Open up admin/includes/modules/product/collect_info.php and if you have the FCKeditor install files at hand, open the same file from those folders too.

  2. Look at lines 402 - 423 (pretty much <tr> to </tr>) and copy the text from the fckeditor file to the current file.

  3. Should be sorted!

There was already FCKeditor code there, but I assume the Dual Pricing creators haven't updated the code according to FCK's latest version.

27 Oct 2008, 8:42 AM
#353
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi again! 3rd post in like an hour.

My problem with FCKeditor was sorted, but now I get one with easypopulate :(:

Fatal error: Call to a member function query() on a non-object in htdocs\admin\includes\functions\extra_functions\easypopulate_functions.php on line 421

Which has only started appearing after installing this module.

Your help would be great.

Thanks!

27 Oct 2008, 5:08 PM
#354
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

thomasharding:

My problem with FCKeditor was sorted, but now I get one with easypopulate :(
Thanks!

There is a new file for easy populate included in the packaging for this file. i know several others are using the two together and it should work.

As far as avoiding these problems in the first place I'd look into using WinMerge to merge files that are edited by modules so as to avoid writing over important code from one with another.

Cheers,

27 Oct 2008, 5:32 PM
#355
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

Via, PM

Everything works fine after i installed. But I have an enquiry that is when WS customer logged in, can they view the Wholesale Price only instead of showing both Retail and Wholesale price?

There are two different options.

  1. If you still want the labeling or the change in labeling (ie "Retail Price" or "Whole Sale Price" depending on customers login level). note out the modified parts of tpl_product_info_display.php between the two notes on lines 70-76.

  2. If you don't care about the labeling and just want the change in price. Just don't upload the tpl_product_info_display.php file. The price will change without any more issue.

Cheers,

3 Nov 2008, 12:08 AM
#356
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

Hello everybody,

I just uploaded V1.5 this is a simple upgrade but is in response to trying to decrease server load on a site. This will cut down significantly on the amount of Database queries that take place while a logged in customer browses a site using this module. I'd recommend upgrading to this to increase overall site performance. Next look for "send email" compatibility to all or different levels of WS customers.

Cheers,

3 Nov 2008, 3:19 PM
#357
ligrex avatar

ligrex

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Re: DUAL Pricing v2

I think that this mod is great, but maybe i'm not great enough for it.
I've installed it, i can see the right prices (retail and wholesale) in the catalogue but when I add the product to my cart, it ever shows the retail price, even if i'm a wholesaler.
Can anybody help me, please?
thank you

Ligrex

P.S.
I'sorry for my bad english, I hope you can understand me!!!

4 Nov 2008, 5:26 AM
#358
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

ligrex:

I've installed it, i can see the right prices (retail and wholesale) in the catalogue but when I add the product to my cart, it ever shows the retail price, even if i'm a wholesaler.

Ligrex, What version of ZC are you running? What version of the module are you running? Do you have any other modules that affect the shopping cart pages?

Cheers,

7 Nov 2008, 9:19 AM
#359
ligrex avatar

ligrex

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Re: DUAL Pricing v2

Thank you for your attention.
I use
Zen Cart 1.3.8a
dual_pricing_1.5
and... i really can't understand... but at the moment it seems to work great...
I think that the problem was with the session variables....
I shut down the browser, restart the pc... and the day after it started to work...

Thank you so much the same...
And best regards for your job!!!

(i'm afraid my english is getting worse....:oops:)

:smile:
By,
ligrex

8 Nov 2008, 5:40 PM
#360
madfastride avatar

madfastride

Zen Follower

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

Re: DUAL Pricing v2

I'm glad you got everything working out... Mystery problems are always best when easily solved, with mystery solutions.

Cheers,

P.S. don't worry about the English, if I cared I wouldn't be excited to work in a global community. And I'm sure I'm far worse at your native language.