It helps to know that it can be done but I don't know the first thing about coding. I can copy and paste but beyond that I'm lost!
Printable View
It helps to know that it can be done but I don't know the first thing about coding. I can copy and paste but beyond that I'm lost!
Hello,
I have been trying to use this module together with the Canadapost shipping module but I can't seem to integrate the 2 together.
Once the dual pricing is installed the weight, size fields for the products disappear which is required for the proper shipping calculation for Canadapost.
I am just testing this out since I burned my finger with it once, i copied the store directory and the database, and playing with the copy. I upgraded the store to 1.8a and that seem to work ok, but as I mentioned above, these do not seem to like each other.
I looked at the shopping_cart.php from before and after the installation with winmerge and there are so many differences only in this file that you gotta be a programmer to properly debug that after a merge... and how about the rest of the files...
I am willing to make a paypal donation to somebody who can modify this dual pricing module such to make it work with the canadapost module. I am surprised that nobody has ever encountered this...
Anybody from Canada using these two together successfully? Please please help me.
Thanks,
Oxxy
What about discount prices?
How would you go about showing quanty discount prices?
one more question, I am tring to merge two moded files and i get this error.
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home3/scproduc/public_html/admin***page/customers.php on line 1230
admin***page is not the name for the admin area (changed it for security reasons)
below is the part of the customer.php info. if you can help and need the entire file content PM me.
I have pasted from line 1066 to 1235.
<?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
<td class="dataTableHeadingContent" align="left" valign="top" width="75">
<?php echo (($_GET['list_order']=='gv_balance-asc' or $_GET['list_order']=='gv_balance-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_GV_AMOUNT . '</span>' : TABLE_HEADING_GV_AMOUNT); ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=gv_balance-asc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='gv_balance-asc' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=gv_balance-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='gv_balance-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<?php } ?>
<td class="dataTableHeadingContent" align="center" valign="top">
<?php echo (($_GET['list_order']=='approval-asc' or $_GET['list_order']=='approval-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_AUTHORIZATION_APPROVAL . '</span>' : TABLE_HEADING_AUTHORIZATION_APPROVAL); ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=approval-asc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='approval-asc' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=approval-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='approval-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<td class="dataTableHeadingContent" align="right" valign="top"><?php echo TABLE_HEADING_ACTION; ?> </td>
</tr>
<?php
$search = '';
if (isset($_GET['search']) && zen_not_null($_GET['search'])) {
$keywords = zen_db_input(zen_db_prepare_input($_GET['search']));
$search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%' or c.customers_telephone rlike ':keywords:' or a.entry_company rlike ':keywords:' or a.entry_street_address rlike ':keywords:' or a.entry_city rlike ':keywords:' or a.entry_postcode rlike ':keywords:'";
$search = $db->bindVars($search, ':keywords:', $keywords, 'regexp');
}
$new_fields=', c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral';
$customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created " . $new_fields . ",
cgc.amount
from " . TABLE_CUSTOMERS . " c
left join " . TABLE_CUSTOMERS_INFO . " ci on c.customers_id= ci.customers_info_id
left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . "
left join " . TABLE_COUPON_GV_CUSTOMER . " cgc on c.customers_id = cgc.customer_id " .
$search . " order by $disp_order";
// Split Page
// reset page when page is unknown
if (($_GET['page'] == '' or $_GET['page'] == '1') and $_GET['cID'] != '') {
$check_page = $db->Execute($customers_query_raw);
$check_count=1;
if ($check_page->RecordCount() > MAX_DISPLAY_SEARCH_RESULTS_CUSTOMER) {
while (!$check_page->EOF) {
if ($check_page->fields['customers_id'] == $_GET['cID']) {
break;
}
$check_count++;
$check_page->MoveNext();
}
$_GET['page'] = round((($check_count/MAX_DISPLAY_SEARCH_RESULTS_CUSTOMER)+(fmod_round($check_count,MAX_DISPLAY_SEARCH _RESULTS_CUSTOMER) !=0 ? .5 : 0)),0);
// zen_redirect(zen_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL'));
} else {
$_GET['page'] = 1;
}
}
$customers_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS_CUSTOMER, $customers_query_raw, $customers_query_numrows);
$customers = $db->Execute($customers_query_raw);
while (!$customers->EOF) {
$sql = "select customers_info_date_account_created as date_account_created,
customers_info_date_account_last_modified as date_account_last_modified,
customers_info_date_of_last_logon as date_last_logon,
customers_info_number_of_logons as number_of_logons
from " . TABLE_CUSTOMERS_INFO . "
where customers_info_id = '" . $customers->fields['customers_id'] . "'";
$info = $db->Execute($sql);
// if no record found, create one to keep database in sync
if (!isset($info->fields) || !is_array($info->fields)) {
$insert_sql = "insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created)
values ('" . (int)$customers->fields['customers_id'] . "', '0', now())";
$db->Execute($insert_sql);
$info = $db->Execute($sql);
}
if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $customers->fields['customers_id']))) && !isset($cInfo)) {
$country = $db->Execute("select countries_name
from " . TABLE_COUNTRIES . "
where countries_id = '" . (int)$customers->fields['entry_country_id'] . "'");
$reviews = $db->Execute("select count(*) as number_of_reviews
from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers->fields['customers_id'] . "'");
$customer_info = array_merge($country->fields, $info->fields, $reviews->fields);
$cInfo_array = array_merge($customers->fields, $customer_info);
$cInfo = new objectInfo($cInfo_array);
}
$group_query = $db->Execute("select group_name, group_percentage from " . TABLE_GROUP_PRICING . " where
group_id = '" . $customers->fields['customers_group_pricing'] . "'");
if ($group_query->RecordCount() < 1) {
$group_name_entry = TEXT_NONE;
} else {
$group_name_entry = $group_query->fields['group_name'];
}
if (isset($cInfo) && is_object($cInfo) && ($customers->fields['customers_id'] == $cInfo->customers_id)) {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit', 'NONSSL') . '\'">' . "\n";
} else {
echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID')) . 'cID=' . $customers->fields['customers_id'], 'NONSSL') . '\'">' . "\n";
}
$zc_address_book_count_list = zen_get_customers_address_book($customers->fields['customers_id']);
$zc_address_book_count = $zc_address_book_count_list->RecordCount();
?>
<td class="dataTableContent" align="right"><?php echo $customers->fields['customers_id'] . ($zc_address_book_count == 1 ? TEXT_INFO_ADDRESS_BOOK_COUNT . $zc_address_book_count : '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=list_addresses' . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . TEXT_INFO_ADDRESS_BOOK_COUNT . $zc_address_book_count . '</a>'); ?></td>
<td class="dataTableContent"><?php echo $customers->fields['customers_lastname']; ?></td>
<td class="dataTableContent"><?php echo $customers->fields['customers_firstname']; ?></td>
<td class="dataTableContent"><?php echo $customers->fields['entry_company']; ?></td>
<td class="dataTableContent"><?php echo zen_date_short($info->fields['date_account_created']); ?></td>
<td class="dataTableContent"><?php echo zen_date_short($customers->fields['customers_info_date_of_last_logon']); ?></td>
<td class="dataTableContent"><?php echo $group_name_entry; ?></td>
<?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
<td class="dataTableContent" align="right"><?php echo $currencies->format($customers->fields['amount']); ?></td>
<?php } ?>
<td class="dataTableContent" align="center"><?php echo ($customers->fields['customers_authorization'] == 4 ? zen_image(DIR_WS_IMAGES . 'icon_red_off.gif', IMAGE_ICON_STATUS_OFF) : ($customers->fields['customers_authorization'] == 0 ? '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_green_on.gif', IMAGE_ICON_STATUS_ON) . '</a>' : '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_red_on.gif', IMAGE_ICON_STATUS_OFF) . '</a>')); ?></td>
<td class="dataTableContent" align="right"><?php if (isset($cInfo) && is_object($cInfo) && ($customers->fields['customers_id'] == $cInfo->customers_id)) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID')) . 'cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
</tr>
<?php
$customers->MoveNext();
}
?>
<tr>
<td colspan="5"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php echo $customers_split->display_count($customers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_CUSTOMER, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS); ?></td>
<td class="smallText" align="right"><?php echo $customers_split->display_links($customers_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_CUSTOMER, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], zen_get_all_get_params(array('page', 'info', 'x', 'y', 'cID'))); ?></td>
</tr>
<?php
if (isset($_GET['search']) && zen_not_null($_GET['search'])) {
?>
<tr>
<td align="right" colspan="2"><?php echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a>'; ?></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></td>
<?php
// BOF Set variables for login_as_customer module
$place_order_button = 'includes/languages/english/images/buttons/button_placeorder.gif';
$login_as_customer = 'index.php?main_page=login_as_customer';
if (ENABLE_SSL_CATALOG == 'true') {
$url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
} elseif (ENABLE_SSL_CATALOG == 'false') {
$url = HTTP_SERVER . DIR_WS_CATALOG;
}
$p_url = $url;
$p_url .= $login_as_customer;
//EOF Setf Variables for login_as_customer module
$heading = array();
$contents = array();
switch ($action) {
case 'confirm':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
$contents = array('form' => zen_draw_form('customers', FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm', 'post', '', true));
$contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
if (isset($cInfo->number_of_reviews) && ($cInfo->number_of_reviews) > 0) $contents[] = array('text' => '<br />' . zen_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id, 'NONSSL') . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$customers_orders = $db->Execute("select o.orders_id, o.date_purchased, o.order_total, o.currency, o.currency_value,
You might want to try this module and see how it works for you.
http://www.zen-cart.com/index.php?ma...roducts_id=235
As far as the ')' error, I'd just copy that file out of the dualpricing mod again and upload it and see if that fixes it. The file was working.
*** NOTE TO ALL USERS ***
Also, please don't post that much code. It makes the forum harder to read and isn't useful. If you'd like, either attach the file to the post via the attachment function (the best option in the previous case), or wrap PHP tags around the code so that the forum creates scroll bars instead of displaying the code all at once.
the duel price mode works until i merge the two.
duel pricing and admin login as customer.
the only file common in the two is the customer.php file in the admin section.
Dual Pricing - Easy populate problem.
I am using ZC 1.3.8a, PHP 5.2.5 EP Advanced 3.0.3 and Dual Pricing 1.4.2
I have manually added a wholesale price to an item. When I download the file the column is there but the wsl price is missing?
When I upload, the wsl price does not appear.
Can anyone help - Thanks Steve
Steve,
I'm not sure what you mean by upload and download. But in order for you to see the wholesale price you also need to create a wholesale customer with that level. You will then need to log in as that customer. If you are saying that you are looking at the column in the DB and the wholesale price is not being entered correctly then I'd make sure that your update_product.php file in the admin directory was uploaded properly.
Cheers
Sorry - More details. I am trying to add wholesale prices to my site with easy populate. Customers can see wsl when they log in. I can add the prices manually - but not with EP. Everything is working OK except EP uploading wholesale prices?
By upload - download I meant maybe import - export with EP.
I have compared the files \admin\includes\modules\update_product.php and they are identical.
Thank you for the clarification. I could be wrong with this as I don't support the EP module but I don't believe that it supports the DP module. Other than that it sounds like the DP pricing module is working properly so I'd try your posts on the EP forum. If you find that EP and DP don't work together and you'd like me to work on the EP module to support Dual Pricing please PM me and we'll get it working for you.
Template Cascade:
Doyou think you can get this to work on the quanty discount so that (like its works now) show non whole sales customers gets the standard prices, but like the wholesale customer now sees both retail and wholesale price but the issues i think everyone is now looking for is if you also have a quanty diccount with set prices so that the wholesale customer can or only see the price they will be charged?
using the tools that are out there now dont work for most as they are based on a % and with items being so different in markup. So each item will need to have its own quanty discount set for each product.
I dont have a lot of money to through your way but i am sure a few of us that are looking for thiscould do something.
yes.
if you goto scproductsdesign.com and look under signs then corplas you can see the options being used.
i do have the wholesale pricing working.
I see how dual pricing working with quantity discounts would be extremely helpful. In the interest of not inflating hopes, I need to note I'm really busy right now. It would be amazing if someone could take a bit of development time on this issue. If not I'd like all interested parties to PM me on this to work out details.
Even better would be if someone with an amazing knowledge of CSV / MySQL imports would trade some advice for work on this. :clap:
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!
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...
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:
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.
Well, I just re uploaded the files again, file, file. then it worked :)
Super add-on
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?
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 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.
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.
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.
Wanted to check and see how it was going to add the quanity discounts to the duel pricing mod?
@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.
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/showpo...22&postcount=7.
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.
@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:
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:
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.
please correct me if I am mistaken, if I copy those files to my admin, they will replace the existing folders with the same names, and for example, everything under the existing adim folder (which is a lot of information) will be erased? When I ope the dual pricing I have an admin folder and includes, then 4 readme files... am I looking at the right thing? Where exactly do these folders go? Do I rename them so they don't erase the like-named folders? :frusty:
You are looking in the right place... The files in the admin and includes folders are files that are included in the core code of Zen Cart 1.3.8a. You need to update the files in ZC with these new files (you want the files to be overwritten but not the entire directory, there are many other much needed files in these directories). If you have not installed any other modules before this one you can safely over write the files directly.
There is one folder you will need to change the name on. It is includes/templates/YOUR_TEMPlATE/ you need to change the "your_template" to the name of your template.
All this is included in the readme.txt files. I'd read those very carefully.
Ok, tell me if I am understanding you, because the readme file I have is very vague, it says copy the files and then go to admin in zencart... so for example, would I go to the admin folder in the dual pricing folder, and copy the 3 php files (attributes_controller, customers and easypopulate) only and then go to the admin folder of my zencart and just paste them in the main admin folder with all the rest of the existing php files. Then do the same for each folder, copy the php files from each folder and paste them to the corresponding folder in my zencart folder??
Or, do i copy the entire admin folder and paste it in place of the existing admin folder inside my zencart folder?? And the same for the includes folder?? :shocking:
I'm sorry but I have never done ANY of this stuff before, so it's a guessing game for me right now. Thank you for all your help.
OK, here's what I did, and it seemed to work, so hope I didn't forget or mess up anything... I copied the admin folder from dual pricing and pasted it in place of the admin forlder in zencart, having it only add the new files and it kept all the old info too, same with the includes folder, it copied all the new stuff for me but left all the old stuff... now im uploading it... we'll see i guess...
But what did you mean by the templating?
theres a section for creating your on custom code this is where this stuff goes.
you may need to read the section on templateing to get a understanding of the this as its a little harder to just spout it out i will see if i can find that info for you but its somewhere under the faq section.
i am using the night_fall template that i modified a little to make it fit our store better... all my folder are name OurTemplate (I know, generic, but easy!) so there was something I was supposed to do to all of these folders... i followed the overide chart and set up all the custom folders, but was some of the pricing stuff supposed to go in there??? aaauuuggghhh I am so confused... i am still waiting for the upload... their server here at work slows the connection, it's crazy! :frusty::frusty::frusty:
i think the only section you have to look at is in the includes, templates, template_default, templates. the two files in this directory would be copied to your custom template, but really only if you are going to do a lot of upgrading to a new version.
But being that the next version (2) most mods will not work and would have to be re-written as its a totally different beast (or i say the code is).
ok, the box in the edit customer is showing up and the wholesale price box is showing up in the product area... I am working on some re-wording, so i think for now all I'm still confused about is this part of the readMe:
To set the wholesale price go to the product and change the wholesale price to be a dash separated list eg.
50.00-30.00-0.00-25.00
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.
I don't have attributes, but at times i will need up to 4 levels of pricing, how do I do that?
Hi,
I've installed DP on a heavily modified cart using 1.3.8a. It works exactly as required, except for when adding a special price to a product. For example:
Retail: 18.95
Wholesale: 10.95
Special: 14.95
When the above special is applied, the Wholesale price changes to reflect the new specials price. Wholesale: 14.95. You save -XX%
I've trawled this forum, and found a link for a specials addon, but the link is no longer valid. Does anyone have a copy of the addon or a new link to it? Or does anyone have an idea on how I can fix the above issue.
Cheers!
Hi,
After installing dual price mod to ZC 1.3.8a the shopping cart contents are combined from the previous login and no notice appears. Changing the options in Admin/Configuration/Stock/Show Notice of Combining Shopping Cart on Login does not make any difference.
I am not quite sure if it is the dual price mod or any other modications I made in between is causing this malfunction.
Has anyone using the dual price mod experienced this?
Is this the only notice that isn't working for you?
If all notices are down I'd search for a blank line somewhere. I had a minor version of the "blank page" syndrome give me issues with my notices once.
https://www.zen-cart.com/tutorials/index.php?article=82
Installing your first module is easy. After that it gets harder because you need to know / find out if any new modules will touch (ie. affect) files that a previous module changed.
Best to keep track of what modules you have installed or going to install and what files they touch.
This is the only notice not working. It was working three weeks ago. All the mods I've installed since then are working as expected. Perhaps it might be due to an unexpected interaction between the mods such as dual pricing, minimum order, shipping rates in cart and so on. May be I will have to uninstall the mods in reverse order and search for a solution or try to disable or prevent merging of cart contents from the previous login. There are a lot of disgruntled people in the forum who dislike the combination of cart contents.
Just tested an install using DP 1.4.2 and the "NOTICE: For your convenience, your current shopping cart..." msg. was shown.
You must have done something somewhere but if it was a module that made a change it would have been to this file:
includes/modules/pages/login/header_php.php
That is the file with the NOTICE code.
Else you editted your CSS file to not shown the NOTICEs perhaps?
BTW, what do you mean with this statement:
"There are a lot of disgruntled people in the forum who dislike the combination of cart contents."
I have not found any threads to that regard and you can always turn the combination NOTICE off. So I don't see a problem?
I installed the latest version DP 1.5. The only file which replaced the original header_php.php belongs to DP 1.5. I have rechecked it line by line it is the same file and nothing is different.
What I find it interesting is that changing the options in Admin has no effect at all. The cart behaves like it has a default option of "0= OFF, do not display a notice".
The posts I read about dislike of the merging of cart contents were largely due to the pre 1.3.8a versions. If I remember correctly the version 2 will have an option for not to combine contents of the cart.
Hi,
I found the answer why I did not get notice of combining cart contents in thread Saved cart items from previous session from posts #11 to #25.
On post #19 DrByte says "You have to have something "new" in your cart before logging in ... or else the message won't show, because then it's pointless" :dontgetit
I am baffled with the logic of loading cart contents from the previous session when one logins with a new session. The notice only appears if items are added first then login and certainly not the other way round.
I am sorry for taking your time over this matter. There is nothing wrong with the DP mod.
Hi,
Deleting previous session cart contents was provided by DrByte
in thread http://www.zen-cart.com/forum/showthread.php?t=79379.
How can i make this module to work right with specials prices ? I cant find the answer on this forum
Here's something odd ...
When I go into admin and change a customer's status from 0 to 1 and click on Update, the page refreshes itself and has the following error message next to the customer's email address: This email address already exists!
Thusly, it will not change the status of the customer.
I just installed this mod on a new installation test site. It looks great and seems to work as it should.
My problem is that the image section of the product maint screen has changed.
What should look something like this:
... is now missing the last 2 lines.Quote:
Products Image: Image Name: NONE Upload to directory: Main Directory
Delete Image? NOTE: Removes Image from Product, Image is NOT removed from server: No Yes
Overwrite Existing Image on Server? No Yes
Or, select an existing image file from server, filename:
Any ideas? Thanks.
Hi
Just installed DP1.5 to Zen Cart 1.3.8a.
I tested by setting several customers to wholesale level's 1 & 2 and set a few products to test the wholesale price level.
When I log in as the wholesale customer, I have this problem...
All prices shown on the front page and product info page are RETAIL price.
I can only see the wholesale price when the item is in the shopping cart.
I've checked the databases and eveything is showing where it should be. In the admin area I have access to the wholesale box, should I have some traffic light buttons somewhere?
I've reinstalled, checked again and spent hours on this thread - and can see others have had this problem but I can't see any solutions.
Would really appreciate some help.
Thanks in advance
Any ideas/suggestions what I did wrong?
The link in the previous thread for v2 doesn't work.
Any one know where I can get dp v2? Want to try in on zc 1.38.
using DP 1.5
I'm having the same problem. I fixed the file admin\includes\modules\product\collect_info.php replacing lines 466 - 473 with lines 905 - 955 from the original collect_info.php of ZC 1.3.8. It seems to be displaying fine but is not functional. Can someone please track down the root of all this and let the author know so no one installs this faulty mod.
Also was not aware of a DP 2.0, is it better than 1.5 in the addons, where can it be downloaded?
if you create a wholesale price and put that user in that wholesale group they will see both prices. if you do not assign a different group they will see only the retail price. what ever group you put them in will only show that groups pricing and the regular retail price.
Thanks for your response :smile:
I do understand how it was designed to work; however I'm looking for anyone whom has successfully modified it to show both prices by default whether thay are retail or wholesale customers. Retail customers having a "0" will checkout using the retail price and wholesale customers having a "1" will checkout using the wholesale price.
The purpose of my requirement is to show retail customers with the wholesale price so that they are motivated to upgrade to wholesale customer.
Sincerely hope someone could help this requirement :lookaroun
See post #420 on page 42
...and maybe restart your computer or use a different browser to see update as it seems to kind of gets stuck on the retail prices, I used a [FONT=Verdana]different [/FONT]browser and it shows the correct wholesale prices so I assume this will updated in my IE later.
[FONT=Verdana]I am looking to have the option of people being able to pay either price. One for weekly rental price and one for item perchance price.
I have searched the forums and I can’t find a way to do this other than maybe attributes which I don’t want to use in this case so I was hoping to modify this contribution. If no answer I may have to ask in the commercial help wanted section, perhaps the creator of this mod or someone that knows the code would be suited for the job.[/FONT]
[FONT=Verdana]The price field comes from a user being logged in as a wholesaler, in includes\functions\functions_prices.php
I have decided to forget about trying to change this as it does not seem to be setup for what I want. and I am going to go with "Priced by Attributes" (just adding products without prices, then adding priced attributes to them, and setting "Priced by Attributes" to the default in the "attributes controller"[/FONT]
Thanks for your response. Do post your findings :smile:
I have a problem with dual pricing and EasyPopulate.
I just reinstalled EasyPopulate and now my downloaded EP files don't contain price_w field.
How can i fix that?
Anything on the duel pricing with qty discounts?
Or is this a dead issue?
Thanks
I was looking for help. I have installed DP 1.5 and am running latest version of ZC. Everything seems to have installed properly. And I went in and added a 1 to a test account and edited one product and put in a price of 30.0 for the wholesale net. Yet even logged in as the test account I still show the regular retail price. What am I doing wrong? :frusty:
The two things you can immediately check that could be issues are:
1. Make sure all your files uploaded properly via FTP. double and triple check the ones in the /includes/ folder.
2. Log out and in of your test account to make sure that the sessions are reset. The current version of Dual Pricing works via sessions to save data base queries. Therefor you have to log out an back into your test account every time you make changes to the wholesale level.
Thank you very much... That seemed to have been the trick as far as the session restarting
We are also having the same problem with FCKeditor 2.6 but the errors are on different lines..
*Warning*: Missing argument 1 for FCKeditor::__construct(), called in /*****/*****/*******/admin/includes/modules/product/collect_info.php
on line 413 and defined in
*/******/******/******/admin/includes/fckeditor_php5.php* on line *88
I have looked at your fix but I am un-sure what to do :huh:
Could you possiable go in to a little more detail on this i.e. what FCKeditor file am I looking and what line of code to copy??
Thank you for your help
Paul
Guys, all my problems with this module were solved, when i uploaded file / file to the sever, its written somewhere, i was ignoring it, but after all my failure attempts, i tried it ans it worked. save yourself some time and try it. sorry if this is not your problem, and wish you good luck with this great module, its wokring fine in one of my customers websites. www.marketmixegypt.com/shop
Hi all,
I've got a heavily modified zc 1.3.8a and I've created myself a little glitch by not keeping up with my notes on module installations. I installed this dual pricing mod a while back & it worked perfectly through all of the testing. I didn't need the mod at that time, just installed it because I knew I'd be needing it "down the road". Well, now I NEED IT, and I've apparently overwritten a file or two when I've installed other mods. Now, on the customer details page in admin, I don't have the option for assigning the "0" or "1" that lets me give wholesale status to anyone. The box, dropdown, or whatever it was that used to be there, it's gone. The one test customer (myself) that I set up when I first installed this, still works properly in every way (displays correct pricing), I just can't assign wholesale status to anyone else, because I don't show the option.
I've installed several mods since then...Stock by attributes, TY package tracker, Recover cart sales, Admin login as customer, and Enhanced whos online. I'm moderately comfortable poking around through code & looking for changes, but I don't exactly get the php concept, so I'm not sure where to start looking. I don't want to just re-upload the files because some other mod is obviously going to be affected if I do that.
Does anyone know right off the top of their head which file or files are responsible for the wholesale status option being displayed in the customer's details page through the admin panel? I've downloaded winmerge & I'm ready for a long night of pouring over this until I find it. Any help is greatly appreciated!
Thanks
Bingo! That was the buggar I needed to look at! Seems a couple references to the dual pricing mod were completely removed, so I just copied them back in using winmerge, uploaded the changed file & VOILA!! It's all in fine working order now! Whew.
Thank you soooo much!
I am installing the Dual Pricing Wholesale mod in a v1.38a store which already has the registered version of easypopulate installed.
This means that I need to merge the default easypoulate.php file with the one in this mod. It looks like the one with this mod is referring to the unregistered version of EP. Any helpful suggestions on merging these two files so that nothing explodes?
There are a lot of differences showing in the two files, amd I am at a loss as to how to merge at this point.
thank you.
betty
um, looks like I spoke a little too soon about it all working fine. Hopefully what's wrong will be obvious to some of you.
Ok, I compared the two files in winmerge, found all missing references to the dual pricing mod & migrated them in as suggested. I only made changes to that one file... customers.php
Now when going through checkout with a test order, I get a blank page on checkout_shipping. ?? So I did what seemed logical at the time and re-uploaded the customers.php file that I'd just replaced (willing to forgo the dual pricing for now just to get through checkout) but it still gives me the blank page. What could have happened when replacing just that one file? Or better yet, what can I do to remedy it?
Just needed to add:
Also get blank pages for login&action=process (although if I open a new window with my website, I'm logged in at that point), AND a blank page for logoff. No idea what I did but if I don't fix it back before my husband gets home, my goose is cooked!
A new issue I found in my installation, Zencart v1.38a with the latest version of the wholesale mod.
WHen I go to enter a new product, I cannot access the description area. The outline of the editor is there, but I can't put my cursor in it and the bounding box is also missing. I have no error messages so cannot pinpoint where it comes from. I do have fckeditor 2.6 installed as well.
When I was installing the mod, the only 2 files I had that needed to be merged were the easypopulate file (I used the one in hte mod instead of trying to merge), and the shopping cart file in includes/classes. Every other file I used the ones in the mod as I had not added any mods which affected the rest.
Any help would be appreciated as I am working on a tuesday deadline to add the products. I have tried changing the html editor in the Admin section, however regardless of which I choose, they all look the same when I try to enter a new product.
Also, I thought there was a way to enter multiple wholesale prices, however there is only one field for a wholesale price. Am I thinking of a different mod?
thank you,
betty
**bumping** (sorry, i'm desperate for help)
Anyone know why adding in a few missing lines to the admin/customers.php page - when I was trying to fix the dual pricing mod - would lead to a problem with customers logging in? Even AFTER I re-uploaded the original 'unchanged' admin/customers.php page to hopefully set things right?
What can I do or try at this point? None of my customers are able to log in, so no one is able to complete a purchase until I can get this back to the way it was. Oh how I wish there was an UNDO button on the admin panel!
I got it! I got it! Whew.
Ok first, many MANY huge thanks to those who've contributed to the plethora of information on this forum. I simply would not have been able to figure this out otherwise. Now I didn't just now start looking for answers, I've been searching and searching almost non-stop since this happened 24 hours ago, but with SO much info here, it almost hinders the search effort because of the amount of pages to scan before finding what you need. But it IS THERE & perseverance paid off, thank goodness!
It was a freakin SPACE that caused my woes. Extra space in php code. Somethin INVISIBLE, and yet I had to find it. Were it not for the post by Dr. Byte on "blank pages", and then the tutorial on using the debugging tool.... I'd be sitting here bald-headed, screaming, and in a puddle of tears. Instead, I'm back in business! I love this place!!
:clap:
I;ve done lots of reading and learning since my post last week, and have narrowed my problems down to two:
1. I need to make all the retail prices "go away"
2. The client has 4 pricing levels for wholesale based on the quanitity purchased. I need all of the wholesale prices to show.
I have searched and read this thread, and have looked at the other mods and cannot figure these 2 issues out.
Any help on either or both would be greatly appreciated,
thank you,
betty
Where do you get dual pricing v 2 ?
I would like to install this mod but it seems a lot of problems arise when doing so.
martin
Hi.
Where can i download dual pricing for attributes, email and checkout process??? Please Helppppp :frusty:
Hmmm I'm just a little bit confused :unsure:
The version on the Download area is the 1.5 but the thread say Dual Pricing V2... May I ask Why?
:smile:
Woah... guess I've been gone for a bit. Sorry... Here we go for the update.
Sounds like you have partially found your solution and potentially started down the right path. Yet it is just that. This contribution will provide some of the "if" statements you will need but the functionality you are asking for is not yet included in this and / or is a whole different contribution within itself.
http://www.zen-cart.com/index.php?ma...roducts_id=166
The mod is fairly simple to install. Most posts on this forum are feature requests or people posting before the double and triple check that all files are properly uploaded.
PLEASE DOUBLE CHECK FTP UPLOADS AND MAKE SURE ALL FILES ARE PROPERLY UPLOADED BEFORE POSTING.
Attributes are not yet supported. As far as the rest I'm not clear on what you are asking for. You want a different checkout process for certain customers? You want a different template loaded or???
I took this thread over and as I updated the module I felt like it wouldn't be worth changing the thread and name to just "dual pricing" changing thread is a pain, with people landing on the old one, old subscribers etc. I'm sticking to this based on practicality.
Hi,
I need to use this mod, but I have custom modification in all the files that need to be overwritten.
There is any guide for a manual install?
Thanks
Rogers
Rogers,
Use Winmerge to compare the files. The software is easy to setup and run.
Template Cascade:
I sent you an email to the email you provided me in a PM but didnt hear back so thought i would try this, just incase that one was wrong....
Thanks,
Daniel
This is about the price by discount addon we were talking about for a while.