Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Compare Products

    Hello to every one! I'm developing a simple system of compare products with chechbox but I've a problem... when i clich my checkbox and click on submit.... don't return the right page but the cart page!
    Someone can help me? Thanks and a big by from Italy
    PHP Code:
    <div id= "table">
    <table class="allproducts">    
    <tr>
    <th  >Compare</th>
    <th  >Products</th>
    <th>Name</th>
    <th >Code </th>
    <th>Code2</th>
    <th>Brand</th>
    <th>Price</th>
    <?php if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {?>     
    <div class="wholesale"><th>retail price</th></div>
    <?php ?>  
    <?php if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {?>     
    <div class="wholesale"><th>Ricarico</th></div>
    <?php ?>  
    <?php if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {?>     
    <div class="wholesale"><th>Margine</th></div>
    <?php ?>  
    <th>Buy now</th>
    </tr>

    <tr>

    <td>
    <form name="products" action="index.php?main_page=page_3" method="POST" >
    <?php
    $products_id 
    $products_all->fields['products_id'];
    echo 
    $products_id;
    $checkbox='<input type="checkbox" name="products[]" value="'$array .'" />';
    echo 
    $checkbox;
    $button_compare'<input name="compare type="submit" id="products" value="Compare" action="index.php?main_page=page_3&products_id=' $_POST['products'].'>';
    ?>
    </td>
    <!-- Immage-->
    <td>
              <?php if (PRODUCT_ALL_LIST_IMAGE '0') { 
                    echo 
    $display_products_image;
                  
    ?>
    </td>

        <?php
      
    }
    ?>

    <!-- Names-->
        <td>
          <?php if (PRODUCT_ALL_LIST_NAME '0') {
                    echo 
    $display_products_name
                    
                  } 
    ?>
    </td> 

    <!-- Models->
        <td>
          <?php if (PRODUCT_ALL_LIST_MODEL '0') { 
                    echo 
    $display_products_model;
                  } 
    ?>
    </td>
        <td>
    <?php if (PRODUCT_ALL_LIST_PRODUZIONE '0') {
          echo 
    $display_products_produzione;
          }
    ?>         
    </td>
        <td>
        <?php if (PRODUCT_ALL_LIST_MANUFACTURER '0') {
                   echo 
    $display_products_manufacturers_name;
      } 
    ?>        
    </td>
        <td>
    <?php if (PRODUCT_ALL_LIST_PRICE '0') { 
     echo 
    $display_products_price;?>
    <?php 
    ?>      

    </td>
    <?php if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {?> 
        <td>

    <?php if (PRODUCT_ALL_LIST_PRICE '0') { 
                    echo 
    $display_products_prezzo."EUR";
     }} 
    ?> 
    </td>
        <?php if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {?> 
        <td>
    <?php                 echo round($MU,1)."%""<br><br>";
    ?>  
    </td>
    <?php if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {?>
        <td>
     <?php  echo round($MC,1)."%""<br><br>";
    ?> 
    </td>

           <td id="buy_now">
          <?php     if (PRODUCT_ALL_BUY_NOW '0') { 
                    echo 
    $display_products_button;
                  
    ?>
    </td>

        <?php ?>
    </tr>
    </table>

    </div>
    <br>
    </p>

    <?php
          $products_all
    ->MoveNext();
        }
      } else {
    ?>

    <p><?php echo TEXT_NO_ALL_PRODUCTS?></p>
    <?php
      
    }
    ?>
    <?php 
    echo $button_compare;?>
    </form>

  2. #2
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products

    P.s The file in point is includes/templates/templates_default/templates/tpl_modules_all_listing.php I've also another page for the datas read, when it'll be ready I'll be happy to add the application in add-on zone. By to every one and thanks

  3. #3
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products


  4. #4
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Compare Products

    Code:
    <input name="compare type="submit"
    Should probably be ..

    Code:
    <input name="compare" type="submit"

  5. #5
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products

    No, unfortunately is non this the problem, I've corrected the code line following your advise but when I click on the submit button The page that open is always the cart page.... I don't understand seems like if something go in conflict with my form!
    Thanks and good day or night... what time is now there?
    Bye!

  6. #6
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products

    P.s
    I've corrected also this:
    PHP Code:
    <input name="compare" type="submit" id="products" value="compare" action="index.php?main_page=page_3&products_id=' . $_POST['products'].'">'; 

  7. #7
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products

    P.s. And pardon me for my peculiar english!

  8. #8
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products


  9. #9
    Join Date
    Aug 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Compare Products


  10. #10
    Join Date
    Nov 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Compare Products

    Hi.

    I instal compare products mod but with ceon uri mapping 3.6.3 module activate is not working.

    If I deactivate from admin the ceon uri mapping the compare options is work perfect.

    Ken help me with that ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v152 Compare Products (Loans)
    By vishal.tbl in forum General Questions
    Replies: 3
    Last Post: 27 Jun 2014, 08:14 AM
  2. Compare products
    By adamlop in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 10 May 2012, 02:35 PM
  3. Compare products module.
    By kotwik in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 1 Apr 2010, 07:37 PM
  4. Compare Products Option?
    By stasantons in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Nov 2008, 07:32 PM
  5. How to Compare products ?
    By vr4indian in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Oct 2006, 03:50 PM

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