

omar_masheh
Members-
Content count
17 -
Joined
-
Last visited
Profile Information
-
Real Name
omar
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Optional Related Products, Version 4.0
omar_masheh replied to Skittles's topic in General Add-Ons Support
-
i am sorry about post the whole file . :) thanks for your answer .. i will post question in its support thread. thanks Omar
-
hello nice addons ... i install the Ultimate SEO Urls 5 PRO and i had Optional Related Products, Version 4.0 ... so the Optional Related Productsits still work but there is something wrong : 1- in Optional Related Products module .the buy now not work .. its not go anywhere it just add to the link (?action=rp_buy_now&rp_products_id=495) . 2- continue shopping botton its go back to last product ..coz i think b4 i add the Ultimate SEO Urls 5 PRO its was go back to the last Category. here is the Optional Related Products module <?php /* $Id: optional_related_products.php, ver 1.0 02/05/2007 Exp $ Copyright (c) 2007 Anita Cross (http://www.callofthewildphoto.com/) Part of Contribution: Optional Related Products Ver 4.0 Based on code from Optional Relate Products, ver 2.0 05/01/2005 Copyright (c) 2004-2005 Daniel Bahna (daniel.bahna@gmail.com) osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ $orderBy = 'ORDER BY '; $orderBy .= (RELATED_PRODUCTS_RANDOMIZE)?'rand()':'pop_order_id, pop_id'; $orderBy .= (RELATED_PRODUCTS_MAX_DISP)?' limit ' . RELATED_PRODUCTS_MAX_DISP:''; $attributes = " SELECT pop_products_id_slave, products_name, products_model, products_price, products_quantity, products_tax_class_id, products_image FROM " . TABLE_PRODUCTS_RELATED_PRODUCTS . ", " . TABLE_PRODUCTS_DESCRIPTION . " pa, ". TABLE_PRODUCTS . " pb WHERE pop_products_id_slave = pa.products_id AND pa.products_id = pb.products_id AND language_id = '" . (int)$languages_id . "' AND pop_products_id_master = '".$HTTP_GET_VARS['products_id']."' AND products_status='1' " . $orderBy; $attribute_query = tep_db_query($attributes); if (mysql_num_rows($attribute_query)>0) { $count = 0; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <table> <tr> <td> <table class="productlisting" border="0" cellspacing="0" cellpadding="2" width="100%"> <tr> <td align="center" class="productListing-heading"> <?php echo TEXT_RELATED_PRODUCTS ?></td> </tr> <tr> <td align="center" class="productListing-data"> <table border="0" cellspacing="0" cellpadding="2" width="100%" align="center"> <tr><?php while ($attributes_values = tep_db_fetch_array($attribute_query)) { $products_name_slave = ($attributes_values['products_name']); $products_model_slave = ($attributes_values['products_model']); $products_qty_slave = ($attributes_values['products_quantity']); $products_id_slave = ($attributes_values['pop_products_id_slave']); if ($new_price = tep_get_products_special_price($products_id_slave)) { $products_price_slave = $currencies->display_price($new_price, tep_get_tax_rate($attributes_values['products_tax_class_id'])); } else { $products_price_slave = $currencies->display_price($attributes_values['products_price'], tep_get_tax_rate($attributes_values['products_tax_class_id'])); } echo '<td class="productListing-data" align="center">' . "\n"; // show thumb image if Enabled if (RELATED_PRODUCTS_SHOW_THUMBS == 'True') { echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id_slave) . '">' . "\n" . tep_image(DIR_WS_IMAGES . $attributes_values['products_image'], $attributes_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"').'</a><br>' . "\n"; } $caption = ''; if (RELATED_PRODUCTS_SHOW_NAME == 'True') { $caption .= '<p>' . $products_name_slave; if (RELATED_PRODUCTS_SHOW_MODEL == 'True') { $caption .= sprintf(RELATED_PRODUCTS_MODEL_COMBO, $products_model_slave); } $caption .= '</p>' . "\n"; } elseif (RELATED_PRODUCTS_SHOW_MODEL == 'True') { $caption .= '<p>' . $products_model_slave . '</p>' . "\n"; } if (RELATED_PRODUCTS_SHOW_PRICE == 'True') { $caption .= '<p>' . sprintf(RELATED_PRODUCTS_PRICE_TEXT, $products_price_slave) . '</p>' . "\n"; } if (RELATED_PRODUCTS_SHOW_QUANTITY == 'True') { $caption .= '<p>' . sprintf(RELATED_PRODUCTS_QUANTITY_TEXT, $products_qty_slave) . '</p>' . "\n"; } echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id_slave) . '">' . $caption . '</a>' . "\n"; if (RELATED_PRODUCTS_SHOW_BUY_NOW== 'True') { echo '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=rp_buy_now&rp_products_id=' . $products_id_slave) . '">' . tep_image_button('button_rp_buy_now.gif', IMAGE_BUTTON_RP_BUY_NOW) . '</a>'; } echo '</td>' . "\n"; $count++; if ((RELATED_PRODUCTS_USE_ROWS == 'True') && ($count%RELATED_PRODUCTS_PER_ROW == 0)) { echo '</tr><tr>' . "\n"; } } ?></tr> </table> </td> </tr> </table> </td> </tr> <?php } ?></table> </body> </html> i think the problem is here if (RELATED_PRODUCTS_SHOW_BUY_NOW== 'True') { echo '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=rp_buy_now&rp_products_id=' . $products_id_slave) . '">' . tep_image_button('button_rp_buy_now.gif', IMAGE_BUTTON_RP_BUY_NOW) . '</a>'; any help plz Thanks Omar
-
Optional Related Products, Version 4.0
omar_masheh replied to Skittles's topic in General Add-Ons Support
hello .. nice addons ... it was work good but i after i install the Ultimate SEO Urls 5 PRO and the HeaderTags SEO V3.2.5 its still work but there is something wrong : 1- the botton buy now not work .. its not go anywhere. 2- continue shopping botton its go back to last product .. its not go back to the last Category. any help plz Thanks Omar -
-
hello .. i download this addons and try it .. but its now show me anything.. i use oscommerce 2.3.1 thanks Omar
-
hello .. how we can use this add on in oscommercer 2.3.1 ... did anyone get it work.. thanks for this addon Omar
-
Hello, when i want to edit the pages via add-on: FCK Edit shipping, conditions, privacy, contact us, index & about us pages from admin, I keep receiving the error message: "TEXT_FILE_DOES_NOT_EXIST" for all the edit pages (shipping_html.php, contact_html.php, conditions_html.php,about_us_html.php, privacy_html.php, index_html.php ) but the FCKEditor work fine when i make new product or edit product..... i know that this Subject was talking about it before here but still not work, sorry to type about this again Any help with this would be much appreciated. Thanks Omar
-
Urgent help with add-on please: "TEXT_FILE_DOES_NOT_EXIST"
omar_masheh replied to lucilled's topic in General Add-Ons Support
hello .. is there someone can help .... thx Omar -
Urgent help with add-on please: "TEXT_FILE_DOES_NOT_EXIST"
omar_masheh replied to lucilled's topic in General Add-Ons Support
i have same things ... any help thanks Omar -
any help !!!!!!!!!!!!!!?????????????
-
hello... i am sorry for i have been stupid...and asking much. in the admin i just can edit the English language files .... i cant edit another language .... see here
-
hello Chris.. i know that its nicer feature to have editor .. and Extra pages-info box w/ admin ist with editor. i was just want to know how i can use FCK page editor to edit the index page,Shipping page...in another language.. i mean i want to edit the Finnish language index page from the admin. but i cant edit it by FCK page editor coz in admin i just see the English language index page,Shipping, Conditions, Privacy, about us pages and contact us page.... i dont see the another language files (index page,Shipping, Conditions, Privacy, about us pages and contact us page). I hope that I explained to you properly. thank you Omar
-
Thanks Chris, ... i was read Fckeditor Language Information. but i still not understand it ..i think it will be easy to use Extra pages-info box w/ admin to edit the another language files(Shipping, Conditions, Privacy, about us pages and contact us page...)'!!!!!?????? thanks again.
-
hello .. I add FCK page editor . I just wont to know if i can edit the another language files (Shipping, Conditions, Privacy, about us pages and contact us page...).I just can edit the English language files. Thanks