Results 1 to 10 of 2475

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    I've got the rewards system installed and enabled and its working great, but I would like to modify the 'XXX reward points' that displays on the product info page.

    I would like to make the rewards points text a hyperlink to the EZ page that I have set up explaining how the rewards point system works instead of having the customers scroll down to the footer to click the link.

    Possible? Code snippet would be wonderful!

    Thanks!

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

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by Limitless View Post
    I've got the rewards system installed and enabled and its working great, but I would like to modify the 'XXX reward points' that displays on the product info page.

    I would like to make the rewards points text a hyperlink to the EZ page that I have set up explaining how the rewards point system works instead of having the customers scroll down to the footer to click the link.

    Possible? Code snippet would be wonderful!

    Thanks!
    WebKat did that but I don't remember how she did it. Maybe she will answer your post.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  3. #3
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by countrycharm View Post
    WebKat did that but I don't remember how she did it. Maybe she will answer your post.

    I found where I need to change it (extra definitions) but I am a php idiot.

    Glad to hear its possible.

    Thanks.

  4. #4
    Join Date
    Jan 2012
    Location
    New England
    Posts
    238
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by Limitless View Post
    I've got the rewards system installed and enabled and its working great, but I would like to modify the 'XXX reward points' that displays on the product info page.

    I would like to make the rewards points text a hyperlink to the EZ page that I have set up explaining how the rewards point system works instead of having the customers scroll down to the footer to click the link.

    Possible? Code snippet would be wonderful!

    Thanks!
    Here is what I added to my tpl_product_info_display.php file:

    PHP Code:
    <!--bof Product Reward Points block --> 
    <p style="font-size:1em;">Earn <?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'); ?> for this purchase!</p>
    <!--eof Product Reward Points block -->
    I added it right after this code, but this code may be altered from the original--I can't remember:
    PHP Code:
    <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>
    And in includes/languages/english/extra_definitions/custom/reward_points.php I have this:
    HTML Code:
    Line #3 : define('PRODUCT_REWARD_POINT_TAG', '<a href="/index.php?main_page=points">reward points</a>');
    Last edited by WebKat; 6 Jun 2012 at 12:48 AM.

  5. #5
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by WebKat View Post

    And in includes/languages/english/extra_definitions/custom/reward_points.php I have this:
    HTML Code:
    Line #3 : define('PRODUCT_REWARD_POINT_TAG', '<a href="/index.php?main_page=points">reward points</a>');
    I think that was the bit I was missing.

 

 

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

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