Thanks Twitch,
Just downloaded a copy, look forward to trying it.
Goshawk
Thanks Twitch,
Just downloaded a copy, look forward to trying it.
Goshawk
Time is but an illusion, there is only "now"!
There now exists a version Twitch WS + Att - STD - 18d Certified ~ November 19.2018 which performs the following update to the CORE Charge dashboard display.
YOUR_ADMIN/index_dashboard.php
replace line 162-193
PHP Code:
echo '<div class="row"><span ><a href="' . zen_href_link(FILENAME_ORDERS, 'oID=' . $orders->fields['orders_id'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="contentlink"> ' . $orders->fields['customers_name'] . '</a>';
echo '<span class="right">';
echo '<strong>' . $orders->fields['order_total'] . '</strong><br/>';
echo '' . zen_date_short($orders->fields['date_purchased']);
echo '</span>';
// bof Twitch display CORE Charges per order
// loop through products matched to the current order_id
$matchOrder = $orders->fields['orders_id'];
$findCoresql = $db->Execute("select orders_id, products_options, options_values_price, options_values_price_w
from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES ."
where orders_id = '" . $matchOrder . "'
");
foreach ($findCoresql as $coreFound) {
//print_r ($findCoresql);
//if ($findCoresql->RecordCount() > 0) { // BOF print if records found
// display wholesale price
if ($orders->fields['customers_wholesale'] == '1') {
echo '<span class="left">CORE Charge ' . '<strong>WS $' . number_format($findCoresql->fields['options_values_price_w'], 2) . '</strong><br/></span>';
} else {
// display retail price
echo '<span class="left">CORE Charge ' . '<strong>RT $' . number_format($findCoresql->fields['options_values_price'], 2) . '</strong><br/></span>';
}
// } // END print if records found
}
// eof Twitch display CORE Charges per order
echo ' </span></div>' . "\n";
with this:
Now the lookup will split wholesale/retail core charge display correctly on the admin -> home page.PHP Code:
echo '<div class="row"><span ><a href="' . zen_href_link(FILENAME_ORDERS, 'oID=' . $orders->fields['orders_id'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="contentlink"> ' . $orders->fields['customers_name'] . '</a>';
echo '<span class="right">';
echo '<strong>' . $orders->fields['order_total'] . '</strong><br/>';
echo '' . zen_date_short($orders->fields['date_purchased']);
echo '</span>';
// bof Twitch display CORE Charges per order
// loop through products matched to the current order_id - filter ws|rt customers_wholesale
$matchOrder = $orders->fields['orders_id'];
$findCoresql = $db->Execute("SELECT opa.orders_id, o.orders_id, opa.products_options, opa.options_values_price, opa.options_values_price_w, o.customers_wholesale
FROM " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " opa left join " . TABLE_ORDERS . " o
ON (opa.orders_id = o.orders_id)
WHERE opa.orders_id = '" . $matchOrder . "'
AND opa.products_options = 'CORE Charge'
");
// Redoc Note: you can change or remove the line - AND opa.products_options = 'CORE Charge' in the filter above to single out product options or hide the core charge display
// find and match order ID to Customer ID/Wholesale switch in orders table
foreach ($findCoresql as $coreFound) {
//print_r ($findCoresql);
//if ($findCoresql->RecordCount() > 0) { // BOF print if records found
// display wholesale price
if ($findCoresql->fields['customers_wholesale'] == '1') {
echo '<span class="left">CORE Charge ' . '<strong>WS $' . number_format($findCoresql->fields['options_values_price_w'], 2) . '</strong><br/></span>';
} elseif ($findCoresql->fields['customers_wholesale'] == '0') {
// display retail price
echo '<span class="left">CORE Charge ' . '<strong>RT $' . number_format($findCoresql->fields['options_values_price'], 2) . '</strong><br/></span>';
} else {
// print nothing
}
// } // END print if records found
}
// eof Twitch display CORE Charges per order
echo ' </span></div>' . "\n";
New! - Additional support is now available if you would like to filter an attribute other than 'core charges' in your store - simply match the 'CORE Charge' text to the products_options name of your liking.
Redoc Note: This bug caused no harm to the data - this was an output only display.
Last edited by twitchtoo; 20 Nov 2018 at 03:35 AM.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
Great changes and additions to this module.
The installation of the old module used to take anywhere from 2- 4 hours to install (depending on stock carts versus custom carts) and now the new install is a fraction of the time!
Well done! Thanks so much; a donation for saving my time, was sent your way.
Trinity
Many thanks for a high-fiver!
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
This also applies to anyone using Twitch Wholesale as mirrored in the core List Price module found in the original post here:
https://www.zen-cart.com/showthread....66#post1353966
To tie in the List Price ON/OFF switch in the Admin > Configuration > Product Listing
directly
to control the Product Info Display - includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
Replace this:
<span class="productsList_price">List Price: $<?php echo $products_list_price; ?><br/></span>
With this:
<?php if (PRODUCT_LIST_THE_LIST_PRICE >= '1') { ?>
<span class="productsList_price">List Price: $<?php echo $products_list_price; ?><br/></span>
<?php } ?>
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
v155f php7.1
I would just like to confirm that this plugin will override sale maker when activated, and any active promo coupons, such that a wholesale customer gets wholesale prices only and that the sale maker discount or coupon discount is not applied at bottom of transaction, i.e. any discount is negated.
cheers,
Mike
If the module has not been installed correctly this can happen...
Alternately
There are add on's and filters available to correct this issue. Some are already mentioned or available on the forum, others have been custom coded to maintain the seemingly custom nature of wholesale business requirements for product pricing, sales, discount coupons and specials.
If you could provide more specific details and perhaps the conditions or other modules you have installed I'd be happy to help.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
Module scheduled for update to 1.56c March.2020.
Feature updates expected:
Master Wholesale ON/OFF switch
~ (beta) Turn the module on or off completely.
Master WS/RT Group Management Control Center with Module Bridging Option
~ (beta) View, manage all pricing groups and their relative settings + (complete) toggle bridging to existing Zen Cart modules in one dashboard.
Example of a bridged module: Instead of using Twitch WS groups independently shop owners could used the stock Group Pricing groups and manage them using the default settings - retaining all of the functionality the new Twitch WS module offers - installing right into an existing shop.
Alternately you could bridge Zones with Twitch Wholesale groups to separate customers in any geographical zone for shipping, payment and delivery, etc.
Static Multiple Pricing Levels including Multiple Attribute Pricing Levels
~ (beta) Multiple pricing levels for each product and their attributes.
Multiple Pricing Reports
~ (beta) Advanced reports updated to reflect pricing groups.
Supplier Invoice Record with Search
~ (beta) Input supplier invoice, update stock view recorded supplier invoices.
Integrated Inventory Stock Tracking from Invoice Record
~ (beta) Connect Invoice Record with product stock/inventory for inbound shipping/receiving records.
Integrated WS/RT Payment/Shipping Control
~ (complete) WS/RT payment/shipping dashboard.
WS/RT Order Pick List
~ (complete) Customized order reports to use as paperless pick list for wholesale or retail.
Pending ! - Twitch Restrict
~ If there's enough time/funds I will be able to integrate this module for added site WS/RT separation and security not available in the stock cart.
As with previous releases this module will work independently or can be integrated to use or work with all existing stock Zen Cart modules - 3rd Party, pricing groups, payment, shipping, sales, specials, banners, etc.
Donations are always appreciated ~ Thank you for your continued support!
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
Twitch Wholesale Free Shipping Order Limit Switch - Mar.2020
Designed for use with 1.55f, most likely works with previous versions of Twitch Wholesale - be certain to file compare.
This switch allows control of Admin > Modules > Shipping > Free Shipping Options to set Order Total Min and Max for Retail and Wholesale separately during checkout.
These are core overwrites to ensure the override system defaults correctly.
Example:
Retail Customer - Free Shipping over $100
Wholesale Customer - Free Shipping over $500
For existing sites, record your current settings, REMOVE the shipping module in admin, then upload these files (file compare/overwrite) then refresh your admin page and click INSTALL.
Failure to remove the old module and settings will prevent the new features from working correctly.
https://twitchtoo.com/tR_codeSHOP/do...mit_Switch.zip
Your donations are appreciated
Also, these features will be included in the newest release of Twitch WS for 1.56c - coming soon!
Last edited by twitchtoo; 13 Mar 2020 at 04:53 PM.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.
Bookmarks