Ok I have installed ok!
But I dont see the whole sale price factor in the attributes controler.
There is anyway I can set that?
Thanks
Printable View
Ok I have installed ok!
But I dont see the whole sale price factor in the attributes controler.
There is anyway I can set that?
Thanks
hello -- i installed this mod and it looks like it is working as advertised except that i have a template a purchased and it messed up a couple items, maybe you can help:
1. cart --> total is now 0.00. sub-total shows correct value (see image 1)
http://i96.photobucket.com/albums/l1...encart/dp0.jpg
2. step 2 of 3 (payment info) -- shows sub-total as 0.00 (see image 2)
http://i96.photobucket.com/albums/l1...encart/dp2.jpg
3. some graphics moved around on the products page -- what page do i modify to move these back (see image 3)
http://i96.photobucket.com/albums/l1...encart/dp3.jpg
i did a backup of the db and files so i can easily go back to the previous version but i would like to make this work as i need the functionality. Thank you for your help
zencart 1.3.8a
php 5.2.5
mysql 5.0.45
apache 2.2.6
addons: vat mod 1.3.0
template from templatemonster.com
looks like your includes/classes/shopping_cart.php file might not have properly uploaded. Please check that first.
tpl_product_info_display.php is the file driving this page. you might need to modify your CSS file, basic design work there.
hello -- thanks for the quick response. i did a compare of the files using winmerge and it states files from the zip and on the site are identical. please let me know how many lines of code that file should have and the exact size.
image1:
http://i96.photobucket.com/albums/l1...encart/sh1.jpg
image2: zip size is correct as well 126537 bytes
http://i96.photobucket.com/albums/l1...encart/zip.jpg
per notepad++ mine has 1985 lines ending in ?> (not counting line 1986 which is blank)
size: 88,229 bytes
size on disk: 90,112 bytes
any other ideas?
i also performed a line by line compare of shopping_cart_backup.php to shopping_cart_dp.php (copied and renamed for the purpose of the compare). These will be different but maybe you can spot where different variables are used:
backup file
Code:The following values are only in G:\shopping_cart_backup.php.
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @version $Id: shopping_cart.php 7276 2007-10-23 05:36:08Z drbyte $
$qty = $this->adjust_quantity($qty, $products_id, 'shopping_cart');
$this->contents[$products_id] = array('qty' => (float)$qty);
$this->contents[$products_id] = array('qty' => (float)$quantity);
* Method to check whether a product exists in the cart
$product_query = "select products_id, products_price, products_tax_class_id, products_weight,
$products_price = $product->fields['products_price'];
$products_price = $product->fields['products_price'];
if ($product->fields['product_is_always_free_shipping'] == '1' or $product->fields['products_virtual'] == '1') {
$shipping_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
$this->free_shipping_price -= $qty * zen_add_tax( ($shipping_attributes_price), $products_tax);
$this->total -= $qty * zen_add_tax($attribute_price->fields['options_values_price'], $products_tax);
$this->free_shipping_price += $qty * zen_add_tax( ($shipping_attributes_price), $products_tax);
$this->total += $qty * zen_add_tax($attribute_price->fields['options_values_price'], $products_tax);
} // eof: attribute price
// do not count download as free when set to product/download combo
if ($adjust_downloads == 1 and $product->fields['product_is_always_free_shipping'] != 2) {
// echo 'I SEE ' . $this->total . ' vs ' . $this->free_shipping_price . ' items: ' . $this->free_shipping_item. '<br>';
$new_attributes_price = zen_get_discount_calc($products_id, $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
$attributes_price += $attribute_price->fields['options_values_price'];
$new_attributes_price = zen_get_discount_calc($products_id, $attribute_price->fields['products_attributes_id'], $attribute_price->fields['options_values_price'], $qty);
p.products_price, p.products_weight, p.products_tax_class_id,
$products_price = $products->fields['products_price'];
$products_price = $products->fields['products_price'];
$check_unit_decimals = zen_get_products_quantity_order_units((int)$products->fields['products_id']);
if (strstr($check_unit_decimals, '.')) {
$new_qty = round($new_qty, QUANTITY_DECIMALS);
$new_qty = round($new_qty, 0);
'name' => $products->fields['products_name'],
'model' => $products->fields['products_model'],
'image' => $products->fields['products_image'],
'price' => ($products->fields['product_is_free'] =='1' ? 0 : $products_price),
'quantity' => $new_qty,
'weight' => $products->fields['products_weight'] + $this->attributes_weight($products_id),
// fix here
'final_price' => ($products_price + $this->attributes_price($products_id)),
'onetime_charges' => ($this->attributes_price_onetime_charges($products_id, $new_qty)),
'tax_class_id' => $products->fields['products_tax_class_id'],
'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''),
'attributes_values' => (isset($this->contents[$products_id]['attributes_values']) ? $this->contents[$products_id]['attributes_values'] : ''),
'products_priced_by_attribute' => $products->fields['products_priced_by_attribute'],
'product_is_free' => $products->fields['product_is_free'],
'products_discount_type' => $products->fields['products_discount_type'],
'products_discount_type_from' => $products->fields['products_discount_type_from']);
$free_ship_check = $db->Execute("select products_virtual, products_model, products_price, product_is_always_free_shipping from " . TABLE_PRODUCTS . " where products_id = '" . zen_get_prid($products_id) . "'");
. TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad
if ($free_ship_check->fields['products_virtual'] == '1') {
$this->content_type = 'virtual';
$this->content_type = 'mixed';
if ($gv_only == 'true') {
return $gift_voucher;
} else {
return $this->content_type;
}
//echo 'I SEE actionUpdateProduct: ' . $_POST['products_id'] . ' ' . $_POST['products_id'][$i] . '<br>';
$new_qty = $this->adjust_quantity($new_qty, $_POST['products_id'][$i], 'shopping_cart');
// $messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' A: - ' . zen_get_products_name($_POST['products_id'][$i]), 'caution');
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . zen_get_products_name($_POST['products_id'][$i]), 'caution');
// display message if all is good and not on shopping_cart page
if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART) {
$messageStack->add_session('header', SUCCESS_ADDED_TO_CART_PRODUCT, 'success');
//echo 'I SEE actionAddProduct: ' . $_POST['products_id'] . '<br>';
$new_qty = $this->adjust_quantity($new_qty, $_POST['products_id'], 'shopping_cart');
// $messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' B: - ' . zen_get_products_name($_POST['products_id']), 'caution');
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . zen_get_products_name($_POST['products_id']), 'caution');
if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART) {
$messageStack->add_session('header', SUCCESS_ADDED_TO_CART_PRODUCT, 'success');
if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART) {
$messageStack->add_session('header', SUCCESS_ADDED_TO_CART_PRODUCT, 'success');
// zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters, $products_id) . 'products_id=' . $_GET['products_id']));
* @todo change while loop to a foreach
if (is_array($_POST['products_id']) && sizeof($_POST['products_id']) > 0) {
foreach($_POST['products_id'] as $key=>$val) {
// while ( list( $key, $val ) = each($_POST['products_id']) ) {
if ($val > 0) {
$adjust_max = false;
$prodId = $key;
$qty = $val;
$add_max = zen_get_products_quantity_order_max($prodId);
$cart_qty = $this->in_cart_mixed($prodId);
// $new_qty = $qty;
//echo 'I SEE actionMultipleAddProduct: ' . $prodId . '<br>';
$new_qty = $this->adjust_quantity($qty, $prodId, 'shopping_cart');
if (($add_max == 1 and $cart_qty == 1)) {
// do not add
// adjust quantity if needed
if (($new_qty + $cart_qty > $add_max) and $add_max != 0) {
$adjust_max= 'true';
$new_qty = $add_max - $cart_qty;
$this->add_cart($prodId, $this->get_quantity($prodId)+($new_qty));
if ($adjust_max == 'true') {
// $messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' C: - ' . zen_get_products_name($prodId), 'caution');
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . zen_get_products_name($prodId), 'caution');
$messageStack->add_session('header', SUCCESS_ADDED_TO_CART_PRODUCTS, 'success');
// $qty = $this->adjust_quantity($qty, (int)$products_id, 'shopping_cart');
// temporary fixed on messagestack used for check and message needs better separation
function adjust_quantity($check_qty, $products, $message=false) {
$old_quantity = $check_qty;
$fix_qty = $check_qty;
// $messageStack->add_session('shopping_cart', ERROR_QUANTITY_ADJUSTED . zen_get_products_name($products) . ' - ' . $old_quantity . ' => ' . $new_qty, 'caution');
$new_qty = preg_replace('/[0]+$/','', $check_qty);
// $messageStack->add_session('shopping_cart', 'A: ' . ERROR_QUANTITY_ADJUSTED . zen_get_products_name($products) . ' - ' . $old_quantity . ' => ' . $new_qty, 'caution');
if ($check_qty != round($check_qty, QUANTITY_DECIMALS)) {
$new_qty = round($check_qty, QUANTITY_DECIMALS);
$messageStack->add_session('shopping_cart', ERROR_QUANTITY_ADJUSTED . zen_get_products_name($products) . ERROR_QUANTITY_CHANGED_FROM . $old_quantity . ERROR_QUANTITY_CHANGED_TO . $new_qty, 'caution');
$new_qty = $check_qty;
return $new_qty;
new file
Code:The following values are only in G:\shopping_cart_dp.php.
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @version $Id: shopping_cart.php 3856 2006-06-29 02:26:33Z drbyte $
$this->contents[$products_id] = array('qty' => $qty);
$this->contents[$products_id] = array('qty' => $quantity);
* Method to check wheter a product exists in the cart
$product_query = "select products_id, products_price, products_price_w, products_tax_class_id, products_weight,
// $products_price = $product->fields['products_price']; - REMOVED FOR DUAL PRICING MOD
//*************************************************************
//***** CHECK WHETHER WHOLESALE OR RETAIL AND GET CORRECT PRICE
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") {
$i = $customer_check->fields['customers_whole'];
$i = $i-1;
$products_price_array = $product->fields['products_price_w'];
$productsprice = explode("-",$products_price_array);
$products_price = $productsprice[$i];
if ($products_price == '0' || $products_price == '') {
$products_price = $productsprice[0];
}
if ($products_price=='0'){
$products_price = $product->fields['products_price'];
} else {
$products_price = $product->fields['products_price'];
}
} else {
$products_price = $product->fields['products_price'];
//****************************************************************
//*****END CHECK WHETHER WHOLESALE OR RETAIL AND GET CORRECT PRICE
$products_price = $products_price;
$customers_id = $_SESSION['customer_id'];
if ($customer_check->fields['customers_whole'] != "0") {
$i = $customer_check->fields['customers_whole'];
$i = $i-1;
$attribute_cost_array = $attribute_price->fields['options_values_price_w'];
$attributeprice = explode(",",$attribute_cost_array);
$attribute_cost = $attributeprice[$i];
if ($attribute_cost=='0' || $attribute_cost=='') {
$attribute_cost = $attributeprice[0];
if ($attribute_cost =='0'){
$attribute_cost = $attribute_price->fields['options_values_price'];
} else {
$attribute_cost = $attribute_price->fields['options_values_price'];
}
$attribute_cost = $attribute_price->fields['options_values_price'];
// $this->free_shipping_price -= $qty * zen_add_tax( ($new_attributes_price), $products_tax);
//$this->total -= $qty * zen_add_tax($attribute_price->fields['options_values_price'], $products_tax);
$this->total -= $qty * zen_add_tax($attribute_cost, $products_tax);
$new_attributes_price = zen_get_discount_calc($product->fields['products_id'], $attribute_price->fields['products_attributes_id'], $attribute_cost, $qty);
// $this->free_shipping_price += $qty * zen_add_tax( ($new_attributes_price), $products_tax);
//$this->total += $qty * zen_add_tax($attribute_price->fields['options_values_price'], $products_tax);
$this->total += $qty * zen_add_tax($attribute_cost, $products_tax);
if ($adjust_downloads == 1) {
//****************************************************************
$new_attributes_price = zen_get_discount_calc($products_id, $attribute_price->fields['products_attributes_id'], $attribute_cost, $qty);
$attributes_price += $attribute_cost;
$new_attributes_price = zen_get_discount_calc($products_id, $attribute_price->fields['products_attributes_id'], $attribute_cost, $qty);
p.products_price, p.products_price_w, p.products_weight, p.products_tax_class_id,
// $products_price = $product->fields['products_price']; - REMOVED FOR DUAL PRICING MOD
$products_price_array = $products->fields['products_price_w'];
$products_price = $products->fields['products_price'];
$products_price = $products->fields['products_price'];
$products_price = $products->fields['products_price'];
// $products_price = $product->fields['products_price']; - REMOVED FOR DUAL PRICING MOD
$new_qty = round($new_qty, QUANTITY_DECIMALS);
'name' => $products->fields['products_name'],
'model' => $products->fields['products_model'],
'image' => $products->fields['products_image'],
'price' => ($products->fields['product_is_free'] =='1' ? 0 : $products_price),
'quantity' => $new_qty,
'weight' => $products->fields['products_weight'] + $this->attributes_weight($products_id),
// fix here
'final_price' => ($products_price + $this->attributes_price($products_id)),
'onetime_charges' => ($this->attributes_price_onetime_charges($products_id, $new_qty)),
'tax_class_id' => $products->fields['products_tax_class_id'],
'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''),
'attributes_values' => (isset($this->contents[$products_id]['attributes_values']) ? $this->contents[$products_id]['attributes_values'] : ''),
'products_priced_by_attribute' => $products->fields['products_priced_by_attribute'],
'product_is_free' => $products->fields['product_is_free'],
'products_discount_type' => $products->fields['products_discount_type'],
'products_discount_type_from' => $products->fields['products_discount_type_from']);
$free_ship_check = $db->Execute("select products_virtual, products_model, products_price, products_price_w, product_is_always_free_shipping from " . TABLE_PRODUCTS . " where products_id = '" . zen_get_prid($products_id) . "'");
. TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad
$this->content_type = 'mixed';
if ($gv_only == 'true') {
return $gift_voucher;
return $this->content_type;
$this->content_type = 'virtual';
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' - ' . zen_get_products_name($_POST['products_id'][$i]), 'caution');
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' - ' . zen_get_products_name($_POST['products_id']), 'caution');
while ( list( $key, $val ) = each($_POST['products_id']) ) {
if ($val > 0) {
$prodId = $key;
$qty = $val;
$add_max = zen_get_products_quantity_order_max($prodId);
$cart_qty = $this->in_cart_mixed($prodId);
$new_qty = $qty;
$this->add_cart($prodId, $this->get_quantity($prodId)+($new_qty));
$messageStack->add_session('shopping_cart', ERROR_MAXIMUM_QTY . ' - ' . zen_get_products_name($prodId), 'caution');
I understand that the files on your local computer are correct. I think it might be an FTP transfer issue. Did you try re-putting it to your server? several times?
Do you have any other modifications installed?
yes i moved the files over serveral times, i overwrote the file, i deleted it then moved it again... comparing the local file to the server file they are identical in size, in line count, and a line by line comparison shows no variations.
one other thought -- as this is a semi-fresh install the page states: Please review your order. (defined in includes/languages/english/shopping_cart.php) which is not the same as includes/classes/shopping_cart.php. does one override the other? the mod doesnt copy any files there so i presume there is a reason for that.
edit: the only mod i have is the VAT mod 1.3.0 which does not modify any shopping_cart files
Great Mod and I got everything working but the one question I have is, is there a way to setup for when a customer signs up to automatically assign the Wholesale pricing level so that my client doesnt have to go in manually and do it everytime.
I am running the most updated version of zencart with the most updated version of the dual pricing mod
Thank You in advance for the support
to check if thats the file thats causing the problem i put the backup shopping_cart.php file into includes/classes/ and my totals show up and propegate however since i replace the mod shopping_cart file i do not have the wholesale pricing functionality working.
That's a language file, it has nothing to do with this file. I'm not sure where your problem is coming from. I'm not familiar with the VAT mod does it modify the functions_prices.php file?
Thank you... The way to do this would be to modify the code when a customer is being created so that the customers_whole column in the customers table is automatically populated with whichever value you desire. Possible options being 1-4
hey -- thanks for the quick response. the VAT mod does not modify the function_prices.php file. here is a list of files which are added/modified by the VAT mod
Code:2. New files included in package
admin/includes/functions/extra_functions/functions_vatmod.php
admin/includes/languages/english/extra_definitions/vatmod.php
catalog/includes/functions/extra_functions/functions_vatmod.php
catalog/includes/languages/english/extra_definitions/vatmod.php
3. Modified files included in package
admin/customers.php
admin/invoice.php
admin/orders.php
admin/packingslip.php
admin/includes/classes/order.php
admin/includes/functions/functions_customers.php
catalog/includes/classes/order.php
catalog/includes/functions/functions_customers.php
catalog/includes/functions/functions_taxes.php
catalog/includes/modules/checkout_new_address.php
catalog/includes/modules/create_account.php
catalog/includes/modules/order_total/ot_shipping.php
catalog/includes/modules/pages/address_book_process/header_php.php
catalog/includes/modules/pages/address_book_process/jscript_main.php
catalog/includes/modules/pages/checkout_payment_address/jscript_main.php
catalog/includes/modules/pages/checkout_shipping_address/jscript_main.php
catalog/includes/modules/pages/create_account/jscript_form_check.php
catalog/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_address_book_details.php
catalog/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_checkout_new_address.php
catalog/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
webdesignjustin, Try changing includes/modules/create_account.php file. Modify line 258 from
toPHP Code:
'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION
Change the one to anything from 1-4 for different levels of wholesale pricing. Let me know if this works... it's not tested and just thrown together quickly but it could at least be a start.PHP Code:
'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION,
'customers_whole' => '1'
i compared both the dp mod files and vat mod files -- all source files and server files are identical (see images below). Like i mentioned above -- when i put the backup version of shopping_cart.php back in the total appears but i lose the dp functionality.
I think for now i'll go back to the backup files and just listen in on this post to see if anyone else runs into this problem. thanks for providing suggestions.
http://i96.photobucket.com/albums/l1...cart/comp1.jpg
http://i96.photobucket.com/albums/l1...cart/comp2.jpg
Thank You so much for the quick responce and the fix. You are the man!!
It looks as if you compared VAT with VAT and Dual Pricing with Dual Pricing. I would expect that comparing the same files would yield these results. You need to compare the functions_prices.php files from VAT and Dual Pricing and merge those so that you regain all functionality. If you get it working, posting the file here would be helpful.
NP... I take it that it worked.
Sorry, I thought you said VAT did modify it, my bad. Well I guess I start by comparing the two modules against each other not themselves and see if there are any conflicting files... If not you might need to do some other poking around in your file structure.
the only overlap is customers.php -- however i did notice a folder called 'New Folder (2)' in the Dp mod under \includes\modules\ should there be anything in this folder and should this folder be named something?
hmm... nope it sounds like you have things set pretty good. I wonder the issue here. It's going to take some serious poking around and testing things to try and figure this one out. It might be an admin setting that is different from the stock setting messing it up. It could be a number of things, but in general it should be working. I'd keep trying and see if there is anything you can figure out.
in doing some more looking around i found that if i add an item into the cart which is not setup with multiple discounts, as such the default (0) discount is applied - as designed. the total for that item appears correctly in the cart -- see image
regular price is 24 eur for all items
customer logged in has pricing level 2
item 1 pricing levels : 0-12.00-11.00-10.00
item 2 is not discounted (default 0 in Wholesale Price (Net) field)
http://i96.photobucket.com/albums/l1...rt/cart2-1.jpg
I set up a new cart, and installed a fresh copy of the DP 1.5 mod. I'm getting the proper results with your set up.
- customer set to WS level2
- product pricing set to 0-12.00-11.00-11.00
http://lh6.ggpht.com/_1sCWgPzWFH0/Sn...pping-cart.jpg
I don't know if your tpl_shopping_cart_default.php file is changed at all and calling a different value than $product['productsPriceEach'] or $product['productsPrice']
It does look like your template is calling a custom value here. Or is excluding one or the other. Not exactly what's going on but the problem might lie there.
Hi Everyone,
Hope all of you are having a great week.
So, I am not sure how this mode will work for me.
I rely in prices by attributes, I have set the prices to 0 and just the attribute price matters now.
So, how the wholesale levels works? Are they multipliers? If so where I set the percentage?
Ex: I have a product priced to 0 and its attributes +$78 and +$90, the attributes doesn't have a wholesale price tag. How can I show different prices for the wholesale and Retail?
Thank you,
Rogers
Hello again, got another quick question for you. When I am logged in as a customer set as a wholesale customer when I look at the products in list form (see picture below) I only see the wholesale price. Is there a way to show both the retail and wholesale pricing.
http://us-identification.com/zencart/images/help.jpg
Thank You in advance for your help.
Am running the most up to date version of zencart and the most up to date version of dual pricing.
Hi,
I'm using the 'dual pricing wholesale pricing_1-5" add on module, with zencart 1.3.8
I've used it to set up a wholesale price for one of my customers. It seems to work ok if they add a few items to the cart but once they reach the quantity limits set for quantity discount the wholesale price is replaced with the quantity discount retail price.
eg. normal retail price $6.75 @ 1, $6.50 @ 10, etc
wholesale price is $4.50
When the wholesale client adds 9 items he gets the $4.50 price, but if he orders 10 the price shoots up to $6.50
Does anyone know how to fix this problem?
I started off by posting this in the wrong place... I'll try again... It was late.
Right now I'm trying everything to see if I can show the first wholesale level to all customers- logged in or not. I want everything else to work like it currently does but statically show the potential wholesale price if the customer were to become a wholesale customer. I'm thinking that since that price is entered into the database, we should be able to capture it and put it on the product info template- Am I thinking too simple?
I already know that my next goal will be to try and figure out if a person puts a certain item in their cart, they get moved to the wholesale pricing- much bigger issue that I haven't even begun to investigate yet!
Quote:
Originally Posted by ladyink View Post
Has anyone come up with a way to show both prices? I have this exact same situation and I feel like I'm so close and yet so far. The dual pricing displays is perfectly but only if they are assigned to the "group".
Nancy
I really am so close- at least I'd like to think I am. Here is what I've got and I think that my thought process is right- I just can't quite get it.
On my tpl_product_info_display.php I've got which is from dual pricing:
<!--bof Product Price block -->
<h2 id="retailwhole" class="productGeneral">
<?php
// base price
//***********************************************************************
//***DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************
if ($_SESSION['customer_whole'] && $_SESSION['customer_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
//***********************************************************************
if ($show_onetime_charges_description == 'true') {
$one_time = ' <span> Your Price: ' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
//******************************************************************************** *
//***Properly display price labeling when set to Whole sale and when not
//******************************************************************************** *
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' )
{
echo '<span id="whole">Member 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
//******************************************************************************** *
?></h2>
<!--eof Product Price block -->
Right under <h2 id="retailwhole" class="productGeneral"> at the top of that code, I put:
<?php
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 /> ';
?>
Which only managed to duplicate the retail price. Since I'm not that great at php- yet, I understand what needs to happen- just not quite sure how to write it. I'm entering a Wholesale price on the product page in the admin- there has got to be a way to display that
I'm willing to try any suggestions~
Nancy
what happened to the help on this forum? :cry:
It seems to have vanished. Did another thread get started someplace else. I am very confused! :huh:
If there is a new support link, I wish someone would post it.
betty
I am still looking for a way to turn the Retail off completly. This store is a wholesale only store, yet yesterday someone placed an order at the retail price. Needless to say, I'm back here today searching again for a possible solution.
thank you,
betty
I've been searching for three days and still have not found suitable answers:
Most items at my site are priced by attribute. I want to display both Retail and Preferred pricing, no matter what the customer's wholesale pricing level.
I'm using radio buttons to display attributes. Currently, the display looks like:
- Quart ($10.50) (2 lbs.)
What I'd like it to look like is:
- Quart (2 lbs.)
Retail: $10.50 Preferred: $8.60
My shop is ZC 1.3.8 with Dual Pricing 1.5.
This may not be practical if your store has a large inventory or a great number of customers, but one solution is to swap your retail and wholesale tiers, making wholesale the default (0) and retail (1). That means everybody who enters the store has wholesale status and you'd have to "upgrade" them to the retail tier.
Remember to edit tpl_product_info_display.php.
Hello, I have a quick question:
My installation is adding retail price to a cart when not logged in, and then when a wholsale customer logs in during checkout - it doesn't update the price.
Is there an update to make this work? Or any other sort of workaround?
Thanks!
(sorry if this is a repost - I didn't find the answer easily in this thread)
AmriloJim, Thanks for the information. Ever since taking over this project I haven't touched the attributes side of this module. Attributes in Zen-Cart make no sense to me and I've done everything humanly possible to avoid them. As I understand it though the original Dual Pricing did work with attributes? Have you gotten it to work at all? or are you just trying to change the appearance of the pricing?
Sorry, I have been working hard on other projects... Time is a little bit short right now. It goes a long way when I get a thank you:
http://tinyurl.com/p3ez3o
You're right, you are going to have to do a call to the DB to pull the price out and put it in the wholesale price. Dual pricing won't calculate this for you since you are not logged in as a wholesale customer. you should modify the header.php file to call the whole sale price and then call it where you wish in you product info template file.
PHP becomes clear when you STARE at it... :)
So you can avoid our (small) embarrassment. When installing Dual Pricing, line #86 of tpl_product_info_display.php should be changed from:
echo '<span id="whole">Whole Sale Price: ';
to
echo '<span id="whole">Wholesale Price: ';
ie: Wholesale is one word. A customer pointed this out to us and said it made us look a little dumb.
Josh
I am running 1.3.8 for projectholds.com, and recently installed the dual pricing mod. Since then, I'm unable to update product descriptions in the admin area. I can type into the product description box, but when I preview to accept the changes what I typed in is not there. All the product descriptions appear to have been removed during the module install. There are no error messages, either. It just doesn't take. I've tried re-installing the mod, in case it was a bad upload, but to no avail.
The rest of the site seems to be working fine - I just can't put any product descriptions in (new or existing products). Any ideas?
Hi
The last sale I launched in our store, the retail and whole prices showed up as the same, even though they're not. The sale is now finished and the pricing is correct now. Any suggestions as to how to fix this?
I've recently upgraded from 1.3.7 to 1.3.8a
and using 1.32 of dual pricing.
I updated the files located:
admin/includes/ modules/ product/ collect info.php & preview info.php
from the 1.5 version to make the wholesale price option show properly in the product description section (where you'd enter the wholesale price).
Please help!!
Hi
I have this mod installed and love it thanks for it but i just have one question, is there anyway to have a sale for ONLY the retail prices and not the wholesale prices?
Hi guys, I need a little help with the dual pricing 1.5 module.
I've followed the install instructions to the letter, ie I uploaded all the files into their respective folders (including changing the YOUR_TEMPLATE folders) and installed the sql patch. The I proceeded to login to the admin panel and went to edit a customer (myself) to have the wholesale pricing, well the box to add in the wholesaler number doesn't show at all. So have I don't something wrong?
Just installed this mod and it's exactly what I was looking for, but... I have attribute issues... I've searched and everyone else seems to be able to get them working fine but I'm not?
I'm running ZC 1.3.7 so I downloaded the older version of multiple pricing (1.3 I believe) that was listed to work with 1.3.7 and everything works great. In the .readme file it says I can use commas to separate the different levels in the attributes, but it's not working at all. I read in this thread that dashes replaced commas in the newer versions and tried that even though I have an older version and still no luck. Am I doing something wrong?
Here's an example. We have a product with a base price of 10 and a wholesale price of 5.00. That displays fine.
But we have multiple attributes (say, size) that go up incrementally 1.00, 2.00, 3.00, etc. and for wholesale I'd like them to go up .50, 1.00, 1.50, etc. but that's not working
All of these items have multiple attributes that affect pricing -- could that be where the problem lies? I just tried it on another product with multiple attributes, but only one that affects the pricing and it still doesn't work.
Any help?
Thanks debbie :) Ill give it a go :)
For those (still) looking for the fix to show a product with both wholesale and retail prices to your wholesale customer, here it is. This thread has become quite large and is difficult to find specific things.
Installed and tested the fix first and it works fine (at least for me). Is correct at checkout, as well, showing either WS or RT prices, depending on how you have your customer set in admin as a wholesale or retail buyer.
http://www.zen-cart.com/forum/showpo...3&postcount=65
Rod
I have this same problem. I am pretty sure that Dual Pricing was working properly recently (I am still setting up the shop). I have since installed COWOA, Cross Sell and Easy Populate so suspect the problem lies with one of those mods.
I realised that COWOA had overwritten the admin/customers.php file in some areas which removed the wholesale box in the customer admin page. Did a file comparison and put the relevant bits back in and this box has now come back. But obviously I have missed something else.
What I need is for retail and wholesale to display on the product info page at the same time - it was doing this but now only retail shows - wholesale shows in the shopping cart. Can someone point me in the right direction please. Am looking in the tpl_product_info page but it looks ok??
cheers
Leah
I have a problem with this module. I have products priced by attributes, they show fine on the site, but when added to cart, they are added as retail price and not wholesale. I checked the thread but couldn't find the solution for this problem. Does anyone knows a solution for this? anyone else having the same issue with the latest version of this addon??
Thanks in advance for the help!
Maybe you could help - been searching for a long time to find an answer.
I am only allowed to sell certain products on line - thus need to use the"call for price or call for order" module which is fine but when people call I want to be able to take the order when logged in as a certain user (admin) to use the site to take the order....
I set up the wholesale module that gives me the ability to have 4 different levels of users - is there a way to allow one of these levels of user sto purchase all products online??
justwade
did you ever figure this out??
Now what would be a cool option is if the retail price could be set to "Call for Price", but when I tried that it would not allow a checkout for the wholesale either.
Is there a way to make the dualpricing module work as quantity discounts toward total order instead of individual dollar amounts? I have a store with the need of wholesale pricing but with a total order discount instead of each product set as wholesale prices. IF anyone has a solution, please let me know. Maybe this is not the module I really need??? Not sure.
Thanks
Pkat
Hello,
I have downloaded Version 1.5 of this addon which has been developed for Zen Cart v1.3.8, but I'm seeing conflicts in files where I don't think there should be?
Before I install any addons I compare all new files with a default installation of Zen Cart. Usually the changes applied by an addon are obvious, but in this case things are not adding up. For example...
In /admin/includes/modules/product/collect_info.php, the three lines...
// set image delete
$on_image_delete = false;
$off_image_delete = true;
...are in Zen Cart v1.3.8 and v1.3.8a, but not in the file supplied in the zip??
Further down that same file, the section on FCKeditor is totally different??
There are a few files like this in the supplied zip. I have compared to previous versions too but cannot find a match??
Is it possible that files selected for the zip were based on an already modified instance of zen cart?
If anyone can shed some light on this, it'd be much appreciated, I'm lost :)
Thanks
d.
Hey guys,
We're using a heavily modified version of Zen Cart 1.3.8.
I read through the posts in this forum, but couldn't find any information regarding this particular item.
We're looking to send out a newsletter to our wholesale customers only. We just use the built in cart newsletter module to send out our normal newsletter to customers. We have Newsletter Subscribe 2.1.1 installed for handling newsletter only subscribers.
Is there a mod either for the core Zen Cart, or the Dual Pricing that allows this functionality, and am I posting in the right place, or should I be looking for the core Zen Cart requests?
Thanks,
Stiven
I installed the mod 1.5 on a original english version (my working set is in italian) I mad the patch to db and copied all the files, but I ca not see the field in admin customer edit where to set the options.
It sounds like if I dod not upgrade the db but if I try do redo it I get the error message saying that the fields already exists, so the db is updated.
What I can have done wrong? also, how can I use this on a italian version?
Thanks
enzo
EDIT
I have fixed what above, but now I get another problem, the wholsale prices are not displayed. I have set the prices in the product and they show regularly when browisng the product in admin>catalog.
I have set the customer to be 1 2 3 or 4 but nothing changes. Only the retail price is shown.
What am I doing wrong?
thanks
EDIT 2
Ok I have fixed also edit 1.
The problema was simply that the customer needs to log out and log in back to activate the wholesale price.
What remains to be understood is only if I can use the mmod under the italian version as it is or if I need to copy the files in a different position.
Thanks
enzo
can i install Dual Pricing for 1.3.7 ?
Thanks
re /admin/includes/modules/product/collect_info.php
Version 1.3.8a version of this file is:
* @version $Id: collect_info.php 6131 2007-04-08 06:56:51Z drbyte $
Where the version of the same file in Dual Pricing package 1.6 is:
* @version $Id: collect_info.php 3009 2006-02-11 15:41:10Z wilt $
A huge difference...DP's file is 14 months out of date...no wonder it doesn't work...
more files are also out of date...
admin\includes\modules\product\preview_info.php
admin\customers.php
admin\includes\modules\product\collect_info.php
admin\includes\modules\product\preview_info.php
admin\includes\modules\category_product_listing.php
admin\includes\modules\copy_to_confirm.php
admin\includes\modules\update_product.php
includes\functions\functions_prices.php
yet his contribution page say 1.3.8....a total lie......
http://www.zen-cart.com/index.php?ma...roducts_id=166
Stay away from this or use it AYOR................
Has anyone had success (or issues) in using v1.6 of this mod? Thanks for any input.
Question, is anyone else having problems with Dual Pricing and Sale Maker? I've never used sale maker, just now I started using it and one of my clients noticed that shopping as a wholesale client the prices reflected for wholesale are the same ones for the special. Is it possible to have wholesale prices not affected at all by any sale or specials?
Thanks!
I have used this mod but there is no way to have wholesale indipendent from promotions or other set discounts. I ended up having two sites with two different database.
My ideal mod would give this result.
Standard customer view for defined product:
- Retail price 120,00 vat included
- Sale retail price 96,00 vat included 22% discount
Wholesale view for the same product
- Retail price 120,00 vat included
- Wholesale price 60,00 ex vat 40% discount
(in this example vat is 20%)
Like it is obvious wholesale price should be seen by wholesale customer only and after authorization.
Therefore, when a new customer register to the site, he should indicate if private or wholesale, and if wholesale, he can see the wholesale prices only after approval of the account. The retail price show should depend from the actual auth system.
The discount given to wholesale has to be set by
- Customer
- Category
- Product
with the ability of setting a discount for the customer and if a diifferent discount is set by category this overrides the customer discount category and if a discount is set by single product this overrides the category discount.
This means that each customer can have custom discounts set down to the single product.
The welcome email must be different for wholesale and retail customers.
If some one can create this code, I would be happy to know how much it costs.
Regards.
enzo
I really like this dual pricing. It works great. However I was just wondering if there is any way to have more then 4 levels. I have searched all over this website and I can not find anything on this.
I've just upgraded to zen 1.3.9. The mod appears to be working due to some heavy winmerging. However, if an item is "on special" the wholesale price = retail price (see screenshot). Prior to the upgrade, the "sale" price did not show at all when logged in with wholesale status and at least allowed adding the item at the standard wholesale price. Now it adds to the cart at the "retail sale" price, which in my example makes it higher than the wholesale rate.
It's ok if there is no wholesale price. Any ideas on this?
After further investigation ... the cart adds any product at the retail price for ALL ITEMS PRICED/WITH ATTRIBUTES!
Don't know if anyone has any ideas on this but since I upgraded to 1.3.9 dual pricing only shows retail price to wholesale customers when they are logged in. When products are added to cart, they are correctly added as the wholesale price and are shown correctly in the cart. The problem is, that until they add them, they can't see how much they are.
Can anyone shed any light in why this would be?
Thanks
Paul
Ignore my last post, it was the header.php I read a post that mentioned the master password contrib. and realised that I used to it so I just re-uploaded the dual pricing header.php and hey presto!
all working again!:clap:
I am trying to do a similar change to the Dual Price module for Zen-cart version 1.3.7 so i have downloaded the version for my zen and i have tried making modifications to suite a free_shipping product type but when ever i try to edit the product and save it, it just goes to a blank screen and doesn't save the price i have typed in.
Does anyone know if there is a modification i can make to make this easier.
Thanks
Brad
I have tried installing the latest Dual Pricing module into 1.3.9a but I am unable to obtain any kind of customer box which enables me to assign them a pricing category. Is the module not compatible with the latest ZC version?
OK, after fidlling with this for ages, checking the forums for this, I re-downloaded the whole package and recopied it via FTP to the site and now it works! Thanks for a great plugin.
I tried searching through this enormous thread but wasn't able to find a solution. I see others had the same problem but didn't see any responses with a fix. Anyway, the problem is I installed this addon to my Zen Cart 1.3.8a and it displays the wholesale price just fine. But when you add it to the shopping cart it charges full retail. Based on other messages I've read this seems to have to do with attributes which I use. What is the fix for this?
I had the Dual Pricing mod installed and working. I have found that it is now not working. The only changes made in between are installing the 'Fast and Easy Checkout' mod, and upgrading to ZenCart 1.3.9. I have since re-installed all the files for Dual Pricing (and upgraded to 1.6) and it still is not working. Does anyone know what might have happened, what I can check?
Thanks for the reply. I'm not sure what you are suggesting. Compare what files? I replaced all older files with the files from 1.3.9 and then verified that the wholesale price was still there. If you talking about product attributes with prices, there are none of those in my store (attributes with prices).
O.K., so after uploading (again) the necessary files, I see that it is working, but the wholesale price only shows in the cart. Is this the correct way the module works? I would like to show a logged-in wholesaler the wholesale price in the product display. Isn't that the way the module should work?
I just installed dual pricing, the "new text box under the email address box" is not there.
I looked into my database and it appears that the changes were made (additional attributes added etc).
Anyone help?
I am using zen cart v1.3.9d
Thanks!
never mind! I got it I re-uploaded the files and it worked, must have missed something the first time. Tried to delete the post but I was too late.
Why I see always in the product info page the b2c price (and on the shopping cart the price are b2b) for the products options?
Is there any version that worked with zen cart 1.3.9d? Thanks.
Hello All,
When I add a value to the "Prefix Trade" box, in the attributes control screen, it is not carried over into the shopping cart. The "retail prefix price" amount is what is calculated. On the product page, the prices are all showing correctly, its just when the wholesale account user goes to check out, the adjusted price, for the attribute chosen, is incorrect. Any thoughts? I am using dual pricing 2.0 and zen cart 1.3.9.d. I've already reloaded all the dual pricing files.
Thanks in advance for your help!!
John
Well i have tried several downloads of this and still have the same errors runnign through the site so i have given up.
im removing this mod and installing group pricing instead.
ok ive gone back to this. was db errors to blame, my bad.
for all those having issues make sure your db entries have no prfixes... works after that!
now i just have to figure out how the module actually works!
ok i have now fixed the issue and have corrected all the errors in this module to work with 1.3.9e
how do i upload them to the new module pack?
Bump for getting ^ answered.
I have just installed ZenCart version 1.3.9f and succesfully installed the Dual Pricing Wholesale Pricing mod using a considerable amount of WinMerging. It all works very well but I need to make a further modification, for which I need some help.
I want to have both the retail and wholesale prices displayed for all users, whether logged in or not, but still apply the correct price when added to the cart. I just can't find a way to display the wholesale price without a wholesale user being logged in.
Thanks in advance if any guru out there can help me.
Ian
Does anyone care to share their admin/includes/attibutes_controller.php file to compare? I thought I was able to edit the version 1.3.9f one, but I keep getting a parse error when I try to click on attributes controller in the admin.
:lamo:
Working Zencart version 1.3.9f
Ok, I think I might not have merged the shopping_cart.php files correctly. Could someone please tell me if, the dual pricing shopping_cart file can completely overwrite the the zen_cart file, or do they have to be merged together? I used winmerg, but my utter lack of php knowledge, means I have no clue what I am looking at. :frusty:
THANKS!
John
I am having a slight issue, and I dont know if it's due to the way I setup my item or if it's a bug in the addon.
Say I have a product called "Paint Brush"
In the product I have it set like this:
Product Priced by Attributes: Yes
Products Price (Net): 0
Products Price (Gross): 0
Wholesale Price (Net) 0 (do i do it like this since its priced by attributes?)
--------------------------------------------
In the Attributes Controller it looks like this:
Attribute "Wood"
Prefix price : 8 (retail price)
Prefix Trade: 5 (wholesale price)
Attribute "Metal"
Prefix price : 20 (retail price)
Prefix Trade: 13 (wholesale price)
--------------------------------------------
I have confirmed that when I am a Retail customer, I see this item as "Starting at 8.00" and with the Metal option as 20.00.
And that when I log in as a Wholesale customer, I see this item as "Starting at 5.00" and with the Metal option as 13.00.
However, when I went through the checkout process as my WHOLESALE CUSTOMER, it shows the retail pricing (depending on if I choose wood or metal) but no wholesale prices. All the way to the pay section. (I haven't bought an item but I am assuming that is the price it would bill right now)
Does anyone know if this is a known problem? Or if the way I set it up was done incorrectly? I know that with wholesale pricing you are supposed to put in the values inside the "Wholesale Price (Net)" but since i was doing it by attributes, I kept it blank. How would i do that?
Any help would be greatly appreciated.
I would like to see if anyone has done any further work or made any further advancements on the Dual Pricing module to update it to 1.3.9 versions of ZC. I have recently installed, and am in the process of "tweaking" a new ZC 1.3.9f install.
I have tried installing the DUAL Pricing module Uploaded by stevefriedman71 for ZC 1.3.8 but it made no changes in my ZC to show I had even uploaded anything, even in column titles. I then uploaded the one made by Delia Wilson Lunsford, for ZC 1.3.8 which has made noticeable changes. I now have the required text boxes to set a wholesale price, I have manually made the changes to my database as my hosting company does not allow me to run the scripts provided in the installation readme's, and I am able to input the pricing for the products, and verify them via the product overview page in the admin area.
As this particular contribution was designed with integration for COWOA, I have also installed COWOA for 1.3.9 made by JT of GTICustom. COWOA appears to be working perfectly, but I am having a problem with the products referencing the DUAL Pricing prices correctly.
Viewing the site as an anonymous or logged in non-wholesale user I am able to view products with the correct price. Upon logging into a wholesale account I am able to see the products on the main page with retail prices, as well as the previews with retail pricing on the category pages, but when I select a product to view its profile or purchase it, nothing below the product title header loads whether it has been assigned a wholesale price or not.
It seems as though evilonion may have located the solution based off of his post earlier in this topic but I did not see his upload in the contributions section so I am guessing it has not yet made it there. His earlier comment is as follows:
I am posting in to the forum rather than a PM in case he is not available or in case someone else has a solution. It seems to me as the novice PHP programmer with no DB experience, that the product info page simply needs to have code added/updated so that it can query the database to find the users wholesale status and then display the correct pricing based off of a status of 0, 1, 2, 3, or 4; however I have looked over the pages included in Delia's upload and none of the pages associated with a product page seem to contain this coding for the product pages, and since the other contribution for 1.3.8 didn't seem to do anything for me I am weary to use it as a comparison against the stock ZC product profile pages.
Has anyone been successful in installing the DUAL Pricing contribution on a 1.3.9 install, or is someone with more PHP programming experience available to give me some coding ideas/help as to how the code should be structured to display pricing on these pages? I'm not sure if the code is there and I am not able to find it on any of the pages, or if the code simply doesn't exist on the uploaded contribution, which explains why it won't display. If I was able to find it I may be able to troubleshoot it and figure it out, but without finding something to work with I am lost. :huh: Any help is appreciated. I have created an anonymous user account with random information in it so that anyone able to help may be able to better see what I am talking about. (Seems more effective than taking 4 screen shots.) The site is: http://shop.leatherbyjean.com. The anonymous user account can be accessed by logging in as test@leatherbyjean.com and a password of 12345. Obviously, this is a real store (not a demo) so please do not purchase with that account, as it is made up with random information. I will appreciate the donation, :clap: but will not be able to ship to a random address. I will also disable that account as soon as a resolution can be made as it will not be needed any further.
Thank you for any help, and I will try to get a contribution uploaded with these changes ASAP for anyone else who is running into the same problems.
Thank you,
Joey Phillips
webmaster@leatherbyjean.com
I am using this mod with 1.3.9c. When 1.3.9 first came out, I had a hell of a time getting this mod to work. I used Win Merge, which is awesome, but because I also use the COWOA mod, I had fun trying to get both mods merged and both working at the same time. I know I still need to upgrade to the latest Zen version, but I just need to find some time (and it seems its being updated often so I'm kinda putting it off). Anyway..... Dual Pricing and COWOA are working wonderfully for me, so if anyone would like a copy of my files, I suppose I can post them later tonight. :smile:
Yes, that would be GREAT! I downloaded a fresh copy of 1.3.9f and was trying to winMerge any files that made sense to be related to the cart displaying correctly but none of them that made sense to me existed in the default install files.
Thank You!
What are you guys talking about Winmerging with 1.3.9f ?
When I installed it, I just followed the instructions and had to do nothing special other than running the SQL statements and over writing the folders. All of it seems to be working great...
EXCEPT--my whole sale customers see the retail prices once they go to the shopping cart to purchase. Does anyone know the cause of this or how I can fix this please? We have a 98% up and ready to go live site, but this one thing is holding us back!