[osCommerce] How To Check if the Customer is Logged in or not in osCommerce Store

While working in osCommerce store, there are many places where you want to show some infromation only to logged in customers, and some thing else to non-logged in users. For this purpose, you need to check tep_session_is_registered(‘customer_id’) variable and show different blocks of content. In the following code, I have put togther an example where…

[AlertPay+osCommerce] Resolve AlertPay Payment Module Error – ap_shipping charges field must be numeric

While setting up AlertPay Payment module in a osCommerce Store, I encountered following error “ap_shippingcharges field must be numeric” during a test purchase. To fix this error, open catalog/includes/modules/payment/alertpay.php Find this: tep_draw_hidden_field(‘ap_shippingcharges’, $order->info[‘shipping_cost’]) . Replace with this: tep_draw_hidden_field(‘ap_shippingcharges’, number_format($order->info[‘shipping_cost’], 2, ‘.’, ”)) . I have also updated the AlertPay contribution on osCommerce website here. Hope…

[Joomla] Resolve Error Installing Joomla Components or Plugins, It was not possible to copy the selected file

If you get following error while installing Joomla components or plugins, It was not possible to copy the selected file. JInstaller::install: Failed to copy file: /var/www/localhost/htdocs/tmp/install_4d621e648af3f/plg_sslredirect/sslredirect.php to /var/www/localhost/htdocs/plugins/system/sslredirect.php Permission Solution You can resolve this by changing permissions (chmod to 777) on following directories in your Joomla website. chmod 777 /tmp chmod 777 /plugins/content chmod 777…

[osCommerce] EasyPaisa Mobile Money Transfer Contribution for osCommerce Store

While implementing a recent osCommerce store, I needed to add Mobile Money Transfer payment as another option for the customers to pay. Requirement was quite straight forward, I needed to incorporate EasyPaisa Mobile Money Transfer provided by Telenor in Pakistan which would let customers choose it as a payment option and then make the payment…