Page 233 of 248 FirstFirst ... 133183223231232233234235243 ... LastLast
Results 2,321 to 2,330 of 2475
  1. #2321
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by nesum18 View Post
    quick question here: how can i NOT display the points on the product info page and only have the points calculate during the checkout?

    Thank you in advance.
    Remove this chunk of code from the /includes/templates/your_template/templates/tpl_product_info_display.php.
    Around line number 147

    PHP Code:
      <!--bof Product Reward Points block -->

    <h2 id="productRewardPoints" class="productRewardPoints">

    <?php

    /**

     * display the product reward points

     */

       
    include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_product_reward_points.php');

       
    ?>

    </h2>

    <!--eof Product Reward Points block -->
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  2. #2322
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by countrycharm View Post
    Remove this chunk of code from the /includes/templates/your_template/templates/tpl_product_info_display.php.
    Around line number 147

    PHP Code:
      <!--bof Product Reward Points block -->

    <h2 id="productRewardPoints" class="productRewardPoints">

    <?php

    /**

     * display the product reward points

     */

       
    include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_product_reward_points.php');

       
    ?>

    </h2>

    <!--eof Product Reward Points block -->
    I don't use this mod, but do have a suggestion for a future enhancement, perhaps adding some admin on/off switches for this code block so that one can control it from the admin makes sense.. this way folks don't have to do code edits..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #2323
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by DivaVocals View Post
    I don't use this mod, but do have a suggestion for a future enhancement, perhaps adding some admin on/off switches for this code block so that one can control it from the admin makes sense.. this way folks don't have to do code edits..
    That feature would be nice. I really don't have the time but anyone can update the module or share the code which adds this feature, then it will be include.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  4. #2324
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by countrycharm View Post
    anyone can update the module or share the code which adds this feature, then it will be include.
    Yes I know.. was making a general suggestion for an enhancement, not to be construed as request to anyone in particular...
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #2325
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by DivaVocals View Post
    Yes I know.. was making a general suggestion for an enhancement, not to be construed as request to anyone in particular...
    I know that, I also know you are always out to help and suggest how to make things better. You are one of the nicest people I know. Thank you for been there when we need help and don't know what to do.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  6. #2326
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by countrycharm View Post
    I know that, I also know you are always out to help and suggest how to make things better. You are one of the nicest people I know. Thank you for been there when we need help and don't know what to do.
    HA!! that goes double back at ya..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #2327
    Join Date
    Jun 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: Rounding problem when converting from points to $ in Total Order

    AWESOMEEEEEEEEEE :)

    Thank you

    Quote Originally Posted by countrycharm View Post
    Remove this chunk of code from the /includes/templates/your_template/templates/tpl_product_info_display.php.
    Around line number 147

    PHP Code:
      <!--bof Product Reward Points block -->

    <h2 id="productRewardPoints" class="productRewardPoints">

    <?php

    /**

     * display the product reward points

     */

       
    include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_product_reward_points.php');

       
    ?>

    </h2>

    <!--eof Product Reward Points block -->

  8. #2328
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Rounding problem when converting from points to $ in Total Order

    Quote Originally Posted by nesum18 View Post
    AWESOMEEEEEEEEEE :)

    Thank you
    Glad I could help.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  9. #2329
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Rounding problem when converting from points to $ in Total Order

    For the option to show rewards points or not in the product pages a solution could be this:

    in includes/templates/YOUR_TEMPLATES/tpl_product_info_display.php find:
    PHP Code:
    display the product reward points
     
    */
        include(
    $template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_product_reward_points.php');
        
    ?>
    </h2>
    <!--eof Product Reward Points block --> 
    Modify in:


    * display the product reward points
    */
    if (SHOW_REWARD_POINTS_PRODUCT == '1')
    {

    include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_product_reward_points.php');
    }
    ?>
    </h2>
    <!--eof Product Reward Points block -->


    Then using Phpmyadmin or the zencart admin patch add the following:

    PHP Code:
    SELECT @cgi:=configuration_group_id FROM configuration_group WHERE configuration_group_title 'Reward Points';

    INSERT INTO configuration
    (configuration_id ,configuration_title ,configuration_key ,configuration_value ,configuration_description ,configuration_group_id ,sort_order ,last_modified ,date_added ,use_function ,set_function)
    VALUES (NULL 'Show rewards point in Product Page''SHOW_REWARD_POINTS_PRODUCT''0''Display Reward Points in the product page?<br />0= No<br />1= Yes', @cgi'1'NULLnow(), NULL 'zen_cfg_select_option(array(''0'', ''1''), '); 
    Setting to 0 the new option will not show the points in the product pages, else if you set to 1 it will show points.

    NOTE: Please check if it's all correct and there is not errors of any kind. If You think ity could be useful please add it to the modules ;-)
    Last edited by izar74; 16 Nov 2013 at 11:08 AM.

  10. #2330
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    155
    Plugin Contributions
    0

    Default Re: Rounding problem when converting from points to $ in Total Order

    Hi again,

    hard work bring issues as long as solutions ;-)

    First the issue: I found that when i was going to the details of an order the Rewards point shown were always 0, but if you go on the invoice module the Rewards point magically appeared. Simply in the order details the point were not shown.

    it seems that the problem could be with this line in /admin/order.php around line 666
    PHP Code:
    <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $currencies->format($order->totals[$i]['value'], false) . '</td>' . "\n" . 
    If replaced with:
    PHP Code:
    <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" . 
    all seems fine. Someone else got this error?

    Zencart 1.51
    Reward Point 2.1b

 

 

Similar Threads

  1. v139h Reward Points module display order totals including reward points
    By irsarahbean in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Jun 2013, 01:19 AM
  2. Reward points module : 0 points earned
    By jonnyboy22 in forum Addon Payment Modules
    Replies: 5
    Last Post: 5 Jun 2012, 09:52 AM
  3. Reward Points module- points not calculated correctly
    By cpoet in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Sep 2010, 05:02 PM
  4. Reward Points Module - Hide message when 0 points offered
    By expresso in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Dec 2008, 06:58 PM
  5. Experimental Reward Points Module
    By precursor999 in forum Addon Payment Modules
    Replies: 7
    Last Post: 2 Apr 2007, 09:32 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR