Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

lukaf

Pioneers
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Real Name
    flop

lukaf's Achievements

  1. Hello, I just tried to install "Option Type" of osc 2.3 and I come to ask your help here because I'm stuck on two issues: After edit / catalog / shopping_cart.php I can add a product to the cart but if I view the cart again the image of the product is no longer displayed The second problem is that the "remove" button does not work at all, the quantity of products in the basket does not change, for account "update" work properly. This /catalog/shopping_cart.php if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { // Option Types v2 - Rearanged Product(s) cart-listing, added Options Column, Upload preview link, and added Prices to Attributes $imageDir = (tep_session_registered) ? UPL_DIR : TMP_DIR; $image_link1 = ''; $image_link2 = ''; if (file_exists($imageDir.$products[$i][$option]['products_options_values_name'])) { $image_link1 = '<a href="' . $imageDir . $products[$i][$option]['products_options_values_name'] . '" target="_blank">'; $image_link2 = tep_image(DIR_WS_ICONS . 'view.gif') . '</a>'; } $Option_Price = ($products[$i][$option]['options_values_price'] != '0') ? ' - (' . $products[$i][$option]['price_prefix'] . $currencies->display_price($products[$i][$option]['options_values_price'], tep_get_tax_rate($products[$i]['tax_class_id'])) . ')' : ''; $products_Options .= '<small>- ' . $products[$i][$option]['products_options_name'] . ': <i>' . $image_link1 . $products[$i][$option]['products_options_values_name'] . $image_link2 . '</i>' . $Option_Price . '</small><br>'; } } $products_Options .= '<br /><br />' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) .' '. tep_draw_button(IMAGE_BUTTON_UPDATE, 'refresh') . ' '. tep_draw_button(IMAGE_BUTTON_DELETE, 'trash',tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product')); $products_Options .= ' </td>' . ' </tr>' . '</table>'; echo ' <td valign="top">' . $products_Options . '</td>' . ' <td align="right" valign="top"><strong>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</strong></td>' . ' </tr>'; } Thanks
×
×
  • Create New...