Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  1. spayce_girl

    "Dynamenu" for osCommerce

    Okay, I took a closer look at the code at source forge. The patch they have is a patch file that you're supposed to run using the command line. It's a diff screen. There are some references to some files I don't have. I just renamed it so that it had a file ending of .txt and then read it. So I just made the appropriate changes in the files listed in the file and then all was okay. Below is a snippet of the file--- --- phplayersmenu-3.2.0/libjs/layersmenu.js 2004-08-16 14:03:38.000000000 +0200 +++ phplayersmenu-3.2.0.rtl/libjs/layersmenu.js 2004-09-14 09:54:07.000000000 +0200 @@ -110,7 +110,7 @@ } } else { //alert(onRight + ' - ' + width1 + ' - ' + windowWidth + ' - ' + windowXOffset); - if (onRight + width1 > windowWidth + windowXOffset) { + if (onLeft > windowXOffset) { back[menuName] = 1; } else { back[menuName] = 0; @@ -167,7 +167,7 @@ // hence we consider a default value equal to $abscissaStep width1 = abscissaStep; } - foobar = getOffsetLeft(father + menuName); + foobar = getOffsetLeft(father + menuName) + getOffsetWidth(father + menuName) - getOffsetWidth You can see where the "-" sign is the beginning of what needs to be replaced. This is bit more complicated than I am sure is necessary so if anyone has a simpler solution I'm sure others who are encountering this problem would be happy to hear it! Thanks again for this contribution. It was a lifesaver.
  2. spayce_girl

    "Dynamenu" for osCommerce

    Thanks for the great contribution. I know this topic has been addressed or at least asked before and that is: How do I move the submenus from popping up on the right so that they popup on the left? I went to the parent project of this contribution on sourceforge but couldn't make sense of it. There was a patch file but I honestly didn't know how to integrate this into my osc files. Is there anyone out there that has gotten this working? Thank you in advance for your help. And thanks for reading!
  3. spayce_girl

    Payment without catalog

    I'm working on this now. Order editor on the admin section let's you do this to a certain extent so I'm trying to see if it can be modified to allow for an easier interface on the front end. Has anyone else attempted this already? I'm not trying to reinvent the wheel. :)
  4. spayce_girl

    International shipping question

    Ok, nevermind. The royal delivery module I'm using didn't have the $order defined as a global variable within the function...check it out. // class constructor function royalmail() { //the global variable must be defined in order to use the if statement at the bottom global $order $this->code = 'royalmail'; $this->title = MODULE_SHIPPING_ROYALMAIL_TEXT_TITLE; $this->description = MODULE_SHIPPING_ROYALMAIL_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_ROYALMAIL_SORT_ORDER; $this->icon = DIR_WS_ICONS . 'shipping_ukrm.jpg'; $this->tax_class = MODULE_SHIPPING_ROYALMAIL_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_ROYALMAIL_STATUS == 'True') ? true : false); if ($order->delivery['country']['id'] == STORE_COUNTRY) { $this->enabled = false; } Seems like everytime I post I find the answer. Hopes this helps somebody. Best Regards
  5. spayce_girl

    International shipping question

    I'm having the same problem. In this case, zones will not work. Basically, I'm trying to limit what appears for the store country. I've tried the following code which as worked in other shipping modules but it's like the Royal Mail shipping option I'm using doesn't have access to the order information (via the $order->delivery array) if ($order->delivery['country']['id'] == STORE_COUNTRY) { $this->enabled = false; } This should easily disable the Royal Mail International delivery options for all UK customers but it doesnt. Instead they are shown in the available options (but without radio buttons) to UK cusomters. UK is the store location. I'm assuming the radios aren't showing because the delivery address doesn't meet the criterion but I don't want them showing at all. Has anyone had this problem? If so please could you please help? I've been racking my brain. Thank you for reading. Best regards. :lol:
  6. spayce_girl

    Who's Online Enhancement 1.4

    Thanks everyone in this forum, I was getting a blank page with the whos online enhancement. And found the answer here. In many cases, starting from scratch isn't so bad because you can follow what you've done step by step but coming in on an install when a client has already added cre loaded and/or numerous contributions can be difficult. So thanks again, found I simply needed to add the function detailed in the original installation file.
  7. spayce_girl

    Free Shipping over $X Challenge

    At first, I thought this is what I needed but it's not unfortunately. I'd like to manually modifiy the existing contribution that I've been unable to find on osc. (this is a client's site) It basically has a minimum order set in the admin->modules->order_total It basically wipes all other options available. The problem is I have a local delivery shipping option that I'd like to show up even if the person is available. I don't understand the logic exactly so hopefully someone out there will help me figure it out. How do I tweak this so that even if free shipping is available my local delivery option will show. Here is an excerpt from the checkout_shipping.php page... // load all enabled shipping modules require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) { $pass = false; switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) { $pass = true; } break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) { $pass = true; } break; case 'both': $pass = true; break; } $free_shipping = false; if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $free_shipping = true; include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); } } else { $free_shipping = false; } Your help is greatly appreciate!
  8. Install the local delivery contrib. It has a field where you can set the minimum purchase amount allowed. http://www.oscommerce.com/community/contributions,1993/
  9. spayce_girl

    Initial Order Status affected by shipping method

    I was having this same problem so here is what I put in checkout_process.php after all the include class files (top of page) if ($_SESSION['shipping']['id'] == "dly_dly") { $new_order_status = MODULE_SHIPPING_DLY_ORDER_STATUS; //you can hardcode a number here $text_alert = EMAIL_TEXT_ALERT; } else { $new_order_status = $order->info['order_status']; $text_alert = ""; } Now, dly_dly is the shipping id for same delivery, you would need to find out what is the shipping id for the orders you want to change status to. HINT: Look into the modules/shipping directory and at the beginning of the file the $this->code is defined...that is your shipping id. Now I have two variables I want to change the order status. You can hardcode the number of the order status corresponding to your Database, for instance on a stock install pending is "1" so if you put 1 here then all orders with this shipping status will automatically go to pending. If for example you have a status called SAME DAY DELIVERY and the corresponding id is 5 then that is the number you would want to put next to $new_order_status. You would need to change the database insert array farther down, right after the date entry. 'date_purchased' => 'now()', //bof cypher-sdg.com: same day delivery mod 'orders_status' => $new_order_status, //eof cypher-sdg.com same day delivery mod Then if you have configured your copies of orders to be sent to you then you can also change the send email section adding the $text_alert variable (don't forget to define the constant in your english file). This will automatically show special text for orders with this shipping type. For ex. SAME DAY ORDER - URGENT! Order #289 // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, $text_alert . EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); }
  10. Found solution: Using the order.php class file you can go through each product as well as each product attribute to determine if a product has what you need. Below is the example for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { if ($order->products[$i]['availability'] != MODULE_SHIPPING_DLY_AVAIL_STATUS) { $this->enabled = false; } } I set the status of availibility in admin so that products must have this status to use local delivery. If they order a product that is not available in 3 hrs it will disable module. It will also disable if they have a 3hr item in cart alongside items available later. cheers.
  11. I need a way to disable the local delivery option. I have Product Availability installed which shows when an item ships from warehouse. So i would need to iterate through each item in shopping cart to determine if it is available for shipment in 3 hours otherwise local delivery is not an option. also if an order has 1 item available in 3 hrs and others available later local delivery isn't an option. So I am stuck here because right now the product availability ID is in the products table but I'll eventually need to track availability based on attribute. Like this red shirt ships in 3 hours etc. So basically I'm looking for a solution that would allow me to iterate through each attribute to determine availability and based on criteria enable or disable local delivery. any thoughts? help is greatly appreciated thanks.... :thumbsup: :D
  12. spayce_girl

    Simple Template System (STS)

    Hello, I have STS installed along with header tag controller. The information is not showing up in the meta tags. Basically the basics are showing from <!--$headcontent--> but not the contents of this variable inside of that: $template['headcontent'] .= $sts_block['headertags'] Here is what I have for the header tags block // STS: ADD: Support for WebMakers.com's Header Tag Controller contribution // Capture the output require(STS_START_CAPTURE); // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); require_once(DIR_WS_INCLUDES . 'header_tags.php'); } else { echo "<title>" . TITLE . "</title>"; } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 $sts_block_name = 'headertags'; require(STS_STOP_CAPTURE); // STS: EOADD: Support for WebMakers.com's Header Tag Controller contribution When I turn the template system off, the meta tag contents show up.
  13. spayce_girl

    Cart Information in Header

    It's was exactly what I was looking for too. I used the very first contribution because it was the most simple and I didn't need all the bells and whistles. To implement into STS is simple all you have to do is open up catalog/includes/sts_display_output.php to start... 2) Find the following block of code: // Note: These values lifted from the stock /catalog/includes/header.php script's HTML // catalogurl: url to catalog's home page // catalog: link to catalog's home page You need to define a new template variable...here's what I used: //Add cart contents to template $template['cartitemcount'] = sprintf(TEXT_SHOPPING_CART_CONTENTS, $cart_item_count). ' ' . $item_description . $currencies->format($cart->show_total()); Simply, copy and paste there. 3) For this to work properly, you need to create corresponding definitions in your catalog/includes/english.ph p file. The original contribution had the english text hardcoded in so I removed it and added the following: define('TEXT_SHOPPING_CART_CONTENTS', 'You have %s'); define('TEXT_SHOPPING_CART_ITEM', 'item in your cart: '); define('TEXT_SHOPPING_CART_ITEMS', 'items in your cart: '); 4) You'll need to add update the if statement in the catalog/includes/header.php to reflect your english definitions also. The english updates are not really necessary if you don't want to comply with normal osc coding standards. <?php $cart_item_count = $cart->count_contents(); if ($cart_item_count == 1) { $item_description = TEXT_SHOPPING_CART_ITEM; } else { $item_description = TEXT_SHOPPING_CART_ITEMS; } ?> 5) Okay the final and last step is just adding the variable ($cartitemcount) to your catalog/includes/mysite/sts_template.html file. (I'm assuming you are using the latest version of sts). That's it.
  14. spayce_girl

    USPS moduel

    I just called them (they answered pretty quickly) and they asked what third-party software I was using and then transferred me over to the production server. The testing server wasn't working for me either. But now the prices are coming up.
  15. spayce_girl

    bulk order discount?

    I just answered a similar question a few seconds ago. I use Credit Class & Gift voucher and there are some others that you could use that would accomplish the same task. http://www.oscommerce.com/community/contributions,282/