Zen Cart Logo

DUAL Pricing v2

Views: 363,359

Results 861 to 880 of 1,504
2 Sep 2011, 2:11 AM
#861
keystonewebworks avatar

keystonewebworks

Zen Follower

Join Date:
Oct 2005
Posts:
172
Plugin Contributions:
0

DUAL Pricing v2

here is what happens:

  1. try to change/add an attribute to a current or new product
  2. you can get as far as attributes_controller.php
  3. once you click "insert" you get taken back to the main admin page and the attribute does not get added/changed
2 Sep 2011, 2:20 AM
#862
keystonewebworks avatar

keystonewebworks

Zen Follower

Join Date:
Oct 2005
Posts:
172
Plugin Contributions:
0

Re: DUAL Pricing v2

ok, think i tried this and it worked:

  1. replace "attributes_controller.php" from the add on module with "attributes_controller.php" from your current version

i did this with version 1.3.9h and everything seems to be working just fine now

2 Sep 2011, 2:49 PM
#863
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: DUAL Pricing v2

Great, glad to hear it is working! It would be a good idea to double-check that all the other files are from the latest version too... just in case there's another piece of the module that's broken.

6 Sep 2011, 8:24 PM
#864
totalsam avatar

totalsam

Zen Follower

Join Date:
Jan 2009
Posts:
126
Plugin Contributions:
0

Re: DUAL Pricing v2

This seems to be a common repost but has anyone managed to confirm a fix to the wholesale request radio button not appearing in the customer sign up screen?

7 Sep 2011, 2:27 PM
#865
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: DUAL Pricing v2

Hello All,

I'm using the Dual Pricing Mod with the multi-site module and it works very well. I would like to be able to set a wholesale price to "Call for Price" and display the retail price that is set. I would appreciate any suggestions. I searched both the multi-site and dual pricing threads and couldn't find an answer.

thanks

7 Sep 2011, 5:20 PM
#866
lostintranslation avatar

lostintranslation

New Zenner

Join Date:
Sep 2007
Posts:
35
Plugin Contributions:
0

Re: DUAL Pricing v2

keystonewebworks:

here is what happens:

  1. try to change/add an attribute to a current or new product
  2. you can get as far as attributes_controller.php
  3. once you click "insert" you get taken back to the main admin page and the attribute does not get added/changed

I had the same issue.

9 Sep 2011, 8:53 PM
#867
aznp4ul avatar

aznp4ul

New Zenner

Join Date:
Jan 2010
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

Hello,

I finally got the dual pricing to work BUT wholesale pricing is only in the cart. I did everything in post 687. I also did #3 in the readme. any clue? I have 1.3.9h and dual price 1.8. The product page will say "Wholesale Price:" but that's actually "Retail". Not sure why it does that.

21 Sep 2011, 2:00 PM
#868
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: DUAL Pricing v2

I have downloaded Dual Pricing 1.3.8 and installed it on 1.3.9H Zen...for the most part it is working fine, but I cannot get the Trade Price in the attributes to work.

It is not saving the cost at all in the field...so if I enter. 10.00 save the attribute and then go back to it the 10.00 is not there.....

I have reviewed most of this thread and am just baffled....

I have also uploaded the attributes_controller file that came with the mod but that caused the saving of the attribute to go back to the admin home page - same that others have experience....so I manually copied over the code to make this mod work....

Any help with getting the attributes wholesale field working - I have to have this on this site.....THANK YOU!!!!

23 Sep 2011, 5:55 AM
#869
mercurysoun_it avatar

mercurysoun_it

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi all, I use Zen Cart v1.3.9h and Dual Pricing 1.8. It is a good add on but I can't use discounts for quantities for wholesalers .
I can see the table with discounts
http://i55.tinypic.com/2e2gght.jpg

But they don't appear in the shopping cart
http://i51.tinypic.com/dx1dn8.jpg

What can I do? Thank you very much ;)

23 Sep 2011, 9:07 PM
#870
akrogers avatar

akrogers

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Re: DUAL Pricing v2

I've been using the mod and it works great. However, I have a question I hope someone may be able to answer. I saw on the download page for version 1.7, it says "Also added a simple customer wholesale request radio on the register page and if they ask for a wholesale account, you get notified in the admin area" I don't see how to enable that radio button. Could someone let me know how to set that up so someone can request a wholesale account when they register? Thank you!
--Angela

25 Sep 2011, 4:53 PM
#871
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

Re: DUAL Pricing v2

I have Dual Pricing 1.7 and Column Grid add ons installed.
On the product listing page I would like for the price to show "msrp: $9.99" if customer is not logged in and "dealer: 2.99 / msrp: $9.99" if the customer is logged in. Much like product_info_display.php

I have tried to pull the code from product_info_display and insert into product_listing.php but failed. I think one of my dilemna's in working this out is that I have column grid add on installed.

Anyone able to help please? you can view the site at:
http://skippypagesCHANGETODOTCOM/zen-cart-v1.3.9h-full-fileset-10262010/index.php?main_page=index&cPath=1080
Final results would be

Not logged in for grid layout portion
MSRP: $9.99

Logged in for grid layout portion
Dealer: $2.99
MSRP: $9.99

For categories where I have the products listed as row format, I would just need the header to change from MSRP: to Dealer.

Thanks

27 Sep 2011, 1:19 PM
#872
idc1 avatar

idc1

Zen Follower

Join Date:
Jul 2011
Posts:
139
Plugin Contributions:
0

Re: DUAL Pricing v2

Very glad to see the forums are back up and running. To follow up on my last post:
**
Original (from /includes/modules/YOUR_TEMPLATE/product_listing.php):**

case 'PRODUCT_LIST_PRICE':
$lc_text = TABLE_HEADING_PRICE;
$lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' . PRODUCTS_LIST_PRICE_WIDTH : '');
$zc_col_count_description++;
break;

Trying to take a bit of code out of /includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php from the Dual pricing add-on and blend with the /includes/modules/YOUR_TEMPLATE/product_listing.php. Think I should end up with something like below, but it's not giving me the results I'm after

case 'PRODUCT_LIST_PRICE':
$lc_text-> if ($_SESSION['customers_wholesale'] && $_SESSION['customers_wholesale'] != '0' ) {

echo '<span id="whole">Dealer: ';
} else {
echo '<span id="retail">MSRP: ';
}
;

$lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' .

PRODUCTS_LIST_PRICE_WIDTH : '');
$zc_col_count_description++;
break;

30 Sep 2011, 9:37 PM
#873
edingtoncollection avatar

edingtoncollection

New Zenner

Join Date:
Sep 2011
Posts:
4
Plugin Contributions:
0

Re: DUAL Pricing v2

I am using zen 1.3.9h and have installed Dual Pricing - Wholesale Pricing v 1.8. It is working great and I love it! Now I am looking for the same feature in categories.

I have read postings about hideCategories and hidden wholesale working with Dual Pricing. What I have found is hideCategories just generally hides Categories from everyone. And hidden wholesale just hides wholesale "products" not categories.

I found Display Specific Categories for a logged in Customer Only at http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=1763. This module allows a category to be seen by everyone or only seen by the "one" customer it is assigned to.

I am a beginner at PHP but it would seem that the Display Specific Categories for a logged in Customer code could easily be modified to incorporate the Dual Pricing code. Instead of assigning a category to a specific customer, assign a number higher than zero - like the way you do a customer in Dual Pricing.

By merging these two modules together we could have Dual Pricing and Dual Categories.

This way wholesale products; bulk items, marketing supplies, etc. categories could be visible to wholesale Dual Price customers. Please consider this.

2 Oct 2011, 6:38 PM
#874
al_musafir avatar

al_musafir

New Zenner

Join Date:
Oct 2011
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi,

I founded the same problem and fixed it. When I added and attribute to a products send me directly to index admin.

I compare the original attributes_controller.php from last zencart verison 1.3.h with the attributes_controller.php from Dual price and I found that <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?> are missing three times. I added it and now works rigth.

But now I have another problem, in the front when I add a product with attribute to the shopping car show the wholesale prices but add the retail price attribute. I founded it in another last version but now I don´t know how to fix.

¿any one can help me?

Thanks

4 Oct 2011, 12:28 AM
#875
joeyrocket avatar

joeyrocket

New Zenner

Join Date:
Jan 2011
Posts:
16
Plugin Contributions:
0

Re: DUAL Pricing v2

I don't know if this has been covered, but is there a way to make a certain module only available to one customer group?

Specifically, I want to make the Optional Shipping Insurance Module by Numinix available only to wholesale customers.

5 Oct 2011, 9:43 PM
#876
al_musafir avatar

al_musafir

New Zenner

Join Date:
Oct 2011
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi,
In older version attributes works fine.
I dont know why not runs now.

Can any one fix that?

:-) Thanks

6 Oct 2011, 6:28 PM
#877
edingtoncollection avatar

edingtoncollection

New Zenner

Join Date:
Sep 2011
Posts:
4
Plugin Contributions:
0

Re: DUAL Pricing v2

I use Zen Cart 1.3.9h and Dual Price v 1.8. When there is a special or sale price I was having a problem with the special or sale price overwriting the wholesale price when a wholesaler was logged in. Ex: Retail: $99.99, On Sale for $89.99, Wholesale price $59.99 and if logged in as a wholesaler the resulting price would be $89.99, not the $59.99.

To fix this I made the following changes in the functions_prices.php page:

under: //get specials price or sale price
find:

if ($specials->RecordCount() > 0) {
// if ($product->fields['products_priced_by_attribute'] == 1) {
$special_price = $specials->fields['specials_new_products_price'];
} else {
$special_price = false;
}

replace with:

if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
$special_price = false;
} else {

if ($specials->RecordCount() > 0) {

// if ($product->fields['products_priced_by_attribute'] == 1) {
$special_price = $specials->fields['specials_new_products_price'];
} else {
$special_price = false;
}
}

and under: // get sale price
find:
if ($sale->RecordCount() < 1) {
return $special_price;
}

replace with:

if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
$tmp_special_price = $product_price;
} else {
if ($sale->RecordCount() < 1) {
return $special_price;
}
}


Now the special or sale prices are ignored when a wholesale customer is logged in. I processed orders both under a retail test customer and a wholesale test customer and it is working fine.

6 Oct 2011, 8:38 PM
#878
edingtoncollection avatar

edingtoncollection

New Zenner

Join Date:
Sep 2011
Posts:
4
Plugin Contributions:
0

Re: DUAL Pricing v2

edingtoncollection:


Now the special or sale prices are ignored when a wholesale customer is logged in. I processed orders both under a retail test customer and a wholesale test customer and it is working fine.

I realized I placed some code in the wrong spot.... here is the corrected code:

The following changes in the functions_prices.php page:

under: //get specials price or sale price
find:

if ($specials->RecordCount() > 0) {
// if ($product->fields['products_priced_by_attribute'] == 1) {
$special_price = $specials->fields['specials_new_products_price'];
} else {
$special_price = false;
}

replace with:

if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
$special_price = false;
} else {

if ($specials->RecordCount() > 0) {

// if ($product->fields['products_priced_by_attribute'] == 1) {
$special_price = $specials->fields['specials_new_products_price'];
} else {
$special_price = false;
}
}

and under: // return special price only
find:

if ($specials_price_only==true) {
if (zen_not_null($special_price)) {
return $special_price;
} else {
return false;
}
} else {
// get sale price

// changed to use master_categories_id
// $product_to_categories = $db->Execute("select categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'");
// $category = $product_to_categories->fields['categories_id'];

  $product_to_categories = $db->Execute("select master_categories_id from " . TABLE_PRODUCTS . " where products_id = '" . $product_id . "'");
  $category = $product_to_categories->fields['master_categories_id'];

  $sale = $db->Execute("select sale_specials_condition, sale_deduction_value, sale_deduction_type from " . TABLE_SALEMAKER_SALES . " where sale_categories_all like '%," . $category . ",%' and sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001-01-01') and (sale_date_end >= now() or sale_date_end = '0001-01-01') and (sale_pricerange_from <= '" . $product_price . "' or sale_pricerange_from = '0') and (sale_pricerange_to >= '" . $product_price . "' or sale_pricerange_to = '0')");
  if ($sale->RecordCount() < 1) {
     return $special_price;
  }

replace with:

if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
return false;
} else {
if ($specials_price_only==true) {
if (zen_not_null($special_price)) {
return $special_price;
} else {
return false;
}
} else {
// get sale price

// changed to use master_categories_id
// $product_to_categories = $db->Execute("select categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'");
// $category = $product_to_categories->fields['categories_id'];

  $product_to_categories = $db->Execute("select master_categories_id from " . TABLE_PRODUCTS . " where products_id = '" . $product_id . "'");
  $category = $product_to_categories->fields['master_categories_id'];

  $sale = $db->Execute("select sale_specials_condition, sale_deduction_value, sale_deduction_type from " . TABLE_SALEMAKER_SALES . " where sale_categories_all like '%," . $category . ",%' and sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001-01-01') and (sale_date_end >= now() or sale_date_end = '0001-01-01') and (sale_pricerange_from <= '" . $product_price . "' or sale_pricerange_from = '0') and (sale_pricerange_to >= '" . $product_price . "' or sale_pricerange_to = '0')");

  if ($sale->RecordCount() < 1) {
     return $special_price;
  	}
  }

Without this correction there was a problem with the prices being displayed as both a wholesale price and a sale price with the same figures. Sorry for any confusion.

9 Oct 2011, 5:45 PM
#879
al_musafir avatar

al_musafir

New Zenner

Join Date:
Oct 2011
Posts:
5
Plugin Contributions:
0

Re: DUAL Pricing v2

Hi,
Thanks that´s works fine.

There is no solution for attribute´s problem?
Is very important for this contribution. Now is like a beta.

If anywant found a fix I can make same donations. :bigups:

9 Oct 2011, 10:24 PM
#880
mercurysoun_it avatar

mercurysoun_it

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

Re: DUAL Pricing v2

thank you very much your edit is fine :laugh: but I still have a problem on the quantity discount.
When I log as wholesale I can see the wholesale prices for quantity, but in the basket is indicated only the first wholesale price.
The volume discount will not work:frusty:. What can I do?