Jump to content

TYPO in v6 cubecart.class.php??


Recommended Posts

I discovered what appears to be a typo while attempting to merge my mod edits with cubecart.class.php:

// Display a search page
				$cart_oder_id = Order::validOrderId(trim($_GET['cart_order_id'])) ? trim($_GET['cart_order_id']) : '';
				$GLOBALS['smarty']->assign('ORDER_NUMBER', $cart_oder_id);
				$GLOBALS['gui']->addBreadcrumb($GLOBALS['language']->orders['search'], currentPage());
			}

Shouldn't $cart_oder_id be $cart_order_id???? Is there any other place that perhaps would have this same misspelling that needs fixing?

I found this same misspelling all the way as far as v6.0.

Edited by Dirty Butter
Link to comment
Share on other sites

I see you are working on your Git skills, nice ;) I do still plan on creating a good tutorial for that, but time, you know...

If you are on Windows, a handy trick to find all places in your code that certain string appers is to open a command window in your repository directory (shift-right-click the directory and select 'open command window') - once you've done that, you can do a search for 'cart_oder_id' or anything else using the Windows findstr command.

Since that page can be a little dense, this is what my typical command looks like:

findstr /i /s /n /c:"search_query" *.*
Link to comment
Share on other sites

Thank you for the search command. That can certainly come in handy. I did already understand how to use the CC Git site, but had never tried to copy to my own Repository, etc. Sadly, as far as using SourceTree, I setup BeyondCompare as the Merge/Diff extra, as I have been using it a long time. I found it so much easier to deal straight with BC than to use the GIT process, that I gave up. Maybe the next time I play with it, it will make better sense to me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...