Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adyx

Archived
  • Posts

    123
  • Joined

  • Last visited

Profile Information

  • Real Name
    Mark

Adyx's Achievements

  1. Hello Did you get Alphabetical Search to be isolated to current category. If so How did you do it exactly?

    thankyou

  2. I fixed this problem on mine by editing the payment module i was using. Netbanx had a different checkout-process file, so i had to apply the edits to that. ###################### Seperate Question; I had the problem of the values disappearing in the shopping cart, until i added the code below to fix the update_quantity function in includes/classes/shopping_cart.php function update_quantity($products_id, $quantity = '', $attributes = '') { global $customer_id; if (empty($quantity)) return true; // nothing needs to be updated if theres no quantity, so we return true.. $this->contents[$products_id]['qty'] = $quantity; // update database if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET . " set customers_basket_quantity = '" . $quantity . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'"); if (is_array($attributes)) { reset($attributes); while (list($option, $value) = each($attributes)) { // BOM - Options Catagories $attr_value = NULL; if ( !is_array($value) ) { $this->contents[$products_id]['attributes'][$option] = $value; $attr_value = $value; if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . (int)$value . "', products_options_value_text = '" . tep_db_input($attr_value) . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "' and products_options_id = '" . (int)$option . "'"); } elseif ( isset($attributes[$option]['t']) && !empty($attributes[$option]['t']) ) { $this->contents[$products_id]['attributes'][$option] = $value; $attr_value = htmlspecialchars(stripslashes($attributes[$option]['t']), ENT_QUOTES); if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . (int)$value . "', products_options_value_text = '" . tep_db_input($attr_value) . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "' and products_options_id = '" . (int)$option . "'"); } elseif ( isset($attributes[$option]['c']) ) { $this->contents[$products_id]['attributes'][$option] = $value; foreach ($value as $v) { $attr_value = $v; if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . (int)$value . "', products_options_value_text = '" . tep_db_input($attr_value) . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "' and products_options_id = '" . (int)$option . "'"); } } // EOM - Options Catagories } } } This works, but now it does the opposite. It Adds a blank text line whenever a product is updated. Any ideas what needs to be changed to prevent that ? Probably something to do with the foreach loop check ?
  3. Looks like this might be the answer: http://www.oscommerce.com/forums/lofiversion/i...hp?t195849.html
  4. Hi, It seems that wpcallback.php in the following contribution: http://addons.oscommerce.com/info/5 Will not work correctly unless reg globs are on. I have used .htaccess to flag them on, but really this is the only file in the store which i have not been able to fix to work with PHP5 reg globs off. Has anyone managed to patch this file ? I assumed the $_POST[var name] edits would have fixed it, but it didnt appear to <_< Any help would be great ;)
  5. Hi... excellent work, but i thought i would add this simple comment. As it is not clear in the download of the contribution. If you cant see the discount applied in the checkout confirmation page. Check the sort order of the 'Order Total Modules' via your admin panel. ;)
  6. Actually.. i think this problem may have been specific to my code. I adapted the original to give category specific results and my catcheck variable was using the old syntax instead of $_GET['catcheck']. Problem solved ;)
  7. Hi.. PHP5 seems to stop this contribution from working. Does anyone know what elements of the code need changing ? Thank you :rolleyes:
  8. Further checking on this, and it looks like it is not actually the contribution at fault. I tried the file manager to verify if any uploads would work. They dont! ~~~~~~~~~~~~~~~~~~~~~~~ PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: http://www.########.co.uk/admin/file_manag...p?action=upload PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhosts/#####.co.uk/httpdocs:/temp/var/vhosts:/var/www/vhosts) in Unknown on line 0, referer: http://www.######.co.uk/admin/file_manager.php?action=upload ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Is this directly related to the server settings OR maybe the tmp directory is not in the correct place ? The weird thing is, another account on the same server is fine.
  9. Hi, This contribution : http://www.oscommerce.com/community/contributions,614 Appears to have problems in php5/mysql5, specifically it fails to upload the images when adding a product. I think it must be the synax in admin/categories.php, but i am unsure of exactly which bit of the code needs to be changed. Any help would be greatly appreciated. ;)
  10. Getting a weird glitch with this. When I try to copy a product using the link method, for some reason it appears to think it is already associated to some of the sub categories within the main category i am in. Checking in products_to_categories via the database confirm there are no associations to sub categories, just the product ID to the top level category. I can not see how it can create a false association if it is not reading it from the database ? Any ideas how or why it might be doing this ? Thank you for any help in advance. ;)
  11. Thank you for the fast response. I just checked on this... it works ! check it out... Add the * operator as normal, but when you add in your percentage exampe 10% e.g 0.10 Try doing this : -0.10 Worked great for me! :thumbsup:
  12. Hi, been looking around for this sort of thing for ages. Well done! :thumbsup: A quick question.. is there an easy way to get this to deduct the percentage value, rather than add it ? I assume it wont work if i give it a duel operator : -* or +* Thank you for your help ;)
  13. Hi, Has anyone developed a contribution or hack to achieve what i would consider is a basic requirement regarding prices in Product attributes? i.e The ability to apply a Percentage Increase in Product Attributes ? The + / - ability is o.k, but too limited. (It does not accept */x which would have been a possible alternative method to apply a percentage discount/increase). Thank you for any help. :)
  14. This might fix issues of this nature... If you have migrated you old customer data across to a new database. Double check that the 'customers_default_address_id' inside the 'customers' table is not all the same value all the way through. I found i was getting this error alert in admin when i tried to view a customers address etc., and when i checked in the DB all the 'customers_default_address_id' values were set to 1.. I edit them in sequence and it appears to have fixed the problem. :rolleyes: From what i can tell the value of 'customers_default_address_id' should be auto incremented.. and has no other reference.. Please let me know if this is wrong though.
  15. Quick follow up to this in the hope it will help someone else. I found a fix for this by using a clean oscom install and adding the osCAffiliate v2.5a contribution.. it still has bugs but the core functionality would appear to be there! Payment section works.. i set the 30 day timer to -1 in the configuration. (FYI anyone saying the 30 days is non changeable is wrong!) Anyway.. im going to probably rewrite this contribution to suit a store i am working on.. if i make some changes i think will be useful for other people, i will add them to the contribution download section.
×
×
  • Create New...