Re: DUAL Pricing version 2
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.
Re: DUAL Pricing version 2
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!
Re: DUAL Pricing version 2
Quote:
Originally Posted by
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,
Re: DUAL Pricing version 2
Via, PM
Quote:
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,
Re: DUAL Pricing version 2
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,
Re: DUAL Pricing version 2
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!!!
Re: DUAL Pricing version 2
Quote:
Originally Posted by
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,
Re: DUAL Pricing version 2
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
Re: DUAL Pricing version 2
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.
Re: DUAL Pricing version 2
Hi There:
Thanks a million for this contribution... what a lifesaver.
I was wondering if you can tell me what I might be doing wrong. For some reason, I cannot seem to get the text to change depending on if the person logged in has a wholesale account or not.
I would like it to read "WholeSale Price" or "Retail Price" as it should be doing, but no matter what I do, it always reads Retail Price. I took a look at the code in tpl_product_info_display.php in the templates directory and it should work, but doesn't.
Here is the code from my template file:
PHP Code:
//*********************************************************************************
//***Properly display price labeling when set to Whole sale and when not
//*********************************************************************************
if ($_SESSION['customers_whole'] && $_SESSION['customers_whole'] != '0' ) {
echo '<span id="whole">WholeSale Price: ';
} else {
echo '<span id="retail">Retail Price: ';
}
echo $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_price((int)$_GET['products_id']);
echo '</span>';
//*********************************************************************************
//***END Properly display price labeling when set to Whole sale and when not
//*********************************************************************************
I checked my database and there is an entry for "customers_whole" in the zen_customers table. Originally the file was marked "customer_whole", note the lack of the 's'. So I made the modification here. But it still doesn't work. Perhaps I don't understand how the $SESSION widget works to troubleshoot further.
Can you point me in a place to check?
Thanks,
Ed