Re: Quantity Discounts for 1.3
Another suggestion has been added to the Quantity Discounts FAQ:
http://www.thatsoftwareguy.com/zenca...discounts.html
If you are concerned that people don't know they might have a discount coming
when they look at their cart, try changing SUB_TITLE_SUB_TOTAL in includes/languages/english/shopping_cart.php to something like 'Sub-Total BEFORE Discount'
This will emphasize the fact that a discount will be added at checkout time.
Good luck,
Scott
Re: Quantity Discounts for 1.3
Is there a way to add an 'if' statement before this code so when I place it into
tpl_product_info_display.php, it will only display the discount info if that item is actually one of the items that include a quantity discount? Otherwise, nothing will appear (so it won't confuse the customer with a generic statement that's not needed otherwise.
I don't mind typing in all my included (or excluded) categories or items, but I can't figure out the code to create an 'if' statement.
thanks,
Jeff Michaels
Musical Creations Ltd.
<?php
$value = "ot_quantity_discount.php";
include(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_quantity_discount();
echo '<div class="content" id="discountPolicy">';
echo '<h2>' . STORE_POLICY . '</h2>';
echo $discount->get_html_policy();
echo '<br /></div>';
?>
Re: Quantity Discounts for 1.3
Yes you can, Jeff. Just be sure to put a reminder note in ot_quantity_discount.php (in whatever user exits you have used) to keep this file in sync with tpl_product_info_display.php.
The code in tpl_product_info_display.php for a specific category would be:
if ($current_category_id == 14) {
...
}
or for a specific product
if ((int)$_GET['products_id'] == 27) {
...
}
Good luck,
Scott
Re: Quantity Discounts for 1.3
Scott,
Is this to include or exclude?
thanks,
Jeff
Re: Quantity Discounts for 1.3
Scott,
2 other questions:
1--
How do you correctly write this code for multiple exits (multiple ifs) ?
What did I do wrong here?
I did one and it worked perfectly, but I cannot get 2 to 'code' correctly.
<?php
if ($current_category_id == 68)
if ($current_category_id == 69) { {
$value = "ot_quantity_discount.php";
include(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_quantity_discount();
echo '<div class="content" id="discountPolicy">';
echo '<h2>' . STORE_POLICY . '</h2>';
echo $discount->get_html_policy();
echo '<br /></div>';
} }
?>
2--
What is the code for 'exclude', instead of 'include?
I have less to exclude, so there would be less of them to write in
thanks,
Jeff
Re: Quantity Discounts for 1.3
Examples of inclusion and exclusion of this message for specific product and category ids are provided in my page
http://www.thatsoftwareguy.com/zenca..._messages.html
Good luck,
Scott
Re: Quantity Discounts for 1.3
Yep,
That does it! thanks Scott
Re: Quantity Discounts for 1.3
Quantity Discounts interoperates with 1.3.6. There have been changes to the tax computation in other order total modules that I may incorporate (possibly optionally) at a later date.
Thanks,
Scott
Re: Quantity Discounts for 1.3
Oh, by the way, the customization to shopping_cart.php from early versions of Quantity Discounts is no longer needed if you're upgrading to 1.3.5 or 1.3.6. Just upgrade to the latest Quantity Discounts and you'll be all set.
Scott
Re: Quantity Discounts for 1.3
scott, I sent you an email, hopefully you received it. I have a what seems to be a more complicated discount model than can be created with the current exits.
I have two categories that are sub-cats of the same parent - I want to create a discount where the customer can mix or match quanties from either or both of thse categories. the discount from categoryA with items >4 = X and the discount from category B =Y. The >4 as I said can be composed of products from either, or both categories. I've explained it in more detail in email.
My question is, can this be done with your additional exits that you offer on your site? I really am pressed on this and am interested in contacting you.
Thanks