View Single Post
  #373  
Old 04-12-2005, 09:59 AM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

Hi Jon

Jon wrote
Code:
I'm evaluating the code for ezRecommends and will be fixing some issues with gift certificates and with the points mod shortly.

I wrote
Code:
Have you sorted this yet jon, when i'am taken back to ezrecommends when using gift certificate i need to have a message to let people know they are using a secondary payment method. I have tried this fix below but now message.

I found all the "mode=checkout" in cart.php and changed them to "mode=checkout&ezrecommends=Y"

I could not find this
Code:
func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&paymentid=".@$paymentid);

in /payment/payment_giftcert.php but did find this
Code:
# # Not enough money # func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout"); }

and then i added this to it

Code:
# # Not enough money # func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&ezrecommends=Y&giftcertapplied=Y"); }

I now get a message the message that i entered in

Code:
txt_giftcertapplied - Your gift certificate has been applied. Please select a secondary payment method to complete your order.

and it is working so far

But i still recieve this error when i purchase a gift certificate

Code:
[12-Apr-2005 16:59:33] SQL error: /megapcs/cart.php SELECT DISTINCT productid2 as productid FROM xcart_product_links where ()) AND (productid2!='64' AND productid2!='70') ORDER BY RAND() LIMIT 4 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 ')) AND (productid2!='64' AND productid2!='70') ORDER BY RAND() Backtrace: /home/xxxxx/public_html/megapcs/include/func.php:120 /home/xxxxx/public_html/megapcs/include/func.php:80 /home/xxxxx/public_html/megapcs/include/func.php:164 /home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code(1) : eval()'d code:72 /home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code:1 /home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php(20) : eval()'d code:1 /home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php:20 /home/xxxxx/public_html/megapcs/cart.php:731

Cart.php :731 points to this:

Code:
# elseif($mode=="checkout" && !func_is_cart_empty($cart)) { include $xcart_dir."/modules/ezRecommends/ezrecommends.php"; $smarty->assign("main","ezrecommends"); } # # End Upselling Module #

What are the settings to be changed to Jon if the settings are causing the problem.

This setting seems to be OK.
Code:
$upsell_limit = "3";

This one does not,

Code:
$upsell_omit = array('');

Any idears??? Jon

Thanks again
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote