Jump to content

Order Sumary Basket no NULL


keat

Recommended Posts

This morning I've exported the Order_Summary table to send to the boss and found that it's huge and I can no longer open it.

After a bit of digging, it seems that the column 'Basket' was NULL right up until the day I upgrdaed to V6, however, now the column 'Basket' has basket contents.

On V3 this information was always in Order_Inventory.

 

Should these now actually be in the summary table ?

Link to comment
Share on other sites

I am exporting via PHP admin.

I never thought to exclude that column, in fact, I didn't even know it was possible if i'm being honest.

What I did do, was create a copy of the table, then run an sql query on the copy.

Maybe the long way around, but the original table is still intact.

UPDATE `cart_v6`.`CubeCart_order_summary-copy` SET `basket` = NULL WHERE `CubeCart_order_summary-copy`.`id` >1;

 

Link to comment
Share on other sites

why are you duplicating it first? Just extract the data from the live table. try this. Simply add the columns you want to the list of fields. Then, when you run the query in phpmyadmin, "export results".

SELECT
	id,
	cart_order_id
	-- more columns here, (Do not forget to add a comma after each apart from the very last field
FROM
	CubeCart_order_summary
ORDER BY
	id

 

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...