Results 1 to 10 of 1684

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Price Updater

    Quote Originally Posted by jimmie View Post
    are you saying i cant turn the multiplier off
    There is currently no built in way to turn the multiplication off. If were wanting that, then I envision that would have to back calculate the per product cost which would likely introduce rounding errors in the display. An extreme example: buy one product for 0.04, get one for 0.01 extra. Price per product: 0.025 or 0.03 for currencies that have only 2 decimals... then the customer may seem like they have a discount, but if the math worked out with more product to round down instead, in their head they would think that they were getting a discount when in actuality they would still get charged the additional amount when they go to the cart and checkout...

    A second way to approach it is: does the shopping cart ignore the quantity or do they still get charged by the $ultiplication?

    A third approach: what business need is trying to be met. Ie. Why should the product price not be multiplied by the quantity of product to be added?

    To otherwise answer the question: no not saying that it can't be done, anything can be done with the software. It's open source and can be modified to suit...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default Re: Price Updater

    i can probably live with the standard way it mutiplies + -, what about turning off the total product price display anyway to not have it mutiply before adding to cart

  3. #3
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default Re: Price Updater

    also noticed that my stock and instock as well as free shipping pics disapear or change upon price change, if i turn off price updater it works as should
    https://jnsflooringandsupplies.com/i...roducts_id=160

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Price Updater

    Quote Originally Posted by jimmie View Post
    also noticed that my stock and instock as well as free shipping pics disapear or change upon price change, if i turn off price updater it works as should
    https://jnsflooringandsupplies.com/i...roducts_id=160
    Because javascript is involved, before turning it on, be sure that your page passes validation. Otherwise actions like to make a section "disappear" may make more than intended disappear. With no magical recreation technique it may remain absent until a new page load.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default Re: Price Updater

    this is the code to turn on or off my custom pics
    Code:
    <!--bof not in JNS Flooring and Supplies stock icon  -->
                <?php if ($products_quantity <= 0) { ?>
                    <?php echo TEXT_PRODUCT_NOT_IN_STOCK; ?>
                <?php } ?>
                <!--eof not in JNS Flooring and Supplies stock icon  --> this one dissapears after price updater refeshes its price
    Code:
    <!--bof free ship Freight icon  -->
                            <?php if($product->fields['product_is_always_free_shipping'] == 3) { ?>
                                <div id="freeShippingunder"><?php echo TEXT_PRODUCT_FREE_SHIPPING_FREIGHT; ?></div>
                            <?php } ?>
                            <!--eof free ship Freight icon  -->
    this 1 still shows

  6. #6
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default Re: Price Updater

    figured it out i had moved this </h2> to after, moved it to b4

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Price Updater

    Quote Originally Posted by jimmie View Post
    figured it out i had moved this </h2> to after, moved it to b4
    Hopefully when that got moved, all of the other tags that were still open got closed in the reverse order. Though, looking at the source code, that does not appear to be the case at least in the beginning of the whole thing:
    Code:
    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <span id="retail">Price: $125.69</h2>
        <!--eof Product Price block -->
    The span is still open when the h2 that contained it is now closed...

    That is part of what I was talking about regarding passing html validation.

    Regarding ignoring the quantity box, there are basically two conditions to consider: 1) do you want calculation to consider the need to order a minimum quantity for any product, 2) do you want all prices affected to be based on a quantity of 1.

    Further could force all product to automatically only consider the addition of a set quantity and remove the quantity box from the customer, but that potentially affects how your customers "shop".

    The line of code that evaluates the user entered quantity is found in: includes/classes/dynamic_price_updater.php

    And is similar to this in several locations:
    Code:
    $this->shoppingCart->contents[$products_id] = array('qty' => (convertToFloat($_POST['cart_quantity']) <= 0 ? zen_get_buy_now_qty($products_id) : convertToFloat($_POST['cart_quantity'])));
    The key part of finding the location(s) to edit are where 'qty' is used and assigning the value to be used. Currently it checks the number entered, if it is less than the minimum allowed then the minimum is used (final purchase requires the minimum), if it exceeds the minimum then basically the value entered is used. You may want to use 1 regardless...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Help with dynamic price updater
    By anderson6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Jul 2014, 08:52 AM
  2. v139h Dynamic Price Updater 3.0 Help!
    By Newbie 2011 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Mar 2014, 06:46 AM
  3. Dynamic Price Updater Error
    By Inxie in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Oct 2012, 06:19 PM
  4. Alternative to Dynamic Price Updater?
    By thebigkick in forum General Questions
    Replies: 0
    Last Post: 9 Jul 2012, 11:41 PM
  5. Dynamic Price Updater with href
    By maxell6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Mar 2012, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg