Jump to content

weirks2000

Member
  • Posts

    16
  • Joined

  • Last visited

Posts posted by weirks2000

  1.  What I meant when I said I've verified that the permissions were correct I have been using a Linux operating system for over 15 years and have always just used the properties option In FileZilla and WsFtp Pro to change file permissions. I'm pretty sure that it changes the permissions on the folders and files on a root level but I will confirm it just to be sure. I appreciate everyone's suggestions and willingness to help. 

    I will also SSH into it as root and check as well.

  2. On 4/2/2016 at 0:14 AM, bsmither said:

    There are three tests that must resolve to true. Otherwise, that error gets logged. $path is theCubeCart /cache/ folder.

    is_dir($path) -- is it a directory, as opposed to a file or symbolic link

    file_exists($path) -- does it actually exist

    is_writable($path) -- can CubeCart write a file into it

    So, check to make sure /cache/ actually exists and that its permissions are such that CubeCart can save a file into it.

    If /cache/ has permissions issues, then there may also be the same issues with the /images/ folder or sub-folders, and the /includes/ folder or sub-folders.

    Hello, I'm having the same issue however I have verified it is not a permissions issue. Is there another solution to this problem. Basically what I did was re-created this shopping cart on the backend of another domain to verify some issues. And then I get the cannot change Path error. The cache folder does exist and is set to 755 all of the PHP files are 644 inside that folder. Images, includes are all also 755.

  3. Ok I made the changes but no effect on the text..  here is the code as I edited it:

    {php}
    
    $tmpPP_LANG = $GLOBALS['smarty']->getTemplateVars('LANG.catalogue.latest_products');
    $tmpLP_LANG = $GLOBALS['smarty']->getTemplateVars('LANG.catalogue.title_popular');
    
    // class.gui.display
    $tmpSN = $GLOBALS['smarty']->getTemplateVars('SECTION_NAME');
    $tmpPP = $GLOBALS['smarty']->getTemplateVars('LATEST_PRODUCTS');
    $tmpLP = $GLOBALS['smarty']->getTemplateVars('POPULAR');
    
    if( $tmpSN != 'home' ) { // If not at the Homepage, need to fetch the actual Latest Products
      // Cannot use the actual Cubecart->displayHomePage because of template creation
      $where = $GLOBALS['catalogue']->outOfStockWhere(array('status' => '1', 'featured' => '1'));
      $latestProducts = $GLOBALS['db']->select('CubeCart_inventory', 'product_id', $where, array('date_added' => 'DESC', 'product_id' => 'DESC'), (int)$GLOBALS['config']->get('config', 'catalogue_latest_products_count'));
      if ($latestProducts) {
        foreach( $latestProducts as $product ) {
          $category_data = $GLOBALS['catalogue']->getCategoryStatusByProductID($product['product_id']);
          $category_status = false;
          if( is_array($category_data) ) {
            foreach( $category_data as $trash => $data ) {
              if( $data['status'] == 1 ) $category_status = true;
            }
          }
          if( $category_status ) $LP2PP[] = $product['product_id'];
        }
      }
      if( $LP2PP ) { $tmpPP = $GLOBALS['catalogue']->getProductData($LP2PP); }
    } else { // At the Homepage, need to fetch the complete product data for Popular Products
        if( !empty($tmpLP) ) {
            foreach( $tmpLP as $product ) { $PP2LP[] = $product['product_id']; }
            $tmpLP = $GLOBALS['catalogue']->getProductData($PP2LP);
            foreach( $tmpLP as &$product ) {
                $GLOBALS['catalogue']->productAssign($product);
                $product['image'] = $GLOBALS['gui']->getProductImage($product['product_id'], 'small');
                $product['ctrl_stock'] = (!$product['use_stock_level'] || $GLOBALS['config']->get('config', 'basket_out_of_stock_purchase') || ($product['use_stock_level'] && $GLOBALS['catalogue']->getProductStock($product['product_id'], null, true))) ? true : false;
                $product['url'] = $GLOBALS['seo']->buildURL('prod', $product['product_id']);
            }
        }
    }
    
    if( !empty($tmpPP)  ) {
      $GLOBALS['smarty']->assign('LANG.catalogue.title_popular', $tmpPP_LANG);
      $GLOBALS['smarty']->assign('POPULAR', $tmpPP);
      $content = $GLOBALS['smarty']->fetch('templates/box.popular.php');
      $GLOBALS['smarty']->assign('POPULAR_PRODUCTS', $content);
    }
    if( !empty($tmpLP) && $tmpSN == 'home' ) {
      $GLOBALS['smarty']->assign('LANG.catalogue.latest_products', $tmpLP_LANG);
      $GLOBALS['smarty']->assign('LATEST_PRODUCTS', $tmpLP);
      $content = $GLOBALS['smarty']->fetch('templates/content.homepage.php');
      $GLOBALS['smarty']->assign('PAGE_CONTENT', $content);
    }
    
  4. Hi guys,

    Since moving to cubecart 5 i keep receiving error logs. If i attempt to clear the errors under the Maintenance section i get the error;

     "The following errors were detected: Error logs were not emptied." 

    Is this a bug? or is there something i can do to fix this?

    Thanks guys.

    I get the same error about not being able to delete files when I put a check next to anything in the log area. I think it may not be truncating the correct database because of different table names. Not sure because I haven't had time to look at code. I just go into phpadmin and truncate whatever table I want cleaned out.

  5. I have a similar issue. I use the UPS module and my zone is set to United States only. I had a customer place an order and the total basket weight was 150 pounds. It did not calculate the shipping charge and only charged the $5.00 handling charge we had set up. I know that UPS typically only allows 70 pounds per box without adding a significant charge for anything over 70 pounds. But when I tried to duplicate the problem and did the same order I had to reduce the products to get the weight down and it will give me the correct shipping quote. I don't know why if an order in my basket is over 70 pounds it won't give me a quote. A customer ordered $500 worth of Products and after I called them to let them know that their shipping was not configured correctly in the shopping cart they got angry and canceled their order. So far the cubecart has caused a lot of frustration. Also I am not quite sure what the packaging weight option is for under the UPS module. Is it to set a specified weight so that everything would be based on that weight?

    On a side note we only ship ups ground residential.

  6. I know in my old cube cart version 4.2.2 I could go into orders and there was a refund button that I could click and it would bring up an interface so that I could put in the amount. I use PayPal pro. I don't remember if this was an add-on or was the original functionality of cube cart 4.2.2. Does anyone know if there is a functionality for this in 5.02 or an add-on that I could get get. It just saves a lot of time having to go into PayPal's account to refund the money directly there.

    Thanks,

    Chris

  7. I could be missing something here but in the previous version of cube cart that I had which was 4.2.2, when there was an order I also had a button that I can click to create a packaging slip. Is this not in the 5.0 .2? How do you print out a packaging slip to place with the order in 5.0 .2?

    Thanks in advance!

  8. Hello, I just recently updated cube cart to 5.0.2 from 4.2.2. There are few things that are quirky but overall things seem to be running okay. However when I go under maintenance and you can clear cache admin logs and things like that I always get an error and it can't be deleted. I'm assuming that it is a permissions setting on a particular folder or file but I'm not sure. If anyone can enlighten me on what could possibly be going wrong I would truly appreciate it. Also under orders on the very right hand side of each order there is a print icon, a edit icon, and a delete icon. Whenever I click on the printer icon I get an internal server error.

    Thank you for any help. If I can't get it answered here I guess I will put in a trouble ticket. I just didn't want to go that route if this is a simple fix.

  9. This wound up being an issue with folder permissions that we will be fixing in the next update. For anybody having the same issue, please change the permissions on the /images/logos/ folder to 755 instead of 777. That *should* take care of it. The issue arises on servers running SuPHP / PHPSuExec.

    :w00t:

    In my case I had change /images to 755 and /logos to 755 worked like a charm. And I upgraded from 4.2.2 to 5.0.2................

  10. I need to change the order in which the UPS shipping choices are offered with the cheapest (ground) as the defult. I've forgotten where I did that in another store and need to do it soon, leaving no time to fool with it?

    Help, please from anyone who knows?

    TIA

    I believe that if you go to the admin folder in the root of your store then modules>shipping>UPS and open index.php in your favorite text editor. Find this piece of code:

    </tr>
    
    	<td align="left" class="tdText"><strong>Next Day Air Early AM</strong></td>
    
    	  <td class="tdText"><select name="module[product_1DM]">
    
    		<option value="1" <?php if($module['product_1DM']==1) echo "selected='selected'"; ?>>Enabled</option>
    
    		<option value="0" <?php if($module['product_1DM']==0) echo "selected='selected'"; ?>>Disabled</option>
    
    	  </select></td>
    
    	</tr>
    
    
    
    
    If you look a little furthur down you will see this code:
    
    
    
    <tr>
    
    	  <td align="left" class="tdText"><strong>Ground</strong></td>
    
    	  <td class="tdText"><select name="module[product_GND]">
    
    		<option value="1" <?php if($module['product_GND']==1) echo "selected='selected'"; ?>>Enabled</option>
    
    		<option value="0" <?php if($module['product_GND']==0) echo "selected='selected'"; ?>>Disabled</option>
    
    	  </select></td>
    
    	</tr>

    I just copied this code then deleted it and placed it above the first code I mentioned at the very begining. Once I made this change I went into IE cleared all the cache then went into the admin in cubecart and then to the UPS mod and disabled the Mod all options saved the edit then enabled the Mod and the options I wanted which this time UPS Ground was the first choice And that seemed to work for me. I really wasn't worried about going from cheapest to most expensive shipping options. I assume if you rearranged all the options in the order you wanted and then do as I mentioned that would be the order they would be in the drop down box. But I have not tested it that way.

  11. There Is A Frustrating Problem With The UPS Shiping Calculator That Has Not Been Resolved As Of Yet & Probably Will Not Be In The Near Future ;) , But Dont Dispair They Have People Working On It. :D If You Are Selling Products That Require The UPS Calculator And Not Flat Rate For The Time Being Hands Off Cubecart! :)

    http://www.cubecart.com/site/forums/index....hl=UPS+Shipping

    I think the problem lies in the fact that UPS has added a surcharge to their shipping quotes. I was noticing that if I go to the UPS Site and get a quote then look at details that indeed the UPS Mod is giving the currect quote but isn't adding the surcharge. What I did to fix this was up the weight to get close to UPS'S Quote until there is a fix..

×
×
  • Create New...