Jump to content

Irin

Members
  • Content count

    891
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    Irin got a reaction from John W in FedEx - Web Services v9   
    I changed the rate to List, and the error is gone. I'm getting the fedex rates now. So, the problem is somewhere in the code for the account rates:
    else // For ACCOUNT Discounted Rates, calculate the cost as below { $cost = ($rateReply->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount)/MODULE_SHIPPING_FEDEX_WEB_SERVICES_CURRENCY; $cost = (float)round(preg_replace('/[^0-9.]/', '', $cost), 2); } // For ACCOUNT Discounted Rates, END $transitTime = ''; // 9.4.6 if (in_array($rateReply->ServiceType, array('GROUND_HOME_DELIVERY', 'FEDEX_GROUND', 'INTERNATIONAL_GROUND'))) { $transitTime = ' (' . str_replace(array('_', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteeen'), array(' ', 1,2,3,4,5,6,7,8,9,10,11,12,13,14), strtolower($rateReply->TransitTime)) . ')'; } if (isset($rateReply->DeliveryTimestamp)) { // $transitTime = ' (Estimated Delivery on: ' . date('l, F jS Y \a\t g:ia', strtotime($rateReply->DeliveryTimestamp)) . ') '; $transitTime = ' (Estimated Delivery Date: ' . date('l, F jS Y', strtotime($rateReply->DeliveryTimestamp)) . ') '; } $methods[] = array('id' => str_replace('_', '', $rateReply->ServiceType), 'title' => ucwords(strtolower(str_replace('_', ' ', $rateReply->ServiceType))) . $transitTime, 'cost' => $cost + (strpos($this->types[$rateReply->ServiceType]['handling_fee'], '%') ? ($cost * (float)$this->types[$rateReply->ServiceType]['handling_fee']/100) : (float)$this->types[$rateReply->ServiceType]['handling_fee'])); // } } }  
  2. Like
    Irin got a reaction from sahilsaid in [Contribution] Featured Products for v2.3.x   
    The reason that the calendar is not displayed in admin/featured.php is that the few links are missing from the file. Need to add:

    <link rel="stylesheet" type="text/css" href="includes/javascript/calendar.css"> <script language="Javascript" src="includes/javascript/calendarcode.js"></script>
    just below:

    require(DIR_WS_INCLUDES . 'template_top.php'); ?>
    Also, for the special prices to display in product listing on index, need to add the following code below to includes/modules/featured.php:

    if (tep_not_null($featured_products['specials_new_products_price'])) { $new_price = '<s>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</s> '; $new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($featured_products['specials_new_products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</span>'; } else { $new_price = $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])); }
    Also, change in line from:

    $featured_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br />' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</td>';
    to this:

    $featured_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br />' . $new_price . '</td>';
    This worked for me, hope it works for you, too.
  3. Like
    Irin got a reaction from jdog2004 in [Contribution] Ship In Cart   
    I finally fixed the problem with the Shipping Calculator. Optional updates caused a problem with the module. However, I've got another problem now. I have 4 shipping modules installed: FedEx, UPS, USPS, and Pickup. Estimate Shipping shows correct shipping rates but when any of UPS or FedEx methods are selected, the Order Total Estimate shows UPS or FedEx rates x2. For example:
    There is also a problem with FedEx shipping rates. Doesn't matter what FedEx method I select it always shows FedEx Ground Service selected and Order Total Estimate also shows only FedEx Ground rate. Is there any solution to the problem?
     
    Thanks in advance.
×