Zen Cart Logo

DUAL Pricing v2

Views: 363,368

Results 801 to 820 of 1,504
13 May 2011, 8:05 PM
#801
eastwin avatar

eastwin

New Zenner

Join Date:
Dec 2008
Posts:
34
Plugin Contributions:
0

DUAL Pricing v2

UPDATE:

I am now able to see wholesale pricing when logged in as a level 1 customer. Not sure why I couldn't before and can now, but hey, I'll take it.

My issue is with the add product page. When I add a new product, there is no longer a field in which to enter the wholesale price. Similarly, when I go to edit a product, the wholesale price is nowhere to be found, even though it's in the database and displaying in the front end of the site.

I just added a bunch of wholesale prices through phpMyAdmin, but that's obviously not a permanent solution.

13 May 2011, 10:48 PM
#802
gearheadniko avatar

gearheadniko

New Zenner

Join Date:
Oct 2009
Posts:
63
Plugin Contributions:
0

Re: DUAL Pricing v2

Go back a few pages in this forum and you will see we all share the same problem, when you use specials it messes up wholesale pricing. Get rid of your specials and you will see that your wholesale customers get the correct price. Check out the solution I offered hairydog, maybe that can help you till the conflict is resolved.
Niko

13 May 2011, 10:56 PM
#803
eastwin avatar

eastwin

New Zenner

Join Date:
Dec 2008
Posts:
34
Plugin Contributions:
0

Re: DUAL Pricing v2

I don't believe I'm using any specials.

Also, the pricing on my front end is accurate. I am just missing the wholesale field when I try to add or edit a product in the admin area.

13 May 2011, 11:45 PM
#804
gearheadniko avatar

gearheadniko

New Zenner

Join Date:
Oct 2009
Posts:
63
Plugin Contributions:
0

Re: DUAL Pricing v2

Backup & Re-Install

13 May 2011, 11:46 PM
#805
gearheadniko avatar

gearheadniko

New Zenner

Join Date:
Oct 2009
Posts:
63
Plugin Contributions:
0

Re: DUAL Pricing v2

I looked at your site and you show discounted products, how did you do that?

20 May 2011, 6:42 PM
#806
rjkkjr avatar

rjkkjr

New Zenner

Join Date:
Jul 2009
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

Was there ever a fix to Dual Pricing not adding the attributes trade price to the shopping cart?

20 May 2011, 6:47 PM
#807
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: DUAL Pricing v2

rjkkjr:

Was there ever a fix to Dual Pricing not adding the attributes trade price to the shopping cart?

I gave up with it and removed the whole thing. The client will use group discounts instead: they work properly, and they calculate the tax correctly as well!

20 May 2011, 7:46 PM
#808
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: DUAL Pricing v2

this weekend, i'll have it up by the end of this long weekend!

Twitch.

23 May 2011, 5:31 PM
#809
rjkkjr avatar

rjkkjr

New Zenner

Join Date:
Jul 2009
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

Thats great to hear it will be up soon. Thank you.

25 May 2011, 6:36 PM
#810
rjkkjr avatar

rjkkjr

New Zenner

Join Date:
Jul 2009
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

Where would I find the update that was coming out this past weekend? Would it show in the add ons page or in this forum? Thanks

28 May 2011, 2:14 PM
#811
gearheadniko avatar

gearheadniko

New Zenner

Join Date:
Oct 2009
Posts:
63
Plugin Contributions:
0

Re: DUAL Pricing v2

It turned out to be a VERY long weekend. Guess twitch didn't get it done.:no::no:

31 May 2011, 6:58 AM
#812
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: DUAL Pricing v2

Have a minimum for wholesale customers
I also want add a minimum of regular customers

How I do it please?

This code of class.minimum_order_amount.php:

<?php
 /**
 * class.minimum_order_amount.php
 *
 * @copyright Copyright 2005-2007 Andrew Berezin eCommerce-Service.com
 * @copyright Portions Copyright 2003-2006 Zen Cart Development Team
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: config.minimum_order_amount.php 1.0.1 20.09.2007 0:06 AndrewBerezin $
 */

 /**
 * Observer class used to check minimum order amount
 *
 */
 class minimum_order_amount extends base {
 /**
 * constructor method
 *
 * Attaches our class to the ... and watches for 4 notifier events.
 */
 function minimum_order_amount() {
 global $zco_notifier;
 // $_SESSION['cart']->attach($this, array('NOTIFIER_CART_GET_PRODUCTS_START', 'NOTIFIER_CART_GET_PRODUCTS_END'));
 $zco_notifier->attach($this, array('NOTIFY_HEADER_END_SHOPPING_CART', 'NOTIFY_HEADER_START_CHECKOUT_SHIPPING', 'NOTIFY_HEADER_START_CHECKOUT_PAYMENT', 'NOTIFY_HEADER_START_CHECKOUT_CONFIRMATION'));
 }
 /**
 * Update Method
 *
 * Called by observed class when any of our notifiable events occur
 *
 * @param object $class
 * @param string $eventID
 */
 function update(&$class, $eventID) {
 global $messageStack;
 global $currencies;
 switch ($eventID) {
 case 'NOTIFIER_CART_GET_PRODUCTS_END':
 case 'NOTIFY_HEADER_END_SHOPPING_CART':
 if ($_SESSION['cart']->count_contents() > 0 && $_SESSION['customers_wholesale'] == 1 && MIN_ORDER_AMOUNT > 0) {
 if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
 $_SESSION['valid_to_checkout'] = false;
 $messageStack->add('shopping_cart', sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_ORDER_AMOUNT)) . '<br />', 'caution');
 }
 }
 break;
 case 'NOTIFY_HEADER_START_CHECKOUT_SHIPPING':
 case 'NOTIFY_HEADER_START_CHECKOUT_PAYMENT':
 case 'NOTIFY_HEADER_START_CHECKOUT_CONFIRMATION':
 if ($_SESSION['cart']->count_contents() > 0 && $_SESSION['customers_wholesale'] == 1 && MIN_ORDER_AMOUNT > 0) {
 if($_SESSION['cart']->show_total() < MIN_ORDER_AMOUNT) {
 zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
 }
 }
 break;
 default:
 break;
 }
 }
 }
 ?>

Thank you !

31 May 2011, 3:20 PM
#813
rjkkjr avatar

rjkkjr

New Zenner

Join Date:
Jul 2009
Posts:
11
Plugin Contributions:
0

Re: DUAL Pricing v2

I wish I knew when the update is coming. I have been waiting for it, but I need to get this store up sooner rather than later so I might just have to remove all the dual pricing files and find a new solution.

Does anyone know what I need to change in the functions_prices.php file to get the attribute prices to show up correctly for the wholesale prices?

7 Jun 2011, 9:02 PM
#814
dreday42 avatar

dreday42

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: DUAL Pricing v2

Well i installed the dual pricing mod and it was working, or at least it was showing up. I was looking to add the easy populate mod as well.

I went to change the 'retail' and 'wholesale' text and uploaded the file when i noticed that the products were not showing up any more. I added the original file back and still nothing. I am not sure what i did between yesterday and today that would do that.

Basically when you click on a product nothing displays. You can see the list of products in the category but not the individual products.

Any idea as to which file i need to fix? I have been reading this thread for three days now and i think i have seena fix for this problem but can not seem to find it again.

http://ftffacoop.com

my site.

Thanks DRE

8 Jun 2011, 2:33 PM
#815
dreday42 avatar

dreday42

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: DUAL Pricing v2

well it seems that the tpl_product_info_display.php is not loading, or is not in the right folder. I saw that i had it in two of the template folders, includes/templates/template_default/templates but the mod suggested to put it in my custom template folder which at the time did not have the same path.

But i did remove the tpl_product_info_display.php from the custom template and still nothing. So i am still not sure what is going on. Here is my php if anyone can spot anything missing or not needed in it.

<?php

/**

 * Page Template

 *

 * Loaded automatically by index.php?main_page=product_info.<br />

 * Displays details of a typical product

 *

 * @package templateSystem

 * @copyright Copyright 2003-2006 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: tpl_product_info_display.php 16242 2010-05-08 16:05:40Z ajeh $

 */

 //require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');

?>

<div class="centerColumn" id="productGeneral">



<!--bof Form start-->

<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?>

<!--eof Form start-->



<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>



<!--bof Category Icon -->

<?php if ($module_show_categories != 0) {?>

<?php

/**

 * display the category icons

 */

require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>

<?php } ?>

<!--eof Category Icon -->



<!--bof Prev/Next top position -->

<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>

<?php

/**

 * display the product previous/next helper

 */

require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>

<?php } ?>

<!--eof Prev/Next top position-->



<!--bof Main Product Image -->

<?php

  if (zen_not_null($products_image)) {

  ?>

<?php

/**

 * display the main product image

 */

   require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>

<?php

  }

?>

<!--eof Main Product Image-->



<!--bof Product Name-->

<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>

<!--eof Product Name-->



<!--bof Product Price block -->

<h2 id="productPrices" class="productGeneral">

<?php

// base price

  if ($show_onetime_charges_description == 'true') {

    $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';

  } else {

    $one_time = '';

  }

  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']);

?></h2>

<!--eof Product Price block -->



<!--bof free ship icon  -->

<?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>

<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>

<?php } ?>

<!--eof free ship icon  -->



 <!--bof Product description -->

<?php if ($products_description != '') { ?>

<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>

<?php } ?>

<!--eof Product description -->

<br class="clearBoth" />



<!--bof Add to Cart Box -->

<?php

if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {

  // do nothing

} else {

?>

            <?php

    $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');

            if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {

              // hide the quantity box and default to 1

              $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);

            } else {

              // show the quantity box

    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);

            }

    $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);

  ?>

  <?php if ($display_qty != '' or $display_button != '') { ?>

    <div id="cartAdd">

    <?php

      echo $display_qty;

      echo $display_button;

            ?>

          </div>

  <?php } // display qty and button ?>

<?php } // CUSTOMERS_APPROVAL == 3 ?>

<!--eof Add to Cart Box-->



<!--bof Product details list  -->

<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>

<ul id="productDetailsList" class="floatingBox back">

  <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>

  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>

  <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>

  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>

</ul>

<br class="clearBoth" />

<?php

  }

?>

<!--eof Product details list -->



<!--bof Attributes Module -->

<?php

  if ($pr_attr->fields['total'] > 0) {

?>

<?php

/**

 * display the product atributes

 */

  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>

<?php

  }

?>

<!--eof Attributes Module -->



<!--bof Quantity Discounts table -->

<?php

  if ($products_discount_type != 0) { ?>

<?php

/**

 * display the products quantity discount

 */

 require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>

<?php

  }

?>

<!--eof Quantity Discounts table -->



<!--bof Additional Product Images -->

<?php

/**

 * display the products additional images

 */

  require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>

<!--eof Additional Product Images -->



<!--bof Prev/Next bottom position -->

<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>

<?php

/**

 * display the product previous/next helper

 */

 require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>

<?php } ?>

<!--eof Prev/Next bottom position -->



<!--bof Tell a Friend button -->

<?php

  if ($flag_show_product_info_tell_a_friend == 1) { ?>

<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>

<?php

  }

?>

<!--eof Tell a Friend button -->



<!--bof Reviews button and count-->

<?php

  if ($flag_show_product_info_reviews == 1) {

    // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button

    if ($reviews->fields['count'] > 0 ) { ?>

<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>

<br class="clearBoth" />

<p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>

<?php } else { ?>

<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>

<br class="clearBoth" />

<?php

  }

}

?>

<!--eof Reviews button and count -->





<!--bof Product date added/available-->

<?php

  if ($products_date_available > date('Y-m-d H:i:s')) {

    if ($flag_show_product_info_date_available == 1) {

?>

  <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>

<?php

    }

  } else {

    if ($flag_show_product_info_date_added == 1) {

?>

      <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>

<?php

    } // $flag_show_product_info_date_added

  }

?>

<!--eof Product date added/available -->



<!--bof Product URL -->

<?php

  if (zen_not_null($products_url)) {

    if ($flag_show_product_info_url == 1) {

?>

    <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>

<?php

    } // $flag_show_product_info_url

  }

?>

<!--eof Product URL -->



<!--bof also purchased products module-->

<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>

<!--eof also purchased products module-->



<!--bof Form close-->

</form>

<!--bof Form close-->

</div>                                                                         
10 Jun 2011, 6:47 PM
#816
kidtwist avatar

kidtwist

New Zenner

Join Date:
May 2009
Posts:
30
Plugin Contributions:
0

Re: DUAL Pricing v2

does anyone know if you can set this mod up by percentage? i have a customer with over 5,000 products on his zen and i dont feel like doing the math for all of them.

thanks

12 Jun 2011, 2:48 AM
#817
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: DUAL Pricing v2

Sorry all, I encountered a bit of an issue. After installing 1.3.9h fresh, adding the wholesale repair package 1 and the first steps of 2, I installed stock by attributes and the bloody thing works perfectly.

So now I have a live site that's been taking wholesale orders for several months with the complete package 1 and 2 fix for 1.3.9h, and a second site with all of pack 1, and 7 steps of package 2 for 1.3.9h and I am trying to find out why they both work.

I have been reviewing the changes to the code for the entire package 2 repair and it just doesn't make any sense.

I'll post access to my live site in my next post with real world examples and a wholesale login as proof the wholesale site works!

Twitch.

12 Jun 2011, 3:06 PM
#818
gearheadniko avatar

gearheadniko

New Zenner

Join Date:
Oct 2009
Posts:
63
Plugin Contributions:
0

Re: DUAL Pricing v2

You should post what you have and let us help you.

12 Jun 2011, 5:55 PM
#819
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: DUAL Pricing v2

gearheadniko:

You should post what you have and let us help you.

This is the clean install, wholesale pack one, 7 steps of pack two and stock by attributes 4.7 with table 1.6...

**http://carlycat.com/**

There are three shopping methods:
1 - random window shopper can add products to the cart
2 - login as a retail customer (sign up with your own info here)
3 - login with the wholesale testing account:
User - [email protected]
Pass - Wholesale

There are two products, one as regular or base priced, the second priced by attributes.

Please don't go uninstalling any of your carts thinking this will work for you, as I mentioned before the live corporate website I work on DID NOT work with this method, it works with the final patches from package 2 (these have not been published to the forum yet) Completing package 2 updates also creates a separate wholesale section and corrects the subtotal passing issues we were all having.

Twitch.

13 Jun 2011, 8:04 PM
#820
sportbiker avatar

sportbiker

Zen Follower

Join Date:
Aug 2008
Location:
Southern California
Posts:
127
Plugin Contributions:
0

Re: DUAL Pricing v2

Twitch,

First - thanks for taking the time to work on this! I'll stay out of your hair until you feel confident you have it ready, but I'm curious in your testing if when running 'SaleMaker', did you encounter any issues?

On my original install with this mod, I had issues of it posting wrong pricing when SaleMaker was active which is why I've avoided it for right now. Just curious whatya know.

Again — this will be an awesome module when you're ready to give it a "thumbs up". Thanks again.