Jump to content

orangejuice

Members
  • Content count

    21
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    orangejuice
  1. Chemo suggested to "extract" cpath from application top, i have tryed a lot, with the funcion $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']); but i?m getting mad, the cpath is not obtained, this function is present in general.php, all seems to be correct, but nothing hapens... I send an SOS, i need to add cpath to the seo urls for products page, like this: http://site.com/my-product-c-1_10-p-37.html Any help?
  2. May be, my english is awfull. :blush: I need to build an URL with cpath, because if i don?t, my categories tabs contribution, doesn?t show the current category and subcategorie. I have tryed with aplication_top function to determine cpath without parsing it by GET, but without results :'( I think is more easy to build a rewrite url with cpath, can you point me in the correct direction? Thanks.
  3. As you say in this post, in aplication_top cpath is defined, without passing it by url. I will try to "repair" Categories tabs contrib. Thanks for pointing me in the correct direction!
  4. Thanks for your reply bobby. This sounds good, but my php skills are... so poor :( What is the easiest way, the function to find the path with the product ID, or add cpath to product info URL ? Thanks
  5. I have a minor problem with this wonderful contrib. I?m using Categories Tabs withs subs. I have modified muy URLs to parse product_id AND cpath. If i use Ultimate SEO URLs, cpath is not in url, and in my product page, my tabs menu is withouth a category. I need to modified this contrib to add cpath in the URL of the product info page, i know how to modify .htaccess, but i dont know how to modify this contrib. An example will be: NOW: http://site.com/my-product-p-37.html WITH THE REQUIRED MODIFICATION: http://site.com/my-product-c-1_10-p-37.html Any Help would be apreciated. Thanks in advance.
  6. orangejuice

    [contribution] CGDiscountSpecials

    Hi All, i have detected one thing that may be corrected: We have the following: discount= 0% product price = 100 $ attrib1 - option1 = -10 $ attrib1 - option2 = -100 $ attrib1 - option3 = +100 $ If i have a product attribute with price variation, happens the following thing: discount =10 % product price = 90 $ (before was 100$) attrib1 - option1 = -9 $ (before was -10$) attrib1 - option2 = -90 $ (before was -100$) attrib1 - option3 = +90 $ (before was +100$) If the product price variation is negative, the customer who is joining the discount in this case is being damaged. Is there any way to exclude attrib price variation from CGDiscountSpecials? Other solution is apply positive discount in negative attrrib price variation. Any Ideas?
  7. Yes!! Thank you very much Charley
  8. orangejuice

    Master Products - MS2

    I have no sql idea so... any help? It looks like you are trying to insert the SQL for Family Products instead of Master Products. Matti If I try to execute master.sql on Master Product 1.1.3 i get this error: Error consulta SQL : INSERT INTO configuration_group VALUES ( 16, 'Slave Products', 'Slave Product Listing - configuration options', 16, 1 ) MySQL ha dicho: #1062 - Duplicate entry '16' for key 1 As i say, i?m a newbie with sql :unsure:
  9. orangejuice

    Master Products - MS2

    I?m trying to install MP2, and when i execute master.sql i have this error: I have no sql idea so... any help?
  10. I'm trying to install SID Killer v1.2 (Feb 20th 2003) on a OSC 2.2ms2, in the instructions said: . . . Now you need to edit /includes/functions/html_output.php . . . and finally find the lines if (isset($sid)) { $link .= $separator . $sid; } and change to if (isset($sid) && ( !$kill_sid ) ) { $link .= $separator . $sid; } an that's it. I don?t find this lines: if (isset($sid)) { $link .= $separator . $sid; } Any suggestion?
  11. orangejuice

    [contribution] CGDiscountSpecials

    This hack isn?t mine, its from BigT He or she post it in the CGDiscountSpecials contributions page: http://www.oscommerce.com/community/contributions,1673 I only do the ctrl + c and ctrl + v job !!
  12. orangejuice

    [contribution] CGDiscountSpecials

    FIRST: SORRY, I POSTED THE PATCH INCOMPLETELY, THE COMPLETE PATCH IS HERE. You have to revert this file: /catalog/includes/classes/currencies.php, to version 1.3e or 1.3d, i think its the same file: Version 1.3e changelog: v1.3e - by hOZONE ---- . fixed a bug in showing prices in: .. catalog/includes/modules/new_products.php This patch fix in: catalog/includes/classes/currencies.php catalog/shopping_cart.php catalog/includes/boxes/shopping_cart.php This patch will work on both versions, 1.3e and 1.3d update for CGDiscountSpecials 1.3d by BigT features : - Enables admin to choose wether a default price should be accessible by guests. description : - true/false choice for "allow guest to see prices" property in admin >> configuration >> my store - prices displayed will be computed from rules defined for group 'default' support : - it works fine for me but i don't give money back if it doesn't work for you :) - still, if i have time, i might answer to emails sent to bigtiti@hotmail.com - enjoy ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ in file catalog/includes/classes/currencies.php replace //CGDiscountSpecials start function display_price($products_price, $products_tax, $quantity = 1) { global $customer_id; if (tep_session_is_registered('customer_id')) { by function display_price($products_price, $products_tax, $quantity = 1) { global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=='true' || tep_session_is_registered('customer_id')) { and replace function display_price_nodiscount($products_price, $products_tax, $quantity = 1) { global $customer_id; if (tep_session_is_registered('customer_id')) { by function display_price_nodiscount($products_price, $products_tax, $quantity = 1) { global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=="true" || tep_session_is_registered('customer_id')) { ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ in file catalog/shopping_cart.php replace //CGDiscountSpecials start global $customer_id; if (tep_session_is_registered('customer_id')) { by //CGDiscountSpecials start global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=='true' || tep_session_is_registered('customer_id')) { ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ in file catalog/includes/boxes/shopping_cart.php replace //CGDiscountSpecials start global $customer_id; if (tep_session_is_registered('customer_id')) { by //CGDiscountSpecials start global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=='true' || tep_session_is_registered('customer_id')) { ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ run this query : INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('', 'Allow Guest To See Prices', 'ALLOW_GUEST_TO_SEE_PRICES', 'true', 'Allow guests to view default prices', '1', '0', '', '2004-03-15 14:59:05', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');
  13. orangejuice

    [contribution] CGDiscountSpecials

    @PCS the solution to your problem: Also with this fix you can enable/disable show prices to guest from admin. 1.- You have to UNDO your /catalog/includes/classes/currencies.php to 1.3e version. Then apply this: update for CGDiscountSpecials 1.3d by BigT features : - Enables admin to choose wether a default price should be accessible by guests. description : - true/false choice for "allow guest to see prices" property in admin >> configuration >> my store - prices displayed will be computed from rules defined for group 'default' support : - it works fine for me but i don't give money back if it doesn't work for you :) - still, if i have time, i might answer to emails sent to bigtiti@hotmail.com - enjoy ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ in file catalog/includes/classes/currencies.php replace //CGDiscountSpecials start function display_price($products_price, $products_tax, $quantity = 1) { global $customer_id; if (tep_session_is_registered('customer_id')) { by function display_price($products_price, $products_tax, $quantity = 1) { global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=='true' || tep_session_is_registered('customer_id')) { and replace function display_price_nodiscount($products_price, $products_tax, $quantity = 1) { global $customer_id; if (tep_session_is_registered('customer_id')) { by function display_price_nodiscount($products_price, $products_tax, $quantity = 1) { global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=="true" || tep_session_is_registered('customer_id')) { ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ in file catalog/shopping_cart.php replace //CGDiscountSpecials start global $customer_id; if (tep_session_is_registered('customer_id')) { by //CGDiscountSpecials start global $customer_id; $myQuery = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $myQuery_result = tep_db_fetch_array($myQuery); if ($myQuery_result['configuration_value']=='true' || tep_session_is_registered('customer_id')) { ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ in file catalog/includes/boxes/shopping_cart.php replace //CGDiscountSpecials start global $customer_id; if (tep_session_is_registered('customer_id')) { by I hope this were useful to you.
×