Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / color icon for cart and comment

color icon for cart and comment

Locked

Views: 1,064

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
6 Jan 2010, 9:56 AM
#1
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

color icon for cart and comment

Hi to all...

I know zen cart a bit, but not so much to know if there is this mods I'm looking for...

  1. Is there for zen-cart an addon that show a coloured icon when a product is finished in the store?
    Something like:
    "red cart" : there is no units of that product in the store
    "yellow cart": few units of that product in the store
    "green cart": There is many units of the product in the store...

Then I need another addon:
2. I need a page where customer can valutate the store with stars icon and a comment...

Does this addon exists?

Thank a lot

6 Jan 2010, 11:49 AM
#3
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

Re: color icon for cart and comment

thanks, and for the comments? any addons?

6 Jan 2010, 12:16 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: color icon for cart and comment

There was a recent (1 day) thread about feeding a Google rating system, and that code might display the rating in the ZC review. Actually, the stars might be built in - I've never used reviews so don't know.

6 Jan 2010, 5:27 PM
#5
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

Re: color icon for cart and comment

I found Testimonial manager is the addon I'm looking for?

I need a page where user can insert comment about what they think about the store, possibly with a rating system...

14 Jan 2010, 4:00 PM
#6
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

Re: color icon for cart and comment

I try the stock level indicator mod, for product_info page but when I add the code everything disappear on the page!

14 Jan 2010, 4:33 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: color icon for cart and comment

Look very carefully at the file you added the code to. Double check that there are no missing quotes or semicolons at the end of lines, or blank spaces/lines at the bottom of the file.
What program did you use to edit the file?

14 Jan 2010, 7:41 PM
#8
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

Re: color icon for cart and comment

dreamweaver the code is this

<!--<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>-->

<!--bof Quantité Level-->
  <?php   }
	if ($flag_show_product_info_quantity == 1) {  // test si Flag=1
	         $stock_title = STOCK_LEVEL_TITLE;
	         $stock_image_title = $products_quantity . TEXT_PRODUCT_QUANTITY;
	?>
	<li><li>
	<table border="1" cellspacing="1" cellpadding="2">
	  <caption><strong><?php echo $stock_title ?></strong></caption>
		<?php
	         // test sur les quantités
		 if ($products_quantity <=0) {
	         $stock_txt = STOCK_LEVEL_NODISPO_ALT;
		 $stock_image =DIR_WS_TEMPLATE_IMAGES . STOCK_LEVEL_IMAGE_NODISPO;
	         $stock_image_alt = STOCK_LEVEL_NODISPO_ALT;
	         } elseif($products_quantity <=5) {
	         $stock_txt = STOCK_LEVEL_PEUDISPO_ALT;
		 $stock_image =DIR_WS_TEMPLATE_IMAGES . STOCK_LEVEL_IMAGE_PEUDISPO;
	         $stock_image_alt = STOCK_LEVEL_PEUDISPO_ALT;
	         } elseif($products_quantity >5) {
	         $stock_txt = STOCK_LEVEL_DISPO_ALT;
		 $stock_image =DIR_WS_TEMPLATE_IMAGES . STOCK_LEVEL_IMAGE_DISPO;
	         $stock_image_alt = STOCK_LEVEL_DISPO_ALT;
	         } elseif($products_quantity <0) {
	         $stock_txt = STOCK_LEVEL_ORDER_ALT;
		 $stock_image =DIR_WS_TEMPLATE_IMAGES . STOCK_LEVEL_IMAGE_ORDER;
	         $stock_image_alt = STOCK_LEVEL_ORDER_ALT;
                            }// test quantité
                 ?>
	  <tr>
	    <td><?php echo $stock_txt ?><br><?php echo $stock_image_title ?></td>
	    <td>
	<?php
	       echo '<img src='. $stock_image . ' alt='. $stock_image_alt .' title="'. $stock_image_title .'">' ;

	?>
	</td>
	  </tr>
	</table>
     <?php } // fin du test si Flag=1
		?>

<!--Eof Quantité Level-->

if I insert that code everything became blank...
I've added that code non in the template_default tpl_product_display_info.php but I've edited a copy of this file in my custom template...

14 Jan 2010, 8:19 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: color icon for cart and comment

Does the mod really ask you to add that big chunk of code to your own copy of the file? Most mods have the files already completely edited and ready or mostly ready to drop into your folder structure.

16 Jan 2010, 8:59 AM
#10
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

Re: color icon for cart and comment

yeah....it does :frusty: there is not another similar mod?

20 Jan 2010, 1:56 PM
#11
psygnosis avatar

psygnosis

New Zenner

Join Date:
Nov 2009
Posts:
19
Plugin Contributions:
0

Re: color icon for cart and comment

no one please?

20 Jan 2010, 2:44 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: color icon for cart and comment

We really can't diagnose why an edited file isn't working for you when we don't know exactly what your copy of the file on the server looks like, and also exactly what result you are getting, and what errors. Try installing the debug utility from Free Addons; this will put an error log in your cache.

The code you posted doesn't seem to have any internal errors, but we can't evaluate it properly in isolation.