Latest News: (loading..)

quomo

Members
  • Content count

    103
  • Joined

  • Last visited

1 Follower

About quomo

Profile Information

  • Real Name
    Angel Luis Gonzalez
  1. Now, is there any beautiful way to avoid orders being recorded as "Preparing [PayPal IPN]" at all when they are not completed in PayPal? Our orders count is not gonna be meaningful anymore otherwise. Thanks!
  2. I concur with many in self-resolving our own problems when I declare that yes, the above mentioned fix, is indeed a fix.
  3. Im testing this: Look for : “address_override” => “1″ change to: “address_override” => “0″ Will come back with the results.
  4. Hiya, Im on PayPal IPN Module 2.3.4.7 Im getting the "paypal does not allow your country of residence to ship to the country you wish to" message. Tried to find info in the posts, to no avail. Point me where if Im missing summin. Whats the best way to resolve this, so users can ship wherever they see fit?
  5. Thanks Max, but the forward slash, as described in the actual installation files, was the first thing I tried. I will look at the forum you mention, once again.
  6. Hiya Installed I installed Ultimate Seo Urls v2.6 (18 Aug 2008) When I change the .htaccess as suggested in the installation guide I get a 500 error. Can anyone help me to get the htaccess right? This is my code: # $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # #<Directory "/usr/local/apache/htdocs"> # AllowOverride Options #<Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers #<IfModule mod_setenvif.c> # <IfDefine SSL> # SetEnvIf User-Agent ".*MSIE.*" \ # nokeepalive ssl-unclean-shutdown \ # downgrade-1.0 force-response-1.0 # </IfDefine> #</IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # php_value session.use_trans_sid 0 # php_value register_globals 1 # Ultimate SEO URLs BEGIN Options +FollowSymLinks RewriteEngine On RewriteBase /home/www/mysite.org/ RewriteCond %{QUERY_STRING} ^options\=(.*)$ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1 RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING} # Added polls and newsdesk #RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING} RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} # BOF: Faqdesk support added by faaliyet RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING} # EOF: Faqdesk support added by faaliyet # Ultimate SEO URLs END # Block Bad Bots RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR] RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR] RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR] RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR] RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR] RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR] RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR] RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR] RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR] RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR] RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR] RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR] RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR] RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR] RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR] RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR] RewriteCond %{HTTP_USER_AGENT} ^larbin [OR] RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR] RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR] RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR] RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR] RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR] RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR] RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR] RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR] RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR] RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR] RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR] RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR] RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR] RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR] RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR] RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR] RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR] RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR] RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR] RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR] RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR] RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR] RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR] RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR] RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR] RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR] RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR] RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^Wget [OR] RewriteCond %{HTTP_USER_AGENT} ^Widow [OR] RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR] RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus RewriteRule .* - [F]
  7. No Refresh of form when country selected Im using 2.2 RC2 When a client uses the fast easy checkout and chooses a country, the form isnt reloaded and no states/provinces are given as options. Any ideas why?
  8. Hi Any chance to get that code you used to connect with Realex? I installed a payment module (basically modifying an old one) and all is working fine BUT the MD5HASH thingy. Have a look at this: the following code creates the hidden fields in the form. I manage to make all work, but the MD5HASH is not being calculated, as I just havent got a clue and add the code as is given by REALEX. function process_button() { global $HTTP_SERVER_VARS, $order, $customer_id; $sequence = rand(1, 1000); $process_button_string = tep_draw_hidden_field('customers_id', $customer_id) . tep_draw_hidden_field('customers_name', $order->customer['firstname'] . ' ' . $order->customer['lastname']) . tep_draw_hidden_field('customers_company', $order->customer['company']) . tep_draw_hidden_field('customers_street_address', $order->customer['street_address']) . tep_draw_hidden_field('customers_suburb', $order->customer['suburb']) . tep_draw_hidden_field('customers_city', $order->customer['city']) . tep_draw_hidden_field('customers_postcode', $order->customer['postcode']) . tep_draw_hidden_field('customers_state', $order->customer['state']) . tep_draw_hidden_field('customers_country', $order->customer['country']['title']) . tep_draw_hidden_field('customers_telephone', $order->customer['telephone']) . tep_draw_hidden_field('customers_email_address', $order->customer['email_address']) . tep_draw_hidden_field('customers_address_format_id', $order->customer['format_id']) . tep_draw_hidden_field('delivery_name', $order->delivery['firstname'] . ' ' . $order->delivery['lastname']) . tep_draw_hidden_field('delivery_company', $order->delivery['company']) . tep_draw_hidden_field('delivery_street_address', $order->delivery['street_address']) . tep_draw_hidden_field('delivery_suburb', $order->delivery['suburb']) . tep_draw_hidden_field('delivery_city', $order->delivery['city']) . tep_draw_hidden_field('delivery_postcode', $order->delivery['postcode']) . tep_draw_hidden_field('delivery_state', $order->delivery['state']) . tep_draw_hidden_field('delivery_country', $order->delivery['country']['title']) . tep_draw_hidden_field('delivery_address_format_id', $order->delivery['format_id']) . tep_draw_hidden_field('billing_name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) . tep_draw_hidden_field('billing_company', $order->billing['company']) . tep_draw_hidden_field('billing_street_address', $order->billing['street_address']) . tep_draw_hidden_field('billing_suburb', $order->billing['suburb']) . tep_draw_hidden_field('billing_city', $order->billing['city']) . tep_draw_hidden_field('billing_postcode', $order->billing['postcode']) . tep_draw_hidden_field('billing_state', $order->billing['state']) . tep_draw_hidden_field('billing_country', $order->billing['country']['title']) . tep_draw_hidden_field('billing_address_format_id', $order->billing['format_id']) . tep_draw_hidden_field('payment_method', $order->info['payment_method']) . tep_draw_hidden_field('cc_type', $order->info['cc_type']) . tep_draw_hidden_field('cc_owner', $order->info['cc_owner']) . tep_draw_hidden_field('realex_cc_owner', $HTTP_POST_VARS['realex_cc_owner']) . tep_draw_hidden_field('realex_cc_number', $HTTP_POST_VARS['realex_cc_number']) . tep_draw_hidden_field('realex_cc_expires_month', $HTTP_POST_VARS['realex_cc_expires_month']) . tep_draw_hidden_field('realex_cc_expires_year', $HTTP_POST_VARS['realex_cc_expires_year']) . tep_draw_hidden_field('cc_number', $this->cc_card_number) . tep_draw_hidden_field('cc_expires', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . tep_draw_hidden_field('orders_status', $order->info['order_status']) . tep_draw_hidden_field('CURRENCY', $order->info['currency']) . tep_draw_hidden_field('currency_value', $order->info['currency_value']) . tep_draw_hidden_field('ORDER_ID', $timestamp = strftime("%Y%m%d%H%M%S") . mt_srand((double)microtime()*1000000)."-".mt_rand(1, 999)) . tep_draw_hidden_field('orders_status_id', $order->info['order_status']) . tep_draw_hidden_field('MERCHANT_ID', MODULE_PAYMENT_REALEX_MERCHANT_ID) . tep_draw_hidden_field('card_number', $this->cc_card_number) . tep_draw_hidden_field('card_exp_date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . tep_draw_hidden_field('description', MODULE_PAYMENT_REALEX_TEXT_DESCRIPTION_SHOP) . tep_draw_hidden_field('cart_id', $this->cartID) . tep_draw_hidden_field('AMOUNT', number_format($order->info['total'], 2)) . tep_draw_hidden_field('comments', $order->info['comments']) . tep_draw_hidden_field('TIMESTAMP', $timestamp = strftime("%Y%m%d%H%M%S") . mt_srand((double)microtime()*1000000)) . tep_draw_hidden_field('MD5HASH', $md5hash =( $tmp = "$timestamp.$merchantid.$orderid.$amount.$currency". $md5hash = md5($tmp). $tmp = "$md5hash.$secret". $md5hash = md5($tmp)) ) . tep_draw_hidden_field('AUTO_SETTLE_FLAG', '0') . tep_draw_hidden_field('x_email_merchant', ((MODULE_PAYMENT_REALEX_EMAIL_MERCHANT == 'True') ? 'TRUE' : 'FALSE')); Does the code you have help me??
  9. Hi Any chance to get that code if you resolved it? I installed a payment module (basically modifying an old one) and all is working fine BUT the MD5HASH thingy. Have a look at this: the following code creates the hidden fields in the form. I manage to make all work, but the MD5HASH is not being calculated, as I just havent got a clue and add the code as is given by REALEX. function process_button() { global $HTTP_SERVER_VARS, $order, $customer_id; $sequence = rand(1, 1000); $process_button_string = tep_draw_hidden_field('customers_id', $customer_id) . tep_draw_hidden_field('customers_name', $order->customer['firstname'] . ' ' . $order->customer['lastname']) . tep_draw_hidden_field('customers_company', $order->customer['company']) . tep_draw_hidden_field('customers_street_address', $order->customer['street_address']) . tep_draw_hidden_field('customers_suburb', $order->customer['suburb']) . tep_draw_hidden_field('customers_city', $order->customer['city']) . tep_draw_hidden_field('customers_postcode', $order->customer['postcode']) . tep_draw_hidden_field('customers_state', $order->customer['state']) . tep_draw_hidden_field('customers_country', $order->customer['country']['title']) . tep_draw_hidden_field('customers_telephone', $order->customer['telephone']) . tep_draw_hidden_field('customers_email_address', $order->customer['email_address']) . tep_draw_hidden_field('customers_address_format_id', $order->customer['format_id']) . tep_draw_hidden_field('delivery_name', $order->delivery['firstname'] . ' ' . $order->delivery['lastname']) . tep_draw_hidden_field('delivery_company', $order->delivery['company']) . tep_draw_hidden_field('delivery_street_address', $order->delivery['street_address']) . tep_draw_hidden_field('delivery_suburb', $order->delivery['suburb']) . tep_draw_hidden_field('delivery_city', $order->delivery['city']) . tep_draw_hidden_field('delivery_postcode', $order->delivery['postcode']) . tep_draw_hidden_field('delivery_state', $order->delivery['state']) . tep_draw_hidden_field('delivery_country', $order->delivery['country']['title']) . tep_draw_hidden_field('delivery_address_format_id', $order->delivery['format_id']) . tep_draw_hidden_field('billing_name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) . tep_draw_hidden_field('billing_company', $order->billing['company']) . tep_draw_hidden_field('billing_street_address', $order->billing['street_address']) . tep_draw_hidden_field('billing_suburb', $order->billing['suburb']) . tep_draw_hidden_field('billing_city', $order->billing['city']) . tep_draw_hidden_field('billing_postcode', $order->billing['postcode']) . tep_draw_hidden_field('billing_state', $order->billing['state']) . tep_draw_hidden_field('billing_country', $order->billing['country']['title']) . tep_draw_hidden_field('billing_address_format_id', $order->billing['format_id']) . tep_draw_hidden_field('payment_method', $order->info['payment_method']) . tep_draw_hidden_field('cc_type', $order->info['cc_type']) . tep_draw_hidden_field('cc_owner', $order->info['cc_owner']) . tep_draw_hidden_field('realex_cc_owner', $HTTP_POST_VARS['realex_cc_owner']) . tep_draw_hidden_field('realex_cc_number', $HTTP_POST_VARS['realex_cc_number']) . tep_draw_hidden_field('realex_cc_expires_month', $HTTP_POST_VARS['realex_cc_expires_month']) . tep_draw_hidden_field('realex_cc_expires_year', $HTTP_POST_VARS['realex_cc_expires_year']) . tep_draw_hidden_field('cc_number', $this->cc_card_number) . tep_draw_hidden_field('cc_expires', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . tep_draw_hidden_field('orders_status', $order->info['order_status']) . tep_draw_hidden_field('CURRENCY', $order->info['currency']) . tep_draw_hidden_field('currency_value', $order->info['currency_value']) . tep_draw_hidden_field('ORDER_ID', $timestamp = strftime("%Y%m%d%H%M%S") . mt_srand((double)microtime()*1000000)."-".mt_rand(1, 999)) . tep_draw_hidden_field('orders_status_id', $order->info['order_status']) . tep_draw_hidden_field('MERCHANT_ID', MODULE_PAYMENT_REALEX_MERCHANT_ID) . tep_draw_hidden_field('card_number', $this->cc_card_number) . tep_draw_hidden_field('card_exp_date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . tep_draw_hidden_field('description', MODULE_PAYMENT_REALEX_TEXT_DESCRIPTION_SHOP) . tep_draw_hidden_field('cart_id', $this->cartID) . tep_draw_hidden_field('AMOUNT', number_format($order->info['total'], 2)) . tep_draw_hidden_field('comments', $order->info['comments']) . tep_draw_hidden_field('TIMESTAMP', $timestamp = strftime("%Y%m%d%H%M%S") . mt_srand((double)microtime()*1000000)) . tep_draw_hidden_field('MD5HASH', $md5hash =( $tmp = "$timestamp.$merchantid.$orderid.$amount.$currency". $md5hash = md5($tmp). $tmp = "$md5hash.$secret". $md5hash = md5($tmp)) ) . tep_draw_hidden_field('AUTO_SETTLE_FLAG', '0') . tep_draw_hidden_field('x_email_merchant', ((MODULE_PAYMENT_REALEX_EMAIL_MERCHANT == 'True') ? 'TRUE' : 'FALSE')); Does the code you have help me?? Once this is resolved, it will be turn into a contribution.
  10. Hi Any chance to get that code? I installed a payment module (basically modifying an old one) and all is working fine BUT the MD5HASH thingy. Have a look at this: the following code creates the hidden fields in the form. I manage to make all work, but the MD5HASH is not being calculated, as I just havent got a clue and add the code as is given by REALEX. function process_button() { global $HTTP_SERVER_VARS, $order, $customer_id; $sequence = rand(1, 1000); $process_button_string = tep_draw_hidden_field('customers_id', $customer_id) . tep_draw_hidden_field('customers_name', $order->customer['firstname'] . ' ' . $order->customer['lastname']) . tep_draw_hidden_field('customers_company', $order->customer['company']) . tep_draw_hidden_field('customers_street_address', $order->customer['street_address']) . tep_draw_hidden_field('customers_suburb', $order->customer['suburb']) . tep_draw_hidden_field('customers_city', $order->customer['city']) . tep_draw_hidden_field('customers_postcode', $order->customer['postcode']) . tep_draw_hidden_field('customers_state', $order->customer['state']) . tep_draw_hidden_field('customers_country', $order->customer['country']['title']) . tep_draw_hidden_field('customers_telephone', $order->customer['telephone']) . tep_draw_hidden_field('customers_email_address', $order->customer['email_address']) . tep_draw_hidden_field('customers_address_format_id', $order->customer['format_id']) . tep_draw_hidden_field('delivery_name', $order->delivery['firstname'] . ' ' . $order->delivery['lastname']) . tep_draw_hidden_field('delivery_company', $order->delivery['company']) . tep_draw_hidden_field('delivery_street_address', $order->delivery['street_address']) . tep_draw_hidden_field('delivery_suburb', $order->delivery['suburb']) . tep_draw_hidden_field('delivery_city', $order->delivery['city']) . tep_draw_hidden_field('delivery_postcode', $order->delivery['postcode']) . tep_draw_hidden_field('delivery_state', $order->delivery['state']) . tep_draw_hidden_field('delivery_country', $order->delivery['country']['title']) . tep_draw_hidden_field('delivery_address_format_id', $order->delivery['format_id']) . tep_draw_hidden_field('billing_name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) . tep_draw_hidden_field('billing_company', $order->billing['company']) . tep_draw_hidden_field('billing_street_address', $order->billing['street_address']) . tep_draw_hidden_field('billing_suburb', $order->billing['suburb']) . tep_draw_hidden_field('billing_city', $order->billing['city']) . tep_draw_hidden_field('billing_postcode', $order->billing['postcode']) . tep_draw_hidden_field('billing_state', $order->billing['state']) . tep_draw_hidden_field('billing_country', $order->billing['country']['title']) . tep_draw_hidden_field('billing_address_format_id', $order->billing['format_id']) . tep_draw_hidden_field('payment_method', $order->info['payment_method']) . tep_draw_hidden_field('cc_type', $order->info['cc_type']) . tep_draw_hidden_field('cc_owner', $order->info['cc_owner']) . tep_draw_hidden_field('realex_cc_owner', $HTTP_POST_VARS['realex_cc_owner']) . tep_draw_hidden_field('realex_cc_number', $HTTP_POST_VARS['realex_cc_number']) . tep_draw_hidden_field('realex_cc_expires_month', $HTTP_POST_VARS['realex_cc_expires_month']) . tep_draw_hidden_field('realex_cc_expires_year', $HTTP_POST_VARS['realex_cc_expires_year']) . tep_draw_hidden_field('cc_number', $this->cc_card_number) . tep_draw_hidden_field('cc_expires', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . tep_draw_hidden_field('orders_status', $order->info['order_status']) . tep_draw_hidden_field('CURRENCY', $order->info['currency']) . tep_draw_hidden_field('currency_value', $order->info['currency_value']) . tep_draw_hidden_field('ORDER_ID', $timestamp = strftime("%Y%m%d%H%M%S") . mt_srand((double)microtime()*1000000)."-".mt_rand(1, 999)) . tep_draw_hidden_field('orders_status_id', $order->info['order_status']) . tep_draw_hidden_field('MERCHANT_ID', MODULE_PAYMENT_REALEX_MERCHANT_ID) . tep_draw_hidden_field('card_number', $this->cc_card_number) . tep_draw_hidden_field('card_exp_date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . tep_draw_hidden_field('description', MODULE_PAYMENT_REALEX_TEXT_DESCRIPTION_SHOP) . tep_draw_hidden_field('cart_id', $this->cartID) . tep_draw_hidden_field('AMOUNT', number_format($order->info['total'], 2)) . tep_draw_hidden_field('comments', $order->info['comments']) . tep_draw_hidden_field('TIMESTAMP', $timestamp = strftime("%Y%m%d%H%M%S") . mt_srand((double)microtime()*1000000)) . tep_draw_hidden_field('MD5HASH', $md5hash =( $tmp = "$timestamp.$merchantid.$orderid.$amount.$currency". $md5hash = md5($tmp). $tmp = "$md5hash.$secret". $md5hash = md5($tmp)) ) . tep_draw_hidden_field('AUTO_SETTLE_FLAG', '0') . tep_draw_hidden_field('x_email_merchant', ((MODULE_PAYMENT_REALEX_EMAIL_MERCHANT == 'True') ? 'TRUE' : 'FALSE')); Does the code you have help me??
  11. I uploaded the file admin/categories that comes with the contribution to save a long headhache. BUt if anyone can tell me why did this happen, better. x :thumbsup:
  12. Ok, I had two closing statements, so I mofified what I show in red, to a "," ----------------------------------------------------------------------------------- $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $language_id = $languages[$i]['id']; //HTC BOC $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]), 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]), 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); //HTC EOC 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); if ($action == 'insert_product') { $insert_sql_data = array('products_id' => $products_id, 'language_id' => $language_id); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); ------------------------------------------------------------------------------------------- But now I get error as follows: Parse error: parse error, unexpected T_CASE in /home/facialwo/public_html/shop/admin/categories.php on line 374 starting in line 354, up to 385 (line 374, in red for reference) ---------------------------------------------------------------------------------------- //HTC BOC $description_query = tep_db_query("select language_id, products_name, products_description, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'"); while ($description = tep_db_fetch_array($description_query)) { tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, products_url, products_viewed) values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_head_title_tag']) . "', '" . tep_db_input($description['products_head_desc_tag']) . "', '" . tep_db_input($description['products_head_keywords_tag']) . "', '" . tep_db_input($description['products_url']) . "', '0')"); } //HTC EOC } tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$dup_products_id . "', '" . (int)$categories_id . "')"); $products_id = $dup_products_id; } if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); } } tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $categories_id . '&pID=' . $products_id)); break; case 'new_product_preview': // copy image only if modified $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } break; } } ----------------------------------------------------------------------------------- :blink: ??
  13. Hi, After installing the latest version of Header Tags Controller, Im getting the following error: Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/facialwo/public_html/shop/admin/categories.php on line 308 The code starting in line 296 up to 316 is as follows: ----------------------------------------------------------------------------------- $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $language_id = $languages[$i]['id']; //HTC BOC $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]), 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]), 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); //HTC EOC 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); if ($action == 'insert_product') { $insert_sql_data = array('products_id' => $products_id, 'language_id' => $language_id); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); ------------------------------------------------------------------------------------------- Am I missing some brackets somewhere?
  14. Hi, After installing the latest version of Header Tags, Im getting the following error: Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/facialwo/public_html/shop/admin/categories.php on line 308 The code starting in line 296 up to 316 is as follows: ----------------------------------------------------------------------------------- $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $language_id = $languages[$i]['id']; //HTC BOC $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]), 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]), 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id]), 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); //HTC EOC 'products_head_title_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_title_tag'][$language_id]), 'products_head_desc_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_desc_tag'][$language_id]), 'products_head_keywords_tag' => tep_db_prepare_input($HTTP_POST_VARS['products_head_keywords_tag'][$language_id])); if ($action == 'insert_product') { $insert_sql_data = array('products_id' => $products_id, 'language_id' => $language_id); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); ------------------------------------------------------------------------------------------- Am I missing some brackets somewhere?
  15. Well, after 5 products are added to the wisklist the box should only display a counter, but mine is storing and displaying all of them. Imagine the mess in that column after storing 6+ products. How can I control this? (Using wishlist by Alex Ponomaryov, 2.11.2004)