mijman2 Posted May 24, 2004 Posted May 24, 2004 The buttons on my site stopped working... www.ipodxtras.com some of them work some of them don't (like the add to cart button and the sign in button) I am using STS... Please Help I dont know what i did!!!!!
Paycheck Posted May 24, 2004 Posted May 24, 2004 Seems to be OK to me, what butons are not working correctly Always remember, we need patience, guidance and most of all understanding. My Contributions
mijman2 Posted May 24, 2004 Author Posted May 24, 2004 On a product page... Click on one of the new products for may... Then click add to cart and it doesnt work
Paycheck Posted May 24, 2004 Posted May 24, 2004 I am still checking but I will tell you if you are modding the cart using contributions which I can see you are by the gift voucher mod, you need to be carefull. The STS template system can get screwed up from contributions. It basicall recognizes the base osc 2.2MS2 system of layout. When you start changing it it can run into errors or in your case loose track of links etc. I am not saying this is the issue because I notice that looking at the button preferences it is showing the link to the oscID: that comes from the product_info page. What is baffling is why it is not calling it to the checkout page. Maybe it has to do with the link on the button script. I am going to pull up STS and see if I can re-create this button error. I would start by checking your product_info.php in your STS files. THis is most likely where the problem lies in the first few lines of code I see this // Start the "Add to Cart" form $template['startform'] = tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); // Add the hidden form variable for the Product_ID $template['startform'] .= tep_draw_hidden_field('products_id', $product_info['products_id']); $template['endform'] = "</form>"; // Get product information from products_id parameter $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); $template['addtocartbutton'] = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); And this which calls the checkout page Sorry but I am not real familiar with this system and will keep checking for you. We will find an answer JM Always remember, we need patience, guidance and most of all understanding. My Contributions
Paycheck Posted May 24, 2004 Posted May 24, 2004 I think that the link from the add to cart button may be missing or misspelled in the language files. Always remember, we need patience, guidance and most of all understanding. My Contributions
Paycheck Posted May 24, 2004 Posted May 24, 2004 Check your files in the STS system (Application_top.php and your config files for the proper call to shopping_cart.php) J Always remember, we need patience, guidance and most of all understanding. My Contributions
mijman2 Posted May 25, 2004 Author Posted May 25, 2004 I am on STS 1 so i dont think I am supposed to have the // Start the "Add to Cart" form $template['startform'] = tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); // Add the hidden form variable for the Product_ID $template['startform'] .= tep_draw_hidden_field('products_id', $product_info['products_id']); $template['endform'] = "</form>"; // Get product information from products_id parameter $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); There are other links w/ the exact same button that work... For instance if you go to the product page, then you click on review then add to cart... It works... Also, when you try to click on update with the cart it doesn't work!!!! AHHH i am going crazy! -I was hoping to finish up my store, but it looks like I need to start all over AHHHHHHHHHHHHHHHHHHHH :wacko: :blink: :( :( :wacko: :wacko: :wacko:
mijman2 Posted May 25, 2004 Author Posted May 25, 2004 I uploaded a whole new site (when it was at a stable place) it is now freepgs.com/mijman2/catalog2 I realized that the same problem occured! -Does this mean my database is corrupted? because both of the sites point to the same database?
mijman2 Posted May 25, 2004 Author Posted May 25, 2004 Please help... Any one else have any ideas as to what could have gone wrong? There are several buttons that don't have active links... They work on different pages, but no on others... I have STS, Thema, Gift Voucher/Discount Coupon, and i think thtat it is
mijman2 Posted May 25, 2004 Author Posted May 25, 2004 i have a site up that was my last stable version the bad one is located at freepgs.com/mijman2/catalog2 -I think i modified (or at least looked at and might have modified) the follwing files -application_top.php -application_bottom.php -index.php -template.html I think that was it...
mijman2 Posted May 26, 2004 Author Posted May 26, 2004 No... I might just try to get the 2nd site up to where the 1st one was...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.