Jump to content

JSR

Members
  • Content count

    149
  • Joined

  • Last visited

Everything posted by JSR

  1. Hello surfalot, I think I have version 1.1.5. Thanks for replying.
  2. I've installed this contribution a while ago and now I'm trying desperately to get a mouseover/rollover image swap to work on additional images. From what I've read it seems that this contribution already has the ability to do this but the image swapping feature has never worked in my store. I've compared the code I have and it's very different from the last update in the contribution area. I'd like to get the image swap feature but I don't want to mess with my store and lose data of previously uploaded prod images. Can anyone help me? Cause I need to know which parts of the code controls the swap feature.
  3. Nevermind, I found it. I had to alter line 58 of gv_queue.php in admin.
  4. Loving this contribution. I have one question though. What part of the code should I alter in order to increase the released gv amount with a certain percentage?
  5. I have just recently transfered a backup of my website to a different server. I use php5 and mysql5 now and when I transfered the database backup I noticed some images work and some don't. I think this is about the image magic contribution that I'm using because if I turn it off all my images are there. Does anyone know what's going on here and how to fix this? Many thanks in advance.
  6. JSR

    Image Magic & PHP5/MYSQL5

    I thought that was gonna be the end of it, but for some reason all images have magically dissapeared AGAIN. The image path is correct ie. mydomain/imagemagic.php?img=images/actualimage.jpg&w=140&h=150&page= But the problem still seems to be with the thumbnails directory. The thumbnails simply dissapear after I chmod to 777. The shop is under construction now so the catalog area is protected, hence no link. Anyone have an idea were to look? I've been struggling with this for a few days without any clue... :(
  7. When I use a non existing order id or email it does show the error warnings, however the page just keeps refreshing itself with each valid request.... Anyone using this contribution? I really like it a lot, but it's just not working the way it's supposed to...
  8. Does this contribution actually work? :blink: I've installed the two last versions by now and nothing gives....
  9. JSR

    Image Magic & PHP5/MYSQL5

    I had to CHMOD the /thumbnails directory to 777 -_- All images are visible now
  10. I had to solve my problem by checking for a minimun amount before applying the discount percentage. This can be set xmembers.
  11. I'm using xmembers to give certain customers a discount percentage with each purchase. It's very easy to install and works great except that I'm unable to exclude items that are on sale from the discount. (How) Can this be done? It seems that the code doesn't even check product status or id anywhere only order totals. Could really use a hand here... The code that calculates the discount: <?php /* $Id: ot_lev_members.php,v 1.0 2002/04/08 01:13:43 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ class ot_xmembers { var $title, $output; function ot_xmembers() { $this->code = 'ot_xmembers'; $this->title = MODULE_XMEMBERS_TITLE; $this->description = MODULE_XMEMBERS_DESCRIPTION; $this->enabled = MODULE_XMEMBERS_STATUS; $this->sort_order = MODULE_XMEMBERS_SORT_ORDER; $this->include_shipping = MODULE_XMEMBERS_INC_SHIPPING; $this->include_tax = MODULE_XMEMBERS_INC_TAX; $this->percentage = MODULE_XMEMBERS_PERCENTAGE; $this->minimum = MODULE_XMEMBERS_MINIMUM; $this->calculate_tax = MODULE_XMEMBERS_CALC_TAX; // $this->credit_class = true; $this->output = array(); } function process() { global $order, $currencies; $od_amount = $this->calculate_credit($this->get_order_total()); if ($od_amount>0) { $this->deduction = $od_amount; $this->output[] = array('title' => $this->title . ':', 'text' => '<b>' . $currencies->format($od_amount) . '</b>', 'value' => $od_amount); $order->info['total'] = $order->info['total'] - $od_amount; } } function calculate_credit($amount) { global $order, $customer_id; $od_amount=0; $od_pc = $this->percentage; if ($amount > $this->minimum) { $query = tep_db_query("select member_flag from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); $query_result = tep_db_fetch_array($query); if ($query_result['member_flag'] == '1'){ // Calculate tax reduction if necessary if($this->calculate_tax == 'true') { // Calculate main tax reduction $tod_amount = round($order->info['tax']*10)/10*$od_pc/100; $order->info['tax'] = $order->info['tax'] - $tod_amount; // Calculate tax group deductions reset($order->info['tax_groups']); while (list($key, $value) = each($order->info['tax_groups'])) { $god_amount = round($value*10)/10*$od_pc/100; $order->info['tax_groups'][$key] = $order->info['tax_groups'][$key] - $god_amount; } } $od_amount = round($amount*10)/10*$od_pc/100; $od_amount = $od_amount + $tod_amount; } } return $od_amount; } function get_order_total() { global $order, $cart; $order_total = $order->info['total']; // Check if gift voucher is in cart and adjust total $products = $cart->get_products(); for ($i=0; $i<sizeof($products); $i++) { $t_prid = tep_get_prid($products[$i]['id']); $gv_query = tep_db_query("select products_price, products_tax_class_id, products_model from " . TABLE_PRODUCTS . " where products_id = '" . $t_prid . "'"); $gv_result = tep_db_fetch_array($gv_query); if (ereg('^GIFT', addslashes($gv_result['products_model']))) { $qty = $cart->get_quantity($t_prid); $products_tax = tep_get_tax_rate($gv_result['products_tax_class_id']); if ($this->include_tax =='false') { $gv_amount = $gv_result['products_price'] * $qty; } else { $gv_amount = ($gv_result['products_price'] + tep_calculate_tax($gv_result['products_price'],$products_tax)) * $qty; } $order_total=$order_total - $gv_amount; } } if ($this->include_tax == 'false') $order_total=$order_total-$order->info['tax']; if ($this->include_shipping == 'false') $order_total=$order_total-$order->info['shipping_cost']; return $order_total; } function check() { if (!isset($this->check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_XMEMBERS_STATUS'"); $this->check = tep_db_num_rows($check_query); } return $this->check; } function keys() { return array('MODULE_XMEMBERS_STATUS', 'MODULE_XMEMBERS_SORT_ORDER','MODULE_XMEMBERS_PERCENTAGE','MODULE_XMEMBERS_MINIMUM', 'MODULE_XMEMBERS_INC_SHIPPING', 'MODULE_XMEMBERS_INC_TAX', 'MODULE_XMEMBERS_CALC_TAX'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display Total', 'MODULE_XMEMBERS_STATUS', 'true', 'Do you want to enable the Order Discount?', '6', '1','tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_XMEMBERS_SORT_ORDER', '999', 'Sort order of display.', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Include Shipping', 'MODULE_XMEMBERS_INC_SHIPPING', 'true', 'Include Shipping in calculation', '6', '5', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Include Tax', 'MODULE_XMEMBERS_INC_TAX', 'true', 'Include Tax in calculation.', '6', '6','tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Discount Percentage', 'MODULE_XMEMBERS_PERCENTAGE', '10', 'Amount of Discount(percentage).', '6', '7', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Calculate Tax', 'MODULE_XMEMBERS_CALC_TAX', 'false', 'Re-calculate Tax on discounted amount.', '6', '5','tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Minimum Amount', 'MODULE_XMEMBERS_MINIMUM', '100', 'Minimum order before discount', '6', '2', now())"); } function remove() { $keys = ''; $keys_array = $this->keys(); for ($i=0; $i<sizeof($keys_array); $i++) { $keys .= "'" . $keys_array[$i] . "',"; } $keys = substr($keys, 0, -1); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in (" . $keys . ")"); } } ?>
  12. :( Nobody able to help? Just a hint were to look would be fantastic :wacko:
  13. JSR

    Recover Cart Sales

    I installed the contribution and its working smoothly! Thanks for a great addon! I was just wondering how i can get the product image to show as a link instead of te actual link in the email. Can anyone help with that? Thanks.
  14. Hi all, I'm looking for a shipping module/ contribution that allows for a certain customer group to have free shipping with their purchase. I would like to add this for my most loyal customers. Is there anything like that available?
  15. JSR

    MATCHING PRODUCTS CROSS-SELL

    Just a quick note: There was indeed something wrong with the connection to the database server. When that was sorted out, I went ahead and installed this contribution and I LOVE it!! I added a buy now button and price display to the SKU's by borrowing code from the other cross sell contributions. THANKS so much for a simple and effective solution for cross selling! I've tried other contributions without any luck. This one's a breeze!!
  16. I looked at the new_products box and managed to get the productlisting in columns. Just borrow the code from that module and the gift box will list like that.
  17. Ok, So to get the right size thumbnails in the gifts box, I needed to use GIFTS_IMAGE_WIDTH/HEIGHT instead of SMALL_IMAGE_WIDTH/HEIGHT. Still did not manage to get the listing in columns though.
  18. Hi all, great contribution and I installed without problems. I can not seem to accomplish 3 things though. My shoppingcart page is ssl secured, but when adding a free gift the page returns to http. I would like to know how to edit the link to prevent this from happening. The code to edit is probably this one: $freebie[$p]['link'] = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=, SSL' . $gift['products_id']) . '">' . tep_image_button('button_add_now.gif', 'Select Freebie/Special' . $gift['products_id'] ) . '</a>'; Secondly, I've included the box in specials.php but failed to change the produclisting. I use the product listing in even columns contrib. Also the images for the carrots are not the SMALL IMAGE WIDTH/HEIGHT that is set for thumbnails. Does anyone have any solutions to these "issues"?
  19. JSR

    MATCHING PRODUCTS CROSS-SELL

    Thank you for replying! The products_matching field is there in the database table called products. Used the code in install file to alter the table: ALTER TABLE `products` ADD `products_matching` VARCHAR( 128 ) ; The error shows up on the admin side when I try to edit a product and on the catalog side in product_info.php when viewing a product. So I have no idea what's causing it. This is the third cross sell contribution I've tried to add. The first two ones were giving me a table does not exist error although these tables were created in the database. I'm thinking there is something wrong with my database...
  20. JSR

    Dynamic SiteMap

    Hi again, first off all, I'm not saying those are errors, Google is ;) When I click the link it displays just fine, when google is saying that either there's user authentification /proxy server authentification required. I set the Validation to true again and tried this piece of code provided by boxtel in the USEO support thread for includes/application_top.php where language translations are included. $location = tep_href_link(basename($_SERVER['SCRIPT_NAME']),'products_id='.$_GET['products_id'].tep_get_all_get_params(array('products_id','page','sort')), $request_type); } All http errors are gone now. I also seem to remember setting "check user ip" to true in configuration/sessions. That might have caused it if google crawled the site and indexed the urls during that time? This stuff is so confusing sometimes, but I'm not planning giving up! :lol:
  21. JSR

    MATCHING PRODUCTS CROSS-SELL

    I'm having the same problem here. Anyone care to lend a hand?
  22. JSR

    Dynamic SiteMap

    Hi FWR, I suppose you're right. I will look into it when this evening. Allmost all of the http errors look like this: mydomain/-p-64.html?language=en&page=4 I think remember reading something about this in the support thread for Ultimate SEO URLS, not sure though.
  23. JSR

    Dynamic SiteMap

    Yes, you can turn it off in admin. That's what I did and my http errors went down from 586 to 517 in a few hours. So I guess that's what's causing it. :blush:
  24. JSR

    Dynamic SiteMap

    I installed Independent SEO URL Validation, Unique Categories descriptions and Dangling carot! I think the first one might be the problem :huh:
  25. JSR

    Dynamic SiteMap

    Hi everyone, At first when Installed Dynamic Sitemap, all was great! But right now google is giving me the http 401/407 error on 586 urls from my site. That can't be good, right? Could anyone explain what it is that's causing this problem? Are the permissions set wrong? I can't really find any relevant and helpfull info here or by googling this error. <_<
×