Jump to content

oldman79

Member
  • Posts

    60
  • Joined

  • Last visited

Posts posted by oldman79

  1. This is a huge problem. I cannot believe they keep releasing updates causing this many problems. Is it safe to restore CubeCart_order_inventory without it over writing new order data after the upgrade?

    This is a terrible bug. I have many costumers scare about this issue. They said my store is not secure because have too many problem after upgrade new version.

    I really don't know why, each time cc release new version, then it is going to have a new bug, but that bug did already done fixed on the pass.

  2. I found something weird.

    There is a routine that can update the contents of an order (but what's the scope of this order?) if it's status is prior to "Processing". (Again, from who's point of view?)

    If this routine is called, and the order is prior to Processing, then records in CC_downloads are deleted where 'order_inv_id' is equal to an unset variable. Same for CC_order_inventory.

    I'll need to figure out where all that calls this function.

    This is a change from CC511 to CC512 (carried over to CC513).

    If you are wanting to do this as it may restore a bug that afflicted CC511:

    In the file /classes/order.class.php for CC512/513, very near the end, find this:

    
    	private function _updateOrder() {
    
    		// Add new items to the order, as long as its only 'Pending'
    
    		if (!isset($this->_basket['order_status']) || $this->_basket['order_status'] < self::ORDER_PROCESS) {
    
    			## Remove digital download record
    
    			$GLOBALS['db']->delete('CubeCart_downloads', array('order_inv_id' => $key));
    
    			$GLOBALS['db']->delete('CubeCart_order_inventory', array('order_inv_id' => $key));
    
    						
    
    			// Add products
    
    			foreach ($this->_basket['contents'] as $key => $item) {
    
    				$basket_items[] = $item['id'];
    
    				if (!is_array($stored_items) || !in_array($item['id'], $stored_items)) {
    
    					$product = $this->_orderAddProduct($item);
    
    					$this->_basket['contents'][$key] = (is_array($product)) ? array_merge($product, $item) : $item;
    
    				} else {
    
    					$price = (Tax::getInstance()->salePrice($item['price'], $item['sale_price'], false)) ? $item['sale_price'] : $item['price'];
    
    					$product_data = $GLOBALS['catalogue']->getProductData($item['id'], $item['quantity']);
    
    					Tax::getInstance()->productTax($price, (int)$item['tax_type'], (bool)$product_data['tax_inclusive']);
    
    				}
    
    			}
    
    			return true;
    
    		}
    
    		return false;
    
    	}
    
    
    
    
    
    
    Replace with CC511 version:
    
    
    
    
    	private function _updateOrder() {
    
    		// Add new items to the order, as long as its only 'Pending'
    
    		if (!isset($this->_basket['order_status']) || $this->_basket['order_status'] < self::ORDER_PROCESS) {
    
    			$items = $GLOBALS['db']->select('CubeCart_order_inventory', array('id', 'product_id', 'digital'), array('cart_order_id' => $this->_order_id));
    
    			if ($items) {
    
    				foreach ($items as $item) {
    
    					$stored_items[$item['id']] = $item['product_id'];
    
    					if ($item['digital']) $digital[] = $item['id'];
    
    				}
    
    			}
    
    			// Add products
    
    			foreach ($this->_basket['contents'] as $key => $item) {
    
    				$basket_items[] = $item['id'];
    
    				if (!is_array($stored_items) || !in_array($item['id'], $stored_items)) {
    
    					$product = $this->_orderAddProduct($item);
    
    					$this->_basket['contents'][$key] = (is_array($product)) ? array_merge($product, $item) : $item;
    
    				} else {
    
    					$price = (Tax::getInstance()->salePrice($item['price'], $item['sale_price'], false)) ? $item['sale_price'] : $item['price'];
    
    					$product_data = $GLOBALS['catalogue']->getProductData($item['id'], $item['quantity']);
    
    					Tax::getInstance()->productTax($price, (int)$item['tax_type'], (bool)$product_data['tax_inclusive']);
    
    				}
    
    			}
    
    			## Remove products
    
    			foreach ($stored_items as $key => $id) {
    
    				if (!in_array($id, $basket_items)) {
    
    					if (in_array($id, $digital)) {
    
    						## Remove digital download record
    
    						$GLOBALS['db']->delete('CubeCart_downloads', array('order_inv_id' => $key));
    
    					}
    
    					## Remove product order record
    
    					$GLOBALS['db']->delete('CubeCart_order_inventory', array('id' => $key));
    
    				}
    
    			}
    
    			return true;
    
    		}
    
    		return false;
    
    	}
    
    

    Again, I do not know if this change was supposed to fix a bug. But CC512/513 version of this function has some definite problems.

    This code didn't work. Hope staff will fixed this bug soon as possible.

  3. Got to be honest, i gave up on cubecart. i have tried quite a few carts, and can't believe the only option of 'support' is a forum that provides very little in the field of support, hence why this topic is still open and unanswered.

    Why the hell should i pay for support from the developers of this product, when i already have paid for it.it's like buying a car and then when you need a question asked if you phone up the garage they tell you they wont answer your question until you give them some money..

    there are plenty of better, cheaper options out there, which also give you free support .

    I am agreed with you. This forum is useless, no one support from cube cart team.

    They want us to pay to buy support service.

    So far, vb5 have many problem as cubecart can't solve it, or if they can solve when we pay them to do it.

    Because my store have been build with cube cart, therefore I have no choice to go with a different shopping cart.

  4. Hello anyone,

    I have a problem with connect to Google checkout for version 5. But I don't have any problem with connect to Google checkout for version 4.

    Enable SSL : YES

    It is always get this message:

    "

    The following errors were detected:

    • Failed to connect to Google Checkout. Please use an alternative checkout method.

    There is something wrong for this.

  5. Hello there,

    I still get the error even I turn Enable SSL to yes.

    "Failed to connect to Google Checkout. Please use an alternative checkout method"

    Note that, I don't have this problem with cubecart version 4

    Any one know how to fix this problem. Thank You

  6. I had a painful like as you have ifixipodsfast , after I upgrade CC4 to CC5, the language have been convert to utf8_unicode_ci, this make my current store language messed. I have to edit each items again. I spend two week already for this problem.

    CC5 is still have a lot of bugs and get more problem when the store is going live.

    From upgrade 5.0.2 to 5.0.3, I really don't know what fix inside the files catalogue.class.php and cart.class.php, but it make my store have error in database

    I have to used to old one 5.0.2, then the problem was gone.

    I feel the CC staffs need pay more attention when they fix the files.

  7. To compare with to search from CC4, search from CC5 is terrible. Like as you said in this thread

    When I search for the item even it is in the store, but I always getting the message below, I hope CC team will fix this problem:

    The following errors were detected:

    No matching products found. Please try again.

  8. I think cubecart official should have a support to show us How do I configure the shipping module

    For shipping by price I don't think they allow you to setting different price will have a different shipping cost.

    Hope that they will show us to set up it.

  9. I think the method Subtotal shipping module by convic developed is the best, however It didn't work with CC5 anymore.

    All method shipping from CC5 is not good. It is limited setting country zones with different shipping costs.

  10. Hi anyone,

    I am now using 5.0.2, whenever I click on the icon print to print the order, then It link me to the storefront page. It didn't give me to print out order.

    Also, if the order is pending. I try to change it to processing, then it is going freeze to Admin control to give a blank page.

    If I change the order from pending to completed, it is working fine.

    I try to used different browsers but still get the same problem.

    Does anyone have the same problem like it? If yes, how to fix those 2 problem above?

    Many thanks for helping

  11. Break search and got this error

    Deprecated: Function split() is deprecated in /home/xxxx/includes/content/viewCat.inc.php on line 185

    MySQL Error Occurred

    Error Message:

    1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) as `count`, I.name AS SearchScore FROM CubeCart_inventory AS I, CubeCart_cate' at line 1

    SQL:

    SELECT DISTINCT(I.productId), I.count(*) as `count`, I.name AS SearchScore FROM CubeCart_inventory AS I, CubeCart_category AS C WHERE (I.name RLIKE '[[:<:]]chang[[:>:]].count(*) as `count`[[:<:]]trai[[:>:]].count(*) as `count`[[:<:]]da[[:>:]].count(*) as `count`[[:<:]]tai[[:>:]]' OR I.description RLIKE '[[:<:]]chang[[:>:]].count(*) as `count`[[:<:]]trai[[:>:]].count(*) as `count`[[:<:]]da[[:>:]].count(*) as `count`[[:<:]]tai[[:>:]]' OR I.productCode RLIKE '[[:<:]]chang[[:>:]].count(*) as `count`[[:<:]]trai[[:>:]].count(*) as `count`[[:<:]]da[[:>:]].count(*) as `count`[[:<:]]tai[[:>:]]') AND C.cat_id > 0 AND C.cat_id = I.cat_id AND C.hide = '0' AND (C.cat_desc != '##HIDDEN##' OR C.cat_desc IS NULL) AND I.disabled = '0' ORDER BY `date_added` DESC, `name` ASC

    Open that file

    Find:

    $searchwords = split ( '[ ,]', sanitizeVar($_REQUEST['searchStr']));

    Replace with:

    $searchwords = preg_split( '/[ ,]/', sanitizeVar($_REQUEST['searchStr']));

    Many thanks for your great help Technocrat. It is working great.

  12. Break search and got this error

    Deprecated: Function split() is deprecated in /home/xxxx/includes/content/viewCat.inc.php on line 185

    MySQL Error Occurred

    Error Message:

    1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) as `count`, I.name AS SearchScore FROM CubeCart_inventory AS I, CubeCart_cate' at line 1

    SQL:

    SELECT DISTINCT(I.productId), I.count(*) as `count`, I.name AS SearchScore FROM CubeCart_inventory AS I, CubeCart_category AS C WHERE (I.name RLIKE '[[:<:]]chang[[:>:]].count(*) as `count`[[:<:]]trai[[:>:]].count(*) as `count`[[:<:]]da[[:>:]].count(*) as `count`[[:<:]]tai[[:>:]]' OR I.description RLIKE '[[:<:]]chang[[:>:]].count(*) as `count`[[:<:]]trai[[:>:]].count(*) as `count`[[:<:]]da[[:>:]].count(*) as `count`[[:<:]]tai[[:>:]]' OR I.productCode RLIKE '[[:<:]]chang[[:>:]].count(*) as `count`[[:<:]]trai[[:>:]].count(*) as `count`[[:<:]]da[[:>:]].count(*) as `count`[[:<:]]tai[[:>:]]') AND C.cat_id > 0 AND C.cat_id = I.cat_id AND C.hide = '0' AND (C.cat_desc != '##HIDDEN##' OR C.cat_desc IS NULL) AND I.disabled = '0' ORDER BY `date_added` DESC, `name` ASC

  13. Hello Anyone

    I just upgrade to new CC 4.3.9, it is working fine. However, the search function had a bug.

    Anytime, I type something to search at the search engine. I got this error message

    Deprecated: Function split() is deprecated in /home/ccube/public_html/includes/content/viewCat.inc.php on line 185

    Does anyone have a same problem with me?

    I used

    PHP Version: 5.3.2

  14. It may be file access permissions causing the problem - quick way (assuming linux OS) to determine would be to make folder and file access 777 temporarily. If all is then will then sort out permissions (not a good idea to leave at 777).

    Hi

    This isnt a file permission problem - a quick look at the file path that it is referencing shows that it isnt correct and parts are being duplicated. What is causing that is another matter - I cant believe that it is a CubeCart bug as I would think that others would be reporting it. If it isnt an actual bug then without looking into your system and the code in greater detail than is possible and doubt if there is much more that can be done.

    Regards

    Ian

    It was missed /, therefore this is current error. It is working now.

  15. Where are you getting this error ?

    Have you tried re-installaing back the backup that you took before doing the upgrade ?

    Regards

    Ian

    I never have this error in previous version 4.3.1. Man, this is my bad day, I forgot the backup the database when I upgrade it into version 4.3.2

    At admin control,

    For Image:

    (Optional and thumbnails will automatically be made IF the format chosen is compatible.)

    when I want to open "Browser/Upload images", then this problem appear.

    Now I can't used this option for upload imgages and no thumbnails. Need help. I have send the bug and hope they will fix this problem soon. Another wise I can't go back to my old database because I forgot to backup.

×
×
  • Create New...