Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Posts
    29
    Plugin Contributions
    0

    help question modifying product_info_display.php page

    Hi, I added the below code to the product_info_display.php. It works good.

    <div class="content" id="discountPolicy5" style="background: #999933; padding: 3px; width: 400px;">
    " Buy 2 or more lace wigs,get $30 off" </div>

    You may have a view of my website. www.frhair.com

    Now, I have a question. I want to add different words on different category products info page. Is it possible?
    For example:
    Category A, add "ABC"
    Category B, add" DEF"
    Category C, add"GHI"

    Thanks for your help.

  2. #2
    Join Date
    May 2012
    Posts
    29
    Plugin Contributions
    0

    Default Re: modifying product_info_display.php page

    is there anybody who can help me?

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: modifying product_info_display.php page

    I would normally suggest adding something like this to your product_info:

    PHP Code:
    <?php
    if (in_array($cPath,explode(",",'9')) ) {
    echo 
    '<div class="content" id="discountPolicy5" style="background: #999933; padding: 3px; width: 400px;"> 
         " Buy 2 or more lace wigs,get $30 off" </div>'
    ;
      } else if (
    in_array($cPath,explode(",",'1,23,33,35')) ) {
    echo 
    '<div class="content" id="discountPolicy5" style="background: #999933; padding: 3px; width: 400px;"> 
         " Buy 2 or more lace wigs,get $10 off" </div>'
    ;
      } else if (
    in_array($cPath,explode(",",'7,8,10')) ) {
    echo 
    '<div class="content" id="discountPolicy5" style="background: #999933; padding: 3px; width: 400px;"> 
         " Buy 2 or more lace wigs,get $20 off" </div>'
    ;
      } else {
    echo 
    '';
    }
    ?>
    Not sure it will work with a URL re-writer.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: modifying product_info_display.php page

    You might try Product Articles from Plugins (based on swguy's boilerplate file technique). It works on a per-product basis, i.e. you would need to add an HTML comment similar to
    <!-- HTML_A_INCLUDE_discount10 -->
    to each product description, which would cause the content of discount10.html to be output in the location you set up.
    With this, you can include (and change) as many customized messages as you like without further touching PHP files.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 29 Dec 2011, 03:31 PM
  2. page breaks when i edit product_info_display.php
    By Graphic Content in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 23 Feb 2010, 08:10 PM
  3. How can I make a Divider Line in Product_info_display.php
    By milobloom in forum Basic Configuration
    Replies: 0
    Last Post: 25 Jul 2008, 09:11 PM
  4. gv_faq.php - Modifying the FAQ page text...
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Mar 2007, 09:42 PM

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