Jump to content

WebbyIT

Members
  • Content count

    59
  • Joined

  • Last visited

  1. WebbyIT

    New UPS XML Shipping Module available

    I declared them both (individually) but it only worked when I coded everything for $total_weight. I didn't have time to look where it came from but it's on my list as I am curious also. I just remembered seeing it somewhere and thought I'd try it since the code looked right but I couldn't get it to work.
  2. WebbyIT

    New UPS XML Shipping Module available

    if ($total_weight > SHIPPING_MAX_WEIGHT) { $this->enabled = false; } Not sure why $shipping_weight wouldn't work but I used $total_weight and it worked. You really helped me out of a bind. My problem is that my customer doesn't want to use dimensional and so this module was cutting up individual products that weighed over 150 pounds into multiple packages which can't be done without using a cutting torch. lol Thanks again.
  3. WebbyIT

    New UPS XML Shipping Module available

    I should have looked closer before responding. The code/module on the page sets a rate table and then assigns a title/courier to display based on the price points all in one module. I want to use the UPSXML module as is (for updating purposes in the future by whoever) for all combined order weights up to 150, and then the flat rate module for all orders weighing over 150 pounds. I need to change the code that assigns which shipping module to show for which circumstances (over 150 or under 150). I think I need to make the changes in the catalog/checkout_shipping.php code where it loads the enabled modules or in the shipping.php class file (or both) but can't figure out what to do. After writing this I just realized that this may not be the appropriate place to post this question. If it isn't please let me know. Thanks again for your help on this.
  4. WebbyIT

    New UPS XML Shipping Module available

    Thanks, I looked at that site from a previous post you made while I was searching for ways to handle it but did not see this page. It looks like it should solve my problems. I really appreciate your help and quick response.
  5. WebbyIT

    New UPS XML Shipping Module available

    I've been searching for a way to do 2 things; 1) make the UPSXML shipping module option(s) not show up for orders weighing over 150 pounds. 2) make the flat rate shipping option show for orders that are over 150 pounds in it's place Any help is really appreciated.
  6. This will fix the Admin/Categories.php product listing mentioned above for those that have QPBPP and MSRP contribs installed. All credit goes to those that blazed the trail, I just took what was done by them and applied it to the Admin site. Besides the savings calculations being applied to the MSRP price instead of the catalog price, there are a few other fixes mixed in with the code below, primarily to fix the QPBPP table so it shows the right price across the board when an item is on special. To add the savings discounts off of the MSRP price instead of the catalog price in the QPBPP tables on Admin Site product listings, do the following; In admin/categories.php find -- // BOF QPBPP $pf->loadProduct((int)$HTTP_GET_VARS['pID'], $pInfo->products_price, $pInfo->products_tax_class_id, (int)$pInfo->products_qty_blocks, $price_breaks_array); echo $pf->getPriceString(); // EOF QPBPP Add -- $pInfo->products_msrp, to it; // BOF QPBPP $pf->loadProduct((int)$HTTP_GET_VARS['pID'], $pInfo->products_price, $pInfo->products_msrp, $pInfo->products_tax_class_id, (int)$pInfo->products_qty_blocks, $price_breaks_array); echo $pf->getPriceString(); // EOF QPBPP In admin/includes/classes/priceformatter.php find -- function loadProduct($product_id, $products_price, $products_tax_class_id, $qtyBlocks, $price_breaks_array = NULL) Add $products_msrp, to it function loadProduct($product_id, $products_price, $products_msrp, $products_tax_class_id, $qtyBlocks, $price_breaks_array = NULL) find -- //Compose cachable structure $price_formatter_data = array( 'products_price' => $products_price, 'products_special_price' => $products_special_price, 'products_tax_class_id' => $products_tax_class_id, 'price_breaks' => $price_breaks_array, 'qtyBlocks' => $qtyBlocks); //Assign members $this->thePrice = $price_formatter_data['products_price']; $this->taxClass = $price_formatter_data['products_tax_class_id']; $this->qtyBlocks = $price_formatter_data['qtyBlocks']; $this->price_breaks = $price_formatter_data['price_breaks']; $this->specialPrice = $price_formatter_data['products_special_price']; $this->hasSpecialPrice = tep_not_null($this->specialPrice); change it to -- //Compose cachable structure $price_formatter_data = array( 'products_msrp' => $products_msrp, 'products_price' => $products_price, 'products_special_price' => $products_special_price, 'products_tax_class_id' => $products_tax_class_id, 'price_breaks' => $price_breaks_array, 'qtyBlocks' => $qtyBlocks); //Assign members $this->theMSRP = $price_formatter_data['products_msrp']; $this->thePrice = $price_formatter_data['products_price']; $this->taxClass = $price_formatter_data['products_tax_class_id']; $this->qtyBlocks = $price_formatter_data['qtyBlocks']; $this->discount_categories_id = $price_formatter_data['discount_categories_id']; $this->price_breaks = $price_formatter_data['price_breaks']; $this->specialPrice = $price_formatter_data['products_special_price']; $this->hasSpecialPrice = tep_not_null($this->specialPrice); find -- (this fixes the "Price Breaks for Each" values to show the special price across the board) if (true == $this->hasSpecialPrice) { foreach($this->price_breaks as $price_break) { $price_break['products_price'] = min($price_break['products_price'], $this->specialPrice); change to -- (this is a carry over from the public priceformatter as well) if (true == $this->hasSpecialPrice && is_array($this->price_breaks)) { foreach($this->price_breaks as $key => $price_break) { $this->price_breaks[$key]['products_price'] = min($price_break['products_price'], $this->specialPrice); find -- foreach($this->price_breaks as $price_break) { if($qty >= $price_break['products_qty']) { $price = $price_break['products_price']; } } change to -- if (is_array($this->price_breaks) && count($this->price_breaks) > 0) { foreach($this->price_breaks as $price_break) { if($qty >= $price_break['products_qty']) { $price = $price_break['products_price']; } } } // end if (is_array($this->price_breaks) && count($this->price_breaks) > 0) find -- function getQtyBlocks() { return $this->qtyBlocks; } add the following below it -- function get_discount_category() { return $this->discount_categories_id; } function getMSRP() { return $this->theMSRP; } find -- // Begin saving calculation $lc_text .= '<tr valign="top"><td width="120" class="infoBoxContents">Your savings</td>'; if (true == $this->hasSpecialPrice) { $lc_text .= '<td align="center" class="infoBoxContents">' . $this->getDiscountSaving($this->thePrice, $this->specialPrice) .'</td>'; } else { $lc_text .= '<td align="center" class="infoBoxContents">- </td>'; } foreach($this->price_breaks as $price_break) { $lc_text .= '<td align="center" width="50" class="infoBoxContents">' . $this->getDiscountSaving($this->thePrice, $price_break['products_price']) change to -- // Begin saving calculation $lc_text .= '<tr valign="top"><td width="120" class="infoBoxContents">Your savings</td>'; if (true == $this->hasSpecialPrice) { $lc_text .= '<td align="center" class="infoBoxContents">' . $this->getDiscountSaving($this->theMSRP, $this->specialPrice) .'</td>'; } else { $lc_text .= '<td align="center" class="infoBoxContents">' . $this->getDiscountSaving($this->theMSRP, $this->thePrice) . '</td>'; } foreach($this->price_breaks as $price_break) { $lc_text .= '<td align="center" width="50" class="infoBoxContents">' . $this->getDiscountSaving($this->theMSRP, $price_break['products_price']) Your done.
  7. WebbyIT

    Quantity Price Breaks

    I tried one last search to find a solution and found it here --> http://forums.oscommerce.com/index.php?sho...p;#entry1392970
  8. WebbyIT

    Quantity Price Breaks

    Using the PriceFormatter, I would like to show the percentage discount from the MSRP price instead of the original price for a given quantity in the respective "Your savings" boxes. I have the MSRP module installed and working on the site/product_info.php page and all I need to do (I think) is use the getDiscountSaving function with the products_msrp, $this->thePrice to show the savings for savings on a single item and products_msrp, $price_break['products_price'] for quantity discounts savings off MSRP in the PriceFormatter. The problem is that I can't figure out how to add the products_msrp from the products table to the PriceFormatter so that I can call it in the two places I want to use the getDiscountSaving function to show the total savings off the MSRP. Here is the code I think will work if I can get some help to define the msrp price in the PriceFormatter. // Begin saving calculation $lc_text .= '<tr valign="top"><td width="120" align="center" class="pricebox">Your savings</td>'; if (true == $this->hasSpecialPrice) { $lc_text .= '<td align="center" class="pricebox">' . $this->getDiscountSaving($this->thePrice, $this->specialPrice) .'</td>'; } else { [b]// figure savings off MSRP for single item order[/b] $lc_text .= '<td align="center" class="pricebox">' . $this->getDiscountSaving([b]products_msrp[/b], $this->thePrice) .'</td>'; } [b]// figure savings off MSRP for quantity discounts[/b] foreach($this->price_breaks as $price_break) { $lc_text .= '<td align="center" width="50" class="pricebox">' . $this->getDiscountSaving([b]products_msrp[/b], $price_break['products_price']) .'</td>'; } $lc_text .= '</tr></table></td></tr></table>'; Any help with this is greatly appreciated.
  9. I am using the newest AIM module (authorizenet_cc_aim.php Feb 19, 2009) available in the contributions. Except for the one line cURL update for SSL 3.0, the AIM module is the same as the one that came with the 2.2 RC2a installation package. The site/AIM module have been up and running for 5 weeks without any problems, or so it seemed. I had a customer contact me a couple of weeks ago to tell me that he had tried multiple credit cards and attempts and every time he confirmed the order he was redirected to the checkout_payment page with the default error message "There has been an error processing your credit card - Please try again and if problems persist, please try another payment method." I did an exhaustive search and did all the troubleshooting I could think of but could not find the reason why this was happening. Last week I had another customer contact me with the same problem and when he told me the dollar amount of the order I realized that the problem was tied to large orders. To troubleshoot, I did an order for 200 of one product to get the dollar amount and quantity up on the order and it went through fine so I realized it was the number of line items on the order. The “magic” number is 30. Customers can only place orders for up to 30 different products (unlimited quantities) per order. Anytime there is over 30 line items on an order they are redirected to the payment page/default error message. It doesn’t really apply but, in the configuration settings, “Product Quantities” is set to 0 (unlimited). Nothing is transmitted to Authorize.net so the error is part of the pre-check done by the cart. I have looked in the Admin configuration settings, the code, the database tables, and the support forums and still cannot find any reason why this is happening. Does anyone know of any reason why orders with over 30 different items in them would not be able to be processed using the AIM module/Authorize.net? Thanks in advance for any help on this.
  10. WebbyIT

    Quantity Price Breaks

    Thanks for the quick reply.
  11. WebbyIT

    Quantity Price Breaks

    I have QPBPP running flawlessly on three shops. On the most recent install, I just found out that my customer needs to change his prices frequently so I need to figure out an easy way for him to do so without having to log on to each item individually in the Admin site. I have looked in the past and just finished an exhaustive search but I did find any solutions. Does anyone have a suggestion for a user friendly means of updating multiple quantity discount prices/items at once?
  12. Thanks for this fantasic contribution. I installed it and everything works great except for the image uploader. I get an error when I click 'Browse server' on the 'Image Properties' pop up. The error window that pops up says it can't find the file "admin/includes/javascript/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php" which is understandable because the file resides here "admin/includes/javascript/FCKeditor/editor/filemanager/connectors/php/connector.php" I have looked everywhere to try and find the solution but I can't even find the path so I can correct it. Any Suggestions? Also, I would like to use this contribution to add content to some resource pages in the admin site. Is there a way to use this contribution to do this from one location or do I need to install a second instance of it and change all the files so they point to the admin site? Thanks in advance for any help you can offer.
  13. I just installed v2.2 RC2a and wanted to install Administration Access Level Accounts 2.0 along with its category manager and the Listing Products Instructions in Admin for Vendors contribution to allow vendors to have admin control over their specific products (only) while maintaining a 'master' admin account to control them all. When I went to install them the structure has changed so much that I was wondering if these contributions are adaptable or not to v2.2 rc2a by a person (me) with limited PHP knowledge. I don't have a problem figuring out where to find where the code was moved to and make the contribution changes to the code but I don’t know how to find out if the account/login function logic is comparable without physically installing and testing it. Can I use this contribution with v2.2 rc2a? Now that the admin/index.php goes directly to the admin menu page, where should I place the admin login manager page? Should I add it to the new admin account setup page? Now that admin accounts are set up by default in v2.2 rc2a, is there an easier or better way to set up admin accounts that have admin rights for a specific product category only?
  14. WebbyIT

    [Contribution] SEO-G

    I may be misunderstanding what the Auto Names Builder does but I now know that SEO-G names/links cannot be created automatically if the product names are not unique, ... but I am still confused about Auto Names Builder. When does it automatically generate names? Does it add them any time you add a new unique product name to the catalog? I don't have any duplicate urls in the catalog but the product names are duplicated quite a bit. i.e. - (site.com/ford/truck), (site.com/chevy/truck), (site.com/dodge/truck) However; the urls with only the product name in them (site.com/product_name) that you get when accessng a product from a module like manufacturers or what's new would be a duplicate if it did not get an index at the end.
  15. WebbyIT

    [Contribution] SEO-G

    I updated to V1.20 when it came out and then I deleted all the products in the catalog and in seo-g including reports and then repopulated the whole catalog using easy-populate and then reconfigured all the links is SEO-G. Everything worked perfectly. Today, I added some new products into an existing category(s) with the Auto Names Builder set to true but the products added had the same name as previous entries and unique names/links were not added. The products were added but when I click on the link I am taken to the wrong product from the original set-up/config because of this (not unique). When I went into the controller I found the new products all had the same name and no number added on the end to make it unique. I tried using the controller to try and make the product names unique automatically but they kept coming up with the same identical name. The only solution was to manually add a numbering scheme on the end of the names to make them unique like the controller did on the original install. Any suggestions?
×