Zen Cart Logo
Forums / All Other Contributions/Addons / Compare Products

Compare Products

Views: 3,620

Results 1 to 11 of 11
16 Feb 2010, 8:39 PM
#1
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

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

<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>
17 Feb 2010, 8:25 AM
#2
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

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

18 Feb 2010, 5:25 PM
#3
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

Re: Compare Products

:blink:

18 Feb 2010, 5:51 PM
#4
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Compare Products

<input name="compare type="submit"

Should probably be ..

<input name="compare" type="submit"
19 Feb 2010, 8:37 AM
#5
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

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!:blink::frusty:
Thanks and good day or night... what time is now there?
Bye!

19 Feb 2010, 8:38 AM
#6
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

Re: Compare Products

P.s
I've corrected also this:

<input name="compare" type="submit" id="products" value="compare" action="index.php?main_page=page_3&products_id=' . $_POST['products'].'">';
19 Feb 2010, 8:44 AM
#7
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

Re: Compare Products

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

21 Feb 2010, 5:52 PM
#8
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

Re: Compare Products

:blink:

24 Feb 2010, 2:41 PM
#9
reeda80 avatar

reeda80

New Zenner

Join Date:
Aug 2009
Posts:
18
Plugin Contributions:
0

Re: Compare Products

:frusty:

19 Oct 2011, 5:44 PM
#10
xergos055 avatar

xergos055

New Zenner

Join Date:
Nov 2008
Posts:
36
Plugin Contributions:
0

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 ?

21 Oct 2011, 8:14 AM
#11
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Compare Products

Hi,

xergos055:

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

Upgrade to the latest version (4.0.6) and then follow the FAQs in the documentation if you are still having trouble.

That's enough info to get you sorted!

Look out for 4.0.7 soon as well with a bugfix in it (not related to the above though. you should get the above done first).

All the best...

Conor
ceon