Jump to content
dblake

Wishlist 3.0 Support Thread

Recommended Posts

Yea some of these are just cosmetic changes, but the column_right.php I have a function in there that counts the wishlist array and if theres wishlist items it displays the box on the column right. I nvr had this code in place so I forgot to create the function LOL, oh well i'll get to it.

 

As far as the black_pixel.gif code. That '1' represents height, and the 100% represents the width. Dunno whats up wth yours.

 

-Dennis

Share this post


Link to post
Share on other sites

Carlos, if you need assistance getting this to work let me know, but no I don't support other peoples contributions. But i have heavily modded SPPC before so I know that code too. And I have done exactly what your talking about with the wishlist... short desc, delete button, and other different changes to suit my needs. I'm glad its working for you ;).

 

-Dennis

 

Oh, also. I haven't changed the wishlist public.php file to show if a item is inactive and no longer available. I will fix that too. And take away the checkbox to allow them selecting it.

 

-Dennis

Edited by dblake

Share this post


Link to post
Share on other sites

Dennis,

 

Thanks!

 

I cannot seem to get SPPC to integrate with wishlist.php. I have tried to do it in the same ways I have been successful with in the other areas of my site that show prices.

 

I would way appreciative if you could point me in the right direction. My wishlist.php is at this point way modified - I'm pretty sure I could do it if I had an idea of what to do from an unmodified wishlist.php.

 

Carlos

Share this post


Link to post
Share on other sites

Ok your gonna need this code at the top, or before your queries.

 

   // BOF Separate Price per Customer
 if(!tep_session_is_registered('sppc_customer_group_id')) { 
 $customer_group_id = '0';
 } else {
  $customer_group_id = $sppc_customer_group_id;
 }
  // EOF Separate Price per Customer

 

Next you need to add in your queries for this. So look for this on wishlist.php.

 

				   	if (tep_not_null($products['specials_new_products_price'])) {
			   		$products_price = '<s>' . $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($products['specials_new_products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</span>';
			   	} else {
				   	$products_price = $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id']));
				}

 

Now Look at this code taken from the product_info.php file for SPPC. You should see what to do from here.

 

// BOF Separate Price per Customer

	$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
	if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
	$product_info['products_price']= $scustomer_group_price['customers_group_price'];
}
// EOF Separate Price per Customer

  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
// BOF Separate Price per Customer
	$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
	if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
	$product_info['products_price']= $scustomer_group_price['customers_group_price'];
}
// EOF Separate Price per Customer

  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

 

You see it bumps every product to the table to see if its a special price for that user group. It does a different query if the product in on special versus when its not. If the product does not have a group price, then it just prints the retail price.

 

//EDIT

 

Thats a quick fix, and have no idea if its gonna work right cuz of attributes... Thats a whole new animal. If you don't have attributes, then perfect. But if you do then there will be more mods to do.

 

//EDIT

 

You may want to look at your shopping cart code, as the wishlist is based on the shopping cart. You should see a lot of similarties between the two. It will show you how to make the necessary changes for attributes.

 

-Dennis

Edited by dblake

Share this post


Link to post
Share on other sites
Ok your gonna need this code at the top, or before your queries.

 

   // BOF Separate Price per Customer
 if(!tep_session_is_registered('sppc_customer_group_id')) { 
 $customer_group_id = '0';
 } else {
  $customer_group_id = $sppc_customer_group_id;
 }
  // EOF Separate Price per Customer

 

Next you need to add in your queries for this. So look for this on wishlist.php.

 

				   	if (tep_not_null($products['specials_new_products_price'])) {
			   		$products_price = '<s>' . $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($products['specials_new_products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</span>';
			   	} else {
				   	$products_price = $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id']));
				}

 

Now Look at this code taken from the product_info.php file for SPPC. You should see what to do from here.

 

// BOF Separate Price per Customer

	$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
	if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
	$product_info['products_price']= $scustomer_group_price['customers_group_price'];
}
// EOF Separate Price per Customer

  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
// BOF Separate Price per Customer
	$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
	if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
	$product_info['products_price']= $scustomer_group_price['customers_group_price'];
}
// EOF Separate Price per Customer

  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

 

You see it bumps every product to the table to see if its a special price for that user group. It does a different query if the product in on special versus when its not. If the product does not have a group price, then it just prints the retail price.

 

//EDIT

 

Thats a quick fix, and have no idea if its gonna work right cuz of attributes... Thats a whole new animal. If you don't have attributes, then perfect. But if you do then there will be more mods to do.

 

//EDIT

 

You may want to look at your shopping cart code, as the wishlist is based on the shopping cart. You should see a lot of similarties between the two. It will show you how to make the necessary changes for attributes.

 

-Dennis

May I use some of this code to make my "Scrolling Marque" contrib working on my wishlist_public.php?

 

Thanks.

Share this post


Link to post
Share on other sites

Dennis Thanks!

 

That's what I needed... a start! I should have thought to look at the shoppingcart as I know you made this similarly.. but I didn't think of it!

 

Let you know how it goes... and, yeah I need to use the attributes... in addition to the public aspect of your Wish List - the attributes make it stand out!

 

Carlos

Share this post


Link to post
Share on other sites
May I use some of this code to make my "Scrolling Marque" contrib working on my wishlist_public.php?

 

Thanks.

 

 

No this has nothing to do wih your scrolling marquee.

 

-Dennis

Share this post


Link to post
Share on other sites
IE is ok, But Firefox is not. I tried it on 3 computers at my home... oh well, most ppl use IE anyways. Yes i do have an old copy and havent updated it yet, no biggie.

 

Chris

 

 

Take a screenshot so I can see Chris.

 

thanks dennis, i'll wait. ive just took the code out the right colum for now

 

ive found 1 other prob,

 

when i try and send a wishlist email it keeps returning errors , saying i need to add at least 1 name & email

 

 

You have to enter the name and email of the person you want to send it too. The "Your name" and "Your email" is for the from not the to.

 

 

 

/****************** Updated to 3.5c ******************/

 

Fixed column_right problem. And updated wishlist_public.php to display item not available.

 

/*************************************************/

 

-Dennis

Edited by dblake

Share this post


Link to post
Share on other sites
Take a screenshot so I can see Chris.

 

Thanks for all your effort and help.

 

wishlist_public.php - messed up formatting

wishlist_public01.jpg

 

wishlist.php - normal formatting

wishlist_public02.jpg

 

Note the differences:

-The top heading section is all out of wack

-Extra spacing in and around the side boxes

-Extra spacing between the bottom blue bar and the text underneath it

-It causes the bottom scrollbar to become active (page is too wide)

 

Chris

Share this post


Link to post
Share on other sites

I love the contribution however, when testing. Wishlist sent to my Yahoo address never come though. They don't go to my inbox or my spam box. When sent to my other email addresses they work fine, just not the Yahoo addresses. Any ideas? Thanks.


Sign Here

Share this post


Link to post
Share on other sites
/****************** Updated to 3.5c ******************/

 

Fixed column_right problem. And updated wishlist_public.php to display item not available.

 

/*************************************************/

 

-Dennis

Ok, I updated my includes/classes/wishlist.php and wishlist_public.php from the latest 3.5c release, and I get an error message when sending an email:

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in ......\osCommerce\includes\classes\email.php on line 500
No email is sent.

 

What is a problem at this time?

Thanks. Irina.

Share this post


Link to post
Share on other sites

I don't know a lot about servers, (I wish I did, but Im learning) and this seems like a server problem, or a server setting. Anyone know about servers here and maybe can explain this problem? So if its on my end I can fix it.

 

-Dennis

Share this post


Link to post
Share on other sites
I don't know a lot about servers, (I wish I did, but Im learning) and this seems like a server problem, or a server setting. Anyone know about servers here and maybe can explain this problem? So if its on my end I can fix it.

 

-Dennis

I got another problem. I use the following scenario: I choose a product, place it in a cart then go to view my basket and then click on the product in my basket, it takes me back to that product_info page and I get an error:

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '{4}12 and language_id = '1'' at line 7

 

SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price, p.products_image FROM products p INNER JOIN products_description pd ON p.products_id=pd.products_id INNER JOIN products_bundles pb ON pb.subproduct_id=pd.products_id WHERE pb.bundle_id = 56{4}12 and language_id = '1'

 

[TEP STOP]

I got those extra numbers {4}12 that maybe somehow identify a product for a wishlist. And there is no bottom and left columns on product_info page. Does anybody else have the same problem as I do?

 

Thanks.

Irina.

Edited by Irin

Share this post


Link to post
Share on other sites
I got another problem. I use the following scenario: I choose a product, place it in a cart then go to view my basket and then click on the product in my basket, it takes me back to that product_info page and I get an error:

I got those extra numbers {4}12 that maybe somehow identify a product for a wishlist. And there is no bottom and left columns on product_info page. Does anybody else have the same problem as I do?

 

Thanks.

Irina.

Sorry, I didn't mention that I get two different links when sending an emails from the wishlist:

1. http://store/osCommerce/product_info.php?products_id=51{3}5

2. http://store/osCommerce/wishlist_public.php?public_id=51

Which one is correct? I prefer to get the one with product_info.php?products_id=51{3}5, so I don't need to worry about wishlist_public.php which is not aligned correctly in my store.

 

Thanks.

Irina.

Share this post


Link to post
Share on other sites

/********* Please update to 3.5d. *********/

 

I think I may have sorted your formatting issues.

 

 

 

I got another problem. I use the following scenario: I choose a product, place it in a cart then go to view my basket and then click on the product in my basket, it takes me back to that product_info page and I get an error:

I got those extra numbers {4}12 that maybe somehow identify a product for a wishlist. And there is no bottom and left columns on product_info page. Does anybody else have the same problem as I do?

 

Thanks.

Irina.

 

 

No your talking about your shopping cart right? Or does it happen with the shopping cart and the wishlist? That seems to be an error with a different contribution. Which ever one that has product bundles or w/e.

 

WHERE pb.bundle_id = 56{4}12

 

Thats were it errors, and thats not stock osc code so its a different contribution you have added. Please verify this for me.

 

-Dennis

Edited by dblake

Share this post


Link to post
Share on other sites
/********* Please update to 3.5d. *********/

 

I think I may have sorted your formatting issues.

No your talking about your shopping cart right? Or does it happen with the shopping cart and the wishlist? That seems to be an error with a different contribution. Which ever one that has product bundles or w/e.

 

WHERE pb.bundle_id = 56{4}12

 

Thats were it errors, and thats not stock osc code so its a different contribution you have added. Please verify this for me.

 

-Dennis

Dennis, I updated my files to 3.5d and I want to thank you, you really fixed my formatting issue on wishlist_public.php except for that annoying black dot. Thanks a lot.

Now, about that last error. I'm sorry, didn't mention earlier I got a "bundled_products" contrib installed as well and in my scenario I added a bundled product to my wishlist and then from wishlist.php placed it in a cart and got that error. Is there anything to do with a wishlist? Do you have any advice for me on this error?

 

Thanks for your great support,

Irina.

Edited by Irin

Share this post


Link to post
Share on other sites

Dennis,

 

Jan Zonjee, who re-did the SPPC contribution, was kind enough to provide me with code, which as far as I can tell does what I need to implement SPPC into Wish List.

 

I still have a couple of problems though, and I was wondering if you might know the answers, or again point me in the right direction.

 

In wishlist_public.php - the attributes are not passing through to the cart when adding them to the cart... is this just me (my modified files again)?

 

Also, I have been trying to modify, so far unsuccessfully, two other areas that I would sure appreciate some advice with:

 

1) An if statement to distinguish between message_stack "error" and message_stack "success".

2) I have been able to display the attributes additional price next to the attribute, but I can't get the price rounded off - so it now shows in the thousandth place (i.e. 7.7500).

 

I am posting below both the code that Jan provided (In case you are interested to see it) as well, the slightly modified code that displays the attribute price along with the attribute, which I can't get rounded off properly.

 

Thanks much!

 

Carlos

 

wishlist.php - SPPC:

<?php
$i = 0;
// <!-- SPPC -->
if(!tep_session_is_registered('sppc_customer_group_id')) { 
$customer_group_id = '0';
} else {
$customer_group_id = $sppc_customer_group_id;
}

while (list($wishlist_id, ) = each($wishList->wishID)) {
$list_of_prdct_ids[] = tep_get_prid($wishlist_id);
if (tep_not_null($list_of_prdct_ids)) { // implode will give an error when $list_of_prdct_ids is empty
$specials_query = tep_db_query("select products_id, specials_new_products_price from " . TABLE_SPECIALS . " where products_id in ('" . implode("','",$list_of_prdct_ids) . "') and status = '1' and customers_group_id = '" . $customer_group_id . "'");
while ($specials_array = tep_db_fetch_array($specials_query)) {
$special_prices[] = array ('products_id' => $specials_array['products_id'], 'specials_new_products_price' => $specials_array['specials_new_products_price'] , 'final_price' => $specials_array['specials_new_products_price']);
} // end while ($specials_array = tep_db_fetch_array($specials_query)) 
} // end if (tep_not_null($list_of_prdct_ids)) 
} // end while (list($wishlist_id, ) = each($wishList->wishID))
reset($wishList->wishID);
// <!-- /SPPC -->

while (list($wishlist_id, ) = each($wishList->wishID)) {

$product_id = tep_get_prid($wishlist_id);
// <!-- SPPC -->
if ($customer_group_id == '0') {
$products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.short_desc, p.products_status, p.manufacturers_id, p.products_price, p.products_tax_class_id, NULL as specials_new_products_price, p.products_price as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = '" . $product_id . "' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "'");
} else {
$products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.short_desc, p.products_status, p.manufacturers_id, pg.customers_group_price as products_price, p.products_tax_class_id, NULL as specials_new_products_price, pg.customers_group_price as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_GROUPS . " pg using(products_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = '" . $product_id . "' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and pg.customers_group_id = '" . $customer_group_id . "'"); 
} // end if/else ($customer_group_id == '0')

$products = tep_db_fetch_array($products_query);

// add special price if there is one, replace final price in that case too
if (tep_not_null($special_prices)) {
for ($i = 0; $i < count($special_prices); $i++) {
if( $products['products_id'] == $special_prices[$i]['products_id'] ) {
$products['specials_new_products_price'] = $special_prices[$i]['specials_new_products_price'];
$products['final_price'] = $special_prices[$i]['final_price'];
}
}
} // end if (tep_not_null($special_prices))
// <!-- /SPPC -->

if (($i/2) == floor($i/2)) {
$class = "productListing-even";
} else {
$class = "productListing-odd";
}
?>

 

wishlist_public.php - Attribute Price:

				   	if ($attributes_values['options_values_price'] > 0) {
				   echo '<br /><small><i>' . $attributes_values['products_options_name'] . ': ' . $attributes_values['products_options_values_name'] . '</i></small><br><span style="font-family: Arial; font-size: 7pt"><font color="#FF0000">(</font>+$' . $attributes_values['options_values_price'] . '?included in price<font color="#FF0000">)</font></span>';
			   	} else {
				   echo '<br /><small><i> ' . $attributes_values['products_options_name'] . ': ' . $attributes_values['products_options_values_name'] . '</i></small>';

Share this post


Link to post
Share on other sites

Dennis,

 

I see that it is my file, which does not pass through the attributes to the cart - they do pass through when using a vanilla wishlist_public.php.

 

So please disregard my asking about it in the above post, I'll go through my file to figure out what I did wrong.

 

Sorry that I didn't check it first, before posting above.

 

Carlos

Share this post


Link to post
Share on other sites

Hi all ! I'm getting errors, one other person posted here, and I could not find the response.....

 

Warning: Invalid argument supplied for foreach() in /home/site/www/catalog/wishlist.php on line 117

 

Warning: Invalid argument supplied for foreach() in /home/site/www/catalog/wishlist.php on line 145

 

The lines are :

 

		//Check each posted name => email for errors.
	$j = 0;
	[b]foreach($HTTP_POST_VARS['friend'] as $friendx) {[/b]			if($j == 0) {
			if($friend[0] == '' && $email[0] == '') {
				$error = true;
				$email_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_ONE_EMAIL . "</div>";
			}
		}

 

and

 

		if($error == false) {
		$j = 0;
		[b]foreach($HTTP_POST_VARS['friend'] as $friendx) {[/b]
			if($friendx != '') {
				tep_mail($friendx, $email[$j], $subject, $friendx . ",\n\n" . $body, $from_name, $from_email);
			}

 

HELP ! ;-p

Share this post


Link to post
Share on other sites

OK, for further reference, I found the prob. I had an error in the database upload, verified the DB and everything is ok now. Not to say that thats the case for every foreach error, but its a place to start !

Share this post


Link to post
Share on other sites

foreach error is basiclaly an empty foreach. Thats why I put in the error checking. That should of resolved that error.

 

 

Carlos,

 

Do this.

 

$currencies->display_price($attributes_values['options_values_price']);

 

If that shoots you an error you may need the second instance of that function. So if the above code doesn't work use this.

 

$currencies->display_price($attributes_values['options_values_price'], tep_get_tax_rate($products['products_tax_class_id']));

 

-Dennis

Share this post


Link to post
Share on other sites

Hey Dennis,

 

Attribute prices formatted properly:

Thanks again. I had tried the first code you posted as it is what's used for the prices, and it brought an error as you thought it might. Including the second instance as you stated - did the trick! Thanks!

 

message_stack:

This just is a little cosmetic preference. I never liked the little icons, and left aligning of the default message stack display. And, I'm think it might be a little confusing to some viewers/senders, that the error message display isn't viewable until you scroll down the page to where the entries are - so, I have modified the message stacking errors in wishlist.php to display in the same way/area as you have the eMail sent success displaying (which is what I wanted), by replacing:

"<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " .ERROR_XXX_XXX. "</div>"

with:

$messageStack->add('wishlist', ERROR_XXX_XXX, 'error')

 

I have the messageStack like this:

<?php
 if ($messageStack->size('wishlist') > 0) {
?>
	<tr>
	  <td align="center">
  <table border="0" cellspacing="0" cellpadding="0" width="100%" class="messageBox">
	<tr>
	  <td align="center">
	<table border="0" cellspacing="0" cellpadding="0">
	<tr><td><br><?php echo $messageStack->output('wishlist'); ?><br></td></tr>
	</table>
	  </td>
	</tr>
  </table>
	  </td>
	</tr>
  <tr><td height="5"></td></tr>

 

In the stylesheet.css file I have the following:

/* <!-- messageBox --> */
.messageBox {
font-family: Arial, sans-serif;
font-size: 12px;
border: .07em solid #FF0000;
background-color: #FFFF00;
}
/* <!-- /messageBox --> */

/* <!-- messageStack --> */
.messageStackError, .messageStackWarning {
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: bold;
/* padding-left: 10;
padding-right: 10;
padding-top: 5;
padding-bottom: 5; */
background-color: #FFFF00;
}

.messageStackSuccess {
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: bold;
/* padding-left: 10;
padding-right: 10;
padding-top: 5;
padding-bottom: 5; */
background-color: #FFFF00;
}
/* <!-- /messageStack --> */

 

I have the background the same in both ".messageStackError, .messageStackWarning" & ".messageStackSuccess" because if the backgrounds are different, one will be full in the TABLE's cell, and the other will be partial.

 

Anyhow, as presently both have the same yellow background (with the different appropriate text) if I could come up with an if statement to distinguish "error" from "success" I would be able to maintain the green background for successs, and the yellow background for error/warning, which is what I would like to do if possible.

 

As a side note, I have been able to incorporate the contribution Must Select, (which forces an attribute choice if there is an attribute, in product_info.php when adding to the cart) into wishlist.php by modifying the following wishlist code in application_top.php:

  if(!tep_session_is_registered('wishList')) {
  tep_session_register('wishList');
  $wishList = new wishlist;
 }

//Wishlist actions (must be before shopping cart actions)
 if(isset($HTTP_POST_VARS['wishlist_x'])) {
if(isset($HTTP_POST_VARS['products_id'])) {
	if(isset($HTTP_POST_VARS['id'])) {
		$attributes_id = $HTTP_POST_VARS['id'];
		tep_session_register('attributes_id');
	}
	$wishlist_id = $HTTP_POST_VARS['products_id'];
	tep_session_register('wishlist_id');
}
  if (!tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {
tep_redirect(tep_href_link(FILENAME_WISHLIST));
  } else {
  while (list($option, $value) = each($HTTP_POST_VARS['id'])) {
  if (($value == 11) or ($value == 12) ) {
  tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'] . '&mustselect=product_info'));
  } else {
tep_redirect(tep_href_link(FILENAME_WISHLIST));
 }
 }
 }
 }

 

I realize I have gone into a bit much detail. I am just trying to have everything match up cosmetically. And, I wanted you to understand what I am doing, as well, I thought some of it might be useful to someone else - thanks for putting up with me!

 

Carlos

Share this post


Link to post
Share on other sites
I have the background the same in both ".messageStackError, .messageStackWarning" & ".messageStackSuccess" because if the backgrounds are different, one will be full in the TABLE's cell, and the other will be partial.

 

Anyhow, as presently both have the same yellow background (with the different appropriate text) if I could come up with an if statement to distinguish "error" from "success" I would be able to maintain the green background for successs, and the yellow background for error/warning, which is what I would like to do if possible.

 

 

I finally understood what you were saying. Had to read it 4 times to finally get it. Well you have an understanding of how stuff works so this should be easy for you. Just make a new messagestack. You can even change the names if you want.

 

For instance, right now the success is this

$messageStack->add('wishlist', WISHLIST_SENT, 'success');

 

Make a new one for your error.

 

$messageStack->add('wishlist_error', 'ADD ANOTHER FOR EACH ERROR TEXT 'error');

 

Then echo that one for your errors. Get it? ;)

 

-Dennis

Share this post


Link to post
Share on other sites

Hey, guys. Did you forget about me? Please don't move me away to the top. :rolleyes:

Here is my problem again:

Dennis, I updated my files to 3.5d and I want to thank you, you really fixed my formatting issue on wishlist_public.php except for that annoying black dot. Thanks a lot.

Now, about that last error. I'm sorry, didn't mention earlier I got a "bundled_products" contrib installed as well and in my scenario I added a bundled product to my wishlist and then from wishlist.php placed it in a cart, and then click on the product in my basket, it takes me back to that product_info page and I get an error:

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '{4}12 and language_id = '1'' at line 7

 

SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price, p.products_image FROM products p INNER JOIN products_description pd ON p.products_id=pd.products_id INNER JOIN products_bundles pb ON pb.subproduct_id=pd.products_id WHERE pb.bundle_id = 56{4}12 and language_id = '1'

 

[TEP STOP]

Is there anything to do with a wishlist? Does anybody have any advice for me on this error?

 

Thanks for your great support,

Irina.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×