Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
Guest

Wishlist Contribution-Doing Major Troubleshooting Today Only

Recommended Posts

Guest

I see that a lot of people are having difficulties with the Wishlist Mod that Mattice and I originally developed and that a lot of really great folks have carried on with.

 

A lot of the problems have to do with the fact that some values are designated $product_info and some&product_info_values.

 

Mine is working here please check it out.

www.jewelrysupplyhouse.com

loging as: benjamin_removethisspampart@prosynergysales.eraserthisspam.com

passwrod is tester

 

If you are still having problems with your mod - post here where I will look at your files for anyone over the next few hours as I have a day free.

 

If you are getting an error that your tables_wishlist does not exist it is because you probably have your define('TABLE_WISHLIST' 'cusopmers_wishlist'); part after the wishlist code in application_top. Do NOT do that. Move it up to the other table defines.

 

If your wishlist button is adding the item to your cart - look in product_info.php and make sure you did not put the form for the wishlist inside the form for the add to cart. Forms cannot and should not exist within each other.

 

Also look at the form for the add to car. If it says $product_info_values then make sure the wishlist part is also $product_info_values it might be $product_info which will cause problems.

 

Ciao

Benjamin

Share this post


Link to post
Share on other sites
Guest

If you see that the product_name and product_model and product_price are not getting passed to the database and you want it passed - check and see if you have this code

<td align="right" class="main"><?php echo tep_draw_form('wishlist_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_wishlist')); ?>

<?php if (tep_session_is_registered('customer_id')) echo tep_draw_hidden_field('products_id', $product_info_values['products_id'] ) . tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST); ?>

</form></td></td>

 

If you do - replace it with this code

<td><form name="wishlist_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_wishlist', 'NONSSL'); ?>">

<input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>">

<input type="hidden" name="products_model" value="<?php echo $product_info_values['products_model']; ?>">

<input type="hidden" name="products_name" value="<?php echo $product_info_values['products_name']; ?>">

<input type="hidden" name="products_price" value="<?php echo $product_info_values['products_price']; ?>">

<input type="hidden" name="final_price" value="<?php echo $product_info_values['final_price']; ?>">

<input type="hidden" name="products_tax" value="<?php echo $product_info_values['products_tax']; ?>"> <?php echo $submit_button_wishlist; ?>

Share this post


Link to post
Share on other sites
Guest

If you are having problems deleting from the wishlist try moving around in application_top the sections marked //add to cart put it after //remove from wishlist

Share this post


Link to post
Share on other sites

Bluephoenix,

Can you please help? This is my code from product_info.php

 

Thanks.

 

 

<?php

   }



   if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

     <tr>

       <td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

     </tr>

<?php

   } else {

?>

    <?php

   }

?>



     <tr>

    	 <td><BR><BR>

<?php include(DIR_WS_MODULES . FILENAME_DYNAMIC_MOPICS); ?>

</td>

     </tr>





       <tr>

         <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0">

           <tr>

             <td align="left" class="main"><a href="<? echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><?php echo tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS); ?></a></td>

             <td align="center" class="main"><input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>"><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></form></td>



 <td align="right" class="main"><form name="wishlist_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_wishlist', 'NONSSL'); ?>">

                           <input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>">

                           <input type="hidden" name="products_model" value="<?php echo $product_info_values['products_model']; ?>">

                           <input type="hidden" name="products_name" value="<?php echo $product_info_values['products_name']; ?>">

                           <input type="hidden" name="products_price" value="<?php echo $product_info_values['products_price']; ?>">

                           <input type="hidden" name="final_price" value="<?php echo $product_info_values['final_price']; ?>">

                           <input type="hidden" name="products_tax" value="<?php echo $product_info_values['products_tax']; ?>">



                               <?php if (tep_session_is_registered('customer_id')) echo tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST); ?>

                         </form></td>

           </tr>

         </table></td>

       </tr>



















     <tr>

       <td><br>







<?php

//added for cross -sell

  if ( (USE_CACHE == 'true') && !SID) {

   echo tep_cache_also_purchased(3600);

  } else {

    include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);

     include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

   }

  }

?>

       </td>

     </tr>

   </table></td>

<!-- body_text_eof //-->

Share this post


Link to post
Share on other sites
Guest

I uploaded all the necessary php files from a working installation of MS1 to the downloads/contributions area last week! :shock:

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
Sign in to follow this  

×