Jump to content

Junny

Members
  • Content count

    35
  • Joined

  • Last visited

4 Followers

Profile Information

  • Real Name
    junny
  • Gender
    Male
  • Location
    japan
  1. Junny

    Products Attribute price mod

    ../catalog/includes/classes/shopping_cart.php Put this code above this code (bold font section is add for this mod) that's it Next modification is set new attribute value via admin page. It might be in this file. ../admin/product_attributes.php
  2. Junny

    Products Attribute price mod

    ../catalog/includes/classes/shopping_cart.php in the part of this section put p.p_qty before p.product_price like this and put this value to $products_array like this then, put into ../catalog/includes/modules/order_details.php //product options prices Yes! it's done. But still have a problem with final price. ../catalog/includes/classes/shopping_cart.php add query value p_qty // products price and below // attributes price This total price appears subtotal in ../catalog/shopping_cart.php its done. but similer part in function attribute_price($products_id){ This part appears final price.(may be in checkout_confirmation.php) It dosen't work. How can I fix it?
  3. Junny

    Products Attribute price mod

    little bit solved, but still stuck. ../catalog/shopping_cart.php // Push all attributes information in an array add pa.options_x_price and pa.options_p_price and add 2 lines above(bold font) ../catalog/includes/modules/order_details.php //product options prices I can get 'options_x_price' and 'options_p_price' but $products['p_qty'] was not exsist. I checked print_r($products); in order_details.php How to put this value in $products array?
  4. Junny

    Products Attribute price mod

    Now I'm confusing about this. I think these files should be modify. ../catalog/shopping_cart.php // Push all attributes information in an array ../catalog/includes/modules/order_detail.php //product options prices ../catalog/includes/classes/shopping_cart.php // products price // attributes price please help,,, >_<
  5. Hi, I'm trying to change product attributes price. I made one extra field in products table, and two extra field in products_attribute table lists below. table products p_qty table products_attributes options_x_price options_p_price then, I wanto to show a new attributes price in product_info.php like this, and it works but I want to keep this price to the final checkout process. How can I make it?
  6. Junny

    Cool Flash Carousel Menu

    Very useful contribution! It works great and easy to install. but I have a Mojibake problem. Probably, Flash encoding is UTF-8 and Mysql data and default.php are EUC-JP.(Japanese code) How can I fix it? thanks
  7. I'm just fixed the problem. I hope this customize help somebody. To get the discount rate is ($new_price/$product_info['products_price']) very simple and change in product_info.php while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]); echo '</td></tr>'; } echo '</table>'; } to while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price']*($new_price/$product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } else { if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } } echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]); echo '</td></tr>'; } echo '</table>'; } thats all
  8. I'm looking for a contribution that works about "options_values_price". But I can't find that. When I have a special price products and that has a different price with options. On default oscommerce does not discount "options_values_price". for example ..(pull down menu - "size/Color" is attribute) size/color : 80/green 100/green 150/green (+50yen) when special price (if 30%off) size/color : 80/green 100/green 150/green (+50yen +15yen) I think product_option code is below (../product_info.php) How do I get the discount rate? or does sombody have a good idea? Thanks for checking this topic. junny
  9. Junny

    osBarcode

    Hi, everyone. I'm trying to install the osBarcode. http://www.oscommerce.com/community/contributions,1268 I Changed the suggested lines of invoice.php and put the osbarcode.php to admin directory. Barcode images does not show in the invoice.php. file changes: /admin/invoice.php <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX;?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_BARCODE; ?></td> </tr> and ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "¥n"; echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "¥n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "¥n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $price_with_tax . '</b></td>' . "¥n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "¥n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $tprice_with_tax . '</b></td>' . "¥n"; echo ' </tr>' . "¥n" . ' <td class="dataTableContent" align="right" valign="top"><img src="osbarcode.php?barcode=' . $order->products[$i]['model']. '"></td>' . "¥n"; } ?> (sorry, it's Japanese Tax customized version) wrong code? and I checked GD, that's enabled. My setting is GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled Somebody help me! :x
  10. Junny

    Barcode contributions,1268

    Hi, everyone. I also have a problem as Damir Radulic. I have followed the instructions. Barcode images does not show in the invoice.php. Put the osbarcode.php to admin directory file changes: /admin/invoice.php and sorry, it's Japanese Tax customized version I checked GD is enabled. the setting is GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled What's wrong?? :blink: :blink:
  11. Junny

    LoginBox V5.21

    I just fixed this problem. When login with secure connection, PHP 4.3.9 can't keep the session parameters. So, I comment out this section. in /includes/application_top.php if (function_exists('session_set_cookie_params')) { session_set_cookie_params(0, substr(DIR_WS_CATALOG, 0, -1)); } I don't know it's the right solution. But, it works! :thumbsup: thanks.
  12. Junny

    LoginBox V5.21

    I realized that SSL connection have a problem. Login=>[sSL address]/default.php Customer greeting and LoginBox is not changing. Then go to NON SSL pages, Customer Greeting =>welcome junny LoginBox contents =>My Account info :(
  13. Junny

    LoginBox V5.21

    More information about Not greeting. There is no "?osCsid=xxxxxxxx" address in url window at default.php page. The other pages "?osCsid=xxxxxxxx" is working. Which file is wrong?
  14. Junny

    LoginBox V5.21

    Hi, I installed LoginBox v5.21 (by Justin of World Famous Comics). I love this contributinon, its useful. but, logged in at the default.php page. The page should be changes customer greeting and LoginBox message. Nothing will changes default.php page. but, move to product_info page, LoginBox is change to My Account information. and back to default.php page LoginBox is change to My Account information and welcome junny message is on. I checked other way to login.(Log in from create_account.php) It will redirect to default.php page and have a same probrem(no messege changed but logging in). Do you have any ideas?? :huh:
  15. Junny

    Low quality Image?

    Thanks Bob and I'm sorry. I just solved this problem. The wrong part was Thumbnail Script.(html_output.php) I maked 3cache directry in images and make 3size of images. cache1-width80 cache2-width100 cache3-width240 Search a code from default image of product_info.php. I forgot to checking the html_output.php Set it to right value, thats it! Thank you for taking your time.
×