Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products Attributes


Guest

Recommended Posts

Hi, When u add a product attribute to a product for download after the payment (for example a file test.zip), the buynow action go to the product_info.php.. :(

 

I mean, when u click on the buy now button for a product, he dont add the product to the basket but he go to the product info page. Ive removed the product attribute, and now he add the product to the basket.. wtf? If i remove the attribute the customer cant download the product.. how can i fix it? :blink: I use the download controller 5.2 :huh:

Link to comment
Share on other sites

TOPIC CLOSE!!!!

 

Ty John but i found the problem.

 

For all ppl who want fix this problem, here is the solution:

 

In application_top.php, line 358, u have this code line:

 

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));

 

replace it with:

 

$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

 

Ok its sure u can modify the IF and ELSE but its working as this perfectly and its more simple to come back to the originale code line of u want after the modification. :lol:

Link to comment
Share on other sites

  • 2 weeks later...

This works however, the download link at the end of checkout does not appear.

 

Anyway to accomplish this using download products?

 

TOPIC CLOSE!!!!

 

Ty John but i found the problem.

 

For all ppl who want fix this problem, here is the solution:

 

In application_top.php, line 358, u have this code line:

 

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));

 

replace it with:

 

$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

 

Ok its sure u can modify the IF and ELSE but its working as this perfectly and its more simple to come back to the originale code line of u want after the modification. :lol:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...