Jump to content

mattevans

Members
  • Content count

    35
  • Joined

  • Last visited

About mattevans

  • Birthday 04/04/1987

Profile Information

  • Real Name
    Mathew Evans
  • Gender
    Male
  • Location
    New Zealand
  1. mattevans

    [Contribution] SEO-G

    Hi All, I have installed this contribution as far as I could, but have run into an error. As soon as I add the below code to my catalog/.htaccess I get an Error 500 (Server Error). # -MS- SEO-G Added Options +FollowSymLinks RewriteEngine On # Next line must be changed to match your osCommerce folder - the relative path RewriteBase /catalog/ RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING} # -MS- SEO-G Added EOM Could someone please help me. Below is a copy of my /catalog/.htaccess # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # 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 # -MS- SEO-G Added Options +FollowSymLinks RewriteEngine On # Next line must be changed to match your osCommerce folder - the relative path RewriteBase /catalog/ RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING} # -MS- SEO-G Added EOM <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) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> Thanks all, any help would be appareciated. Matt Evans
  2. mattevans

    ### POINTS AND REWARDS MODULE V1.00 ###

    Hi All, I have installed this contribution. My problem is, when I choose the options to use my points to pay for a product, and then get taken over to checkout_confirmation.php the normal price of the product still shows, as if the points are not being used. Ive tried all things, and my register_globals is ON. What can I do to fix this? Thanks, Matt Evans New Zealand.
  3. Hi, Can anyone help me to explain why I have two shopping carts appearing...? I have installed this gift coupon contribution, its excellent, except, it has added 2X shopping carts to my website. Can anyone explain? Below is my code... <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART); // new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART)); // ############ Added CCGV Contribution ########## // CREDIT CLASS script moved by Rigadin in v5.13 for compatibility with STS $cart_contents_string =" <script language=\"javascript\"> function couponpopupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') } //--></script>"; // $cart_contents_string = ''; // ############ End Added CCGV Contribution ########## // $cart_contents_string = ''; if ($cart->count_contents() > 0) { // ############ Added CCGV Contribution ########## $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $cart_contents_string .= '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; // Modified in v5.13 by Rigadin for STS compatibility // ############ End Added CCGV Contribution ########## //$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { $cart_contents_string .= '<tr><td>Shopping Cart '; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $cart_contents_string .= '<span class="newItemInCart">'; } else { $cart_contents_string .= '<span class="infoBoxContents">'; } $cart_contents_string .= '<span class="green">' . $products[$i]['quantity'] . ' x items</span></span></td><td> | <a href="shopping_cart.php?'.tep_session_name().'='.tep_session_id().'">Checkout »</a></td>'; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $cart_contents_string .= '<span class="newItemInCart">'; } else { $cart_contents_string .= '<span class="infoBoxContents">'; } $cart_contents_string .= '</span></a></td></tr>'; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { tep_session_unregister('new_products_id_in_cart'); } } $cart_contents_string .= '</table>'; } else { $cart_contents_string .= 'Shopping Cart | <span class="green">' . BOX_SHOPPING_CART_EMPTY . '</span>'; } $info_box_contents = array(); $info_box_contents[] = array('text' => $cart_contents_string); // if ($cart->count_contents() > 0) { // $info_box_contents[] = array('text' => tep_draw_separator()); // $info_box_contents[] = array('align' => 'right', // 'text' => $currencies->format($cart->show_total())); // } // ############ Added CCGV Contribution ########## if (tep_session_is_registered('customer_id')) { $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); if ($gv_result['amount'] > 0 ) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>'); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>'); } } if (tep_session_is_registered('gv_id')) { $gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'"); $coupon = tep_db_fetch_array($gv_query); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_REDEEMED . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>'); } /*if (tep_session_is_registered('cc_id') && $cc_id) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . CART_COUPON . '</td><td class="smalltext" align="right" valign="bottom">' . '<a href="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>'); }*/ /* Serialio.com Edit Begin */ if (tep_session_is_registered('cc_id') && $cc_id) { $coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_id = '" . $cc_id . "'"); $coupon = tep_db_fetch_array($coupon_query); $coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'"); $coupon_desc = tep_db_fetch_array($coupon_desc_query); $text_coupon_help = sprintf("%s",$coupon_desc['coupon_name']); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . $text_coupon_help . '<br>' . '</td></tr></table>'); } /* Serialio.com Edit End */ // ############ End Added CCGV Contribution ########## new infoBox($info_box_contents); ?>
  4. Hi, Can anyone help me to explain why I have two shopping carts appearing...? I have installed this gift coupon contribution, its excellent, except, it has added 2X shopping carts to my website. Can anyone explain? Below is my code... <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART); // new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART)); // ############ Added CCGV Contribution ########## // CREDIT CLASS script moved by Rigadin in v5.13 for compatibility with STS $cart_contents_string =" <script language=\"javascript\"> function couponpopupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') } //--></script>"; // $cart_contents_string = ''; // ############ End Added CCGV Contribution ########## // $cart_contents_string = ''; if ($cart->count_contents() > 0) { // ############ Added CCGV Contribution ########## $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $cart_contents_string .= '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; // Modified in v5.13 by Rigadin for STS compatibility // ############ End Added CCGV Contribution ########## //$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { $cart_contents_string .= '<tr><td>Shopping Cart '; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $cart_contents_string .= '<span class="newItemInCart">'; } else { $cart_contents_string .= '<span class="infoBoxContents">'; } $cart_contents_string .= '<span class="green">' . $products[$i]['quantity'] . ' x items</span></span></td><td> | <a href="shopping_cart.php?'.tep_session_name().'='.tep_session_id().'">Checkout »</a></td>'; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $cart_contents_string .= '<span class="newItemInCart">'; } else { $cart_contents_string .= '<span class="infoBoxContents">'; } $cart_contents_string .= '</span></a></td></tr>'; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { tep_session_unregister('new_products_id_in_cart'); } } $cart_contents_string .= '</table>'; } else { $cart_contents_string .= 'Shopping Cart | <span class="green">' . BOX_SHOPPING_CART_EMPTY . '</span>'; } $info_box_contents = array(); $info_box_contents[] = array('text' => $cart_contents_string); // if ($cart->count_contents() > 0) { // $info_box_contents[] = array('text' => tep_draw_separator()); // $info_box_contents[] = array('align' => 'right', // 'text' => $currencies->format($cart->show_total())); // } // ############ Added CCGV Contribution ########## if (tep_session_is_registered('customer_id')) { $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); if ($gv_result['amount'] > 0 ) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>'); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>'); } } if (tep_session_is_registered('gv_id')) { $gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'"); $coupon = tep_db_fetch_array($gv_query); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_REDEEMED . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>'); } /*if (tep_session_is_registered('cc_id') && $cc_id) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . CART_COUPON . '</td><td class="smalltext" align="right" valign="bottom">' . '<a href="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>'); }*/ /* Serialio.com Edit Begin */ if (tep_session_is_registered('cc_id') && $cc_id) { $coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_id = '" . $cc_id . "'"); $coupon = tep_db_fetch_array($coupon_query); $coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'"); $coupon_desc = tep_db_fetch_array($coupon_desc_query); $text_coupon_help = sprintf("%s",$coupon_desc['coupon_name']); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . $text_coupon_help . '<br>' . '</td></tr></table>'); } /* Serialio.com Edit End */ // ############ End Added CCGV Contribution ########## new infoBox($info_box_contents); ?>
  5. Hi, Can anyone help me to explain why I have two shopping carts appearing...? I have installed this gift coupon contribution, its excellent, except, it has added 2X shopping carts to my website. Can anyone explain? Below is my code... <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART); // new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART)); // ############ Added CCGV Contribution ########## // CREDIT CLASS script moved by Rigadin in v5.13 for compatibility with STS $cart_contents_string =" <script language=\"javascript\"> function couponpopupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l eft=150') } //--></script>"; // $cart_contents_string = ''; // ############ End Added CCGV Contribution ########## // $cart_contents_string = ''; if ($cart->count_contents() > 0) { // ############ Added CCGV Contribution ########## $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $cart_contents_string .= '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; // Modified in v5.13 by Rigadin for STS compatibility // ############ End Added CCGV Contribution ########## //$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { $cart_contents_string .= '<tr><td>Shopping Cart '; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $cart_contents_string .= '<span class="newItemInCart">'; } else { $cart_contents_string .= '<span class="infoBoxContents">'; } $cart_contents_string .= '<span class="green">' . $products[$i]['quantity'] . ' x items</span></span></td><td> | <a href="shopping_cart.php?'.tep_session_name().'='.tep_session_id().'">Checkout »</a></td>'; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $cart_contents_string .= '<span class="newItemInCart">'; } else { $cart_contents_string .= '<span class="infoBoxContents">'; } $cart_contents_string .= '</span></a></td></tr>'; if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { tep_session_unregister('new_products_id_in_cart'); } } $cart_contents_string .= '</table>'; } else { $cart_contents_string .= 'Shopping Cart | <span class="green">' . BOX_SHOPPING_CART_EMPTY . '</span>'; } $info_box_contents = array(); $info_box_contents[] = array('text' => $cart_contents_string); // if ($cart->count_contents() > 0) { // $info_box_contents[] = array('text' => tep_draw_separator()); // $info_box_contents[] = array('align' => 'right', // 'text' => $currencies->format($cart->show_total())); // } // ############ Added CCGV Contribution ########## if (tep_session_is_registered('customer_id')) { $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); if ($gv_result['amount'] > 0 ) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_BALANCE . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($gv_result['amount']) . '</td></tr></table>'); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext"><a href="'. tep_href_link(FILENAME_GV_SEND) . '">' . BOX_SEND_TO_FRIEND . '</a></td></tr></table>'); } } if (tep_session_is_registered('gv_id')) { $gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'"); $coupon = tep_db_fetch_array($gv_query); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . VOUCHER_REDEEMED . '</td><td class="smalltext" align="right" valign="bottom">' . $currencies->format($coupon['coupon_amount']) . '</td></tr></table>'); } /*if (tep_session_is_registered('cc_id') && $cc_id) { $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="smalltext">' . CART_COUPON . '</td><td class="smalltext" align="right" valign="bottom">' . '<a href="java script:couponpopupWindow(\'' . tep_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $cc_id) . '\')">' . CART_COUPON_INFO . '</a>' . '</td></tr></table>'); }*/ /* Serialio.com Edit Begin */ if (tep_session_is_registered('cc_id') && $cc_id) { $coupon_query = tep_db_query("select * from " . TABLE_COUPONS . " where coupon_id = '" . $cc_id . "'"); $coupon = tep_db_fetch_array($coupon_query); $coupon_desc_query = tep_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cc_id . "' and language_id = '" . $languages_id . "'"); $coupon_desc = tep_db_fetch_array($coupon_desc_query); $text_coupon_help = sprintf("%s",$coupon_desc['coupon_name']); $info_box_contents[] = array('align' => 'left','text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left','text' => '<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td class="infoBoxContents">' . CART_COUPON . $text_coupon_help . '<br>' . '</td></tr></table>'); } /* Serialio.com Edit End */ // ############ End Added CCGV Contribution ########## new infoBox($info_box_contents); ?>
  6. Hi All, Yes! Thank you. What I did was copy the /catalog/admin/product_thumb.php, and replace it with the /catalog/product_thumb.php. Everything works fine now. Excellent contribution. Thanks. Matt Evans
  7. Hi All, I have tried installing this contribution, 3 times. Each time, everything seems to work smoothly, however, I cannot see the thumbnail images at all. There is just a dead image where the thumbnail should be. I have gone over everything many times, double checked. Reading over a little of the forum, I beleive I'm not the only one with this sort of problem. Has anyone found a soultion yet? Any help would be much appreciated. Thanks, Matt
  8. mattevans

    Shipping Based on Price

    Hi All, I need my customers who have an order over $100 to pay NO shipping, but any other orders under $100 to be a flat shipping rate of $10. So basically if a customer spends over $100 they get shipping for free! Any help would be much appreciated. I have had a look through the Contributions but couldn't see what I was after... maybe Im looking for the wrong thing. Could anyone help me here... Thanks...
  9. Hi Jack, Just wondering if it is possible to not have categories in Links Manager. I would rather just display the links instead if having to give it a "Compulsary" catergory. Any Help/Ideas? Thanks In Advance, Matt
  10. Your best bet is to do what I did. Remove Links Manager all together. Then install it again, but this time, spend extra time and care walking through the 'readme.txt' file. I was having the exact same problem as you. In the end I re-installed Links Manager 'carefully' and it worked. Sorry I can't be of any other help. :blink: Good Luck!
  11. Make sure you added the below code... // VJ Links Manager v1.00 begin require(DIR_WS_BOXES . 'links.php'); // VJ Links Manager v1.00 end to... /catalog/admin/includes/column_left.php and NOT /catalog/includes/column_left.php Matt
  12. Thanks Jack, Deleted Links Manager again, and re-installed (again) seems to be working now, with only a few mySQL errors on the admin side. Found the patch for this alongside the Contribution. Thanks for the great addon! Regards, Matt.
  13. Thank you both, My problem still is here. I don't have the menu item "Links Manager" in the admin console. I have reinstalled "Links Manager V1.14" and it is still not there!? Am I missing files? Below is a screen shot... so you can see for yourself... http://bigmattonline.com/help.jpg Thanks Again...
  14. Hi There, I'm quite new to this hole osCommerce thing! I have managed to install the links manager correctly (i think). I cannot work out how to add a link.. from the admin side of things? If I look under Configuration > Links... it gives me many options such as... "Display all English Links" "Siper Friendly Links" etc etc etc But it gives me no option to create catergories or add links...? Am I doing something wrong...? No doubt it will be something simple? Thanks in advance for any help. Matt
  15. Hi All, I am in need of help. I have a shop that sells baby clothing to New Zealand. We are wanting to start allowing Australians to by clothing too. At the moment we have a $5 flat fee for shipping anywhere in NZ... we want to keep this... but we need to charge $12 when shipping to Australia. Any ideas? or help? I have been looking though the forums but can't find too much. Im sure it must be rather straight forward. Thanks alot. Matt Evans :thumbsup:
×