Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buttons not working!!!


mijman2

Recommended Posts

Posted

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!!!!!

Posted

On a product page...

Click on one of the new products for may...

 

Then click add to cart and it doesnt work

Posted

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

Posted

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

Posted

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

Posted

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:

Posted

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?

Posted

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

Posted

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...