Home
Home

Directory
Directory

Articles
Internet News
Security News
Ecommerce News
Domain News

Site Tools
Site Speed Test
Keyword Research
Resolve Hostname
DNS Tools
Register Domains
Affiliate Programs
Open Source

Shopping Carts
Cart Reviews
SSL Certificates

Enter your email address to subscribe to our updates:

Delivered by FeedBurner


Venue Charts
Channel Traffic Rankings
OAI Stock Quotes and Charts
eBay's Worst Feedback

Forum
Forum Home
TulipTools News
Advertising
Blogging
Computer Hardware
Domain Names
Ecommerce
Financing
Int'l Trading
Graphics and HTML
Internet Access
Legal Issues
Internet Business
Auction Sites
Classified Ad Sites
Fixed Price Venues
Operating Systems
Programming
Search Engines
Internet Security
Software
Web Hosting
Webmaster Issues
Reviews
Announcements
Off Topic Discussion

Web Hosting
TulipHosting

Domain Names
TulipDomains

Web Stats
TulipStats

Forum Rules
Forum Rules
Privacy Policy

Site Map
Forum Sitemap
Sitemap Topics




Directory| Forums| Internet News|Cart Reviews| DNS Tools| Keyword Research| Site Speed Test| Security| | Domain Marketplace| Domain Blog
TulipTools Internet Business Owners and Online Sellers Community
  • Home
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register
TulipTools Internet Business Owners and Online Sellers Community › Ecommerce › Ecommerce › Shopping Cart Scripts and Software › X-Cart/LiteCommerce/CS-Cart
**SPREADSHEET GURUS** HELP!

  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
**SPREADSHEET GURUS** HELP!
03-05-2007, 03:28 AM,
Post: #1
FiberGuy Offline
Plum Devotee
******
Posts: 521
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2006
Reputation: 0
**SPREADSHEET GURUS** HELP!

Help seems to be my latest theme these days...  Sad

This is somewhat related to my other thread about importing thousands of images, but I wanted to give this issue particular attention.

To put my question simply, how to I change this:

Code:
[DETAILED_IMAGES],,,
!PRODUCTID,!PRODUCTCODE,!PRODUCT,!IMAGE
510041235,510041235,FRIENDS Chevrolet Magazine March 1941 - Vivien Leigh,"P9225543_vintage_magazines_.jpg,P9225543a_vintage_magazines_.jpg,P9225544_vintage_magazines_.jpg,P9225544a_vintage_magazines_.jpg,P9225544aa_vintage_magazines_.jpg"
506230710,506230710,1958 Dodge - Christmas Music Record - Lawrence Welk,"P30520231.jpg"
506230646,506230646,Vintage Mentholatum Ink Blotter ~ Magellan ~,"PA3100901.jpg,PA3100911.jpg,PA3100921.jpg"
506230650,506230650,Happy Indian Girl Paper Mask Cir. 1950,"PA0843431.jpg,PA0843471.jpg,PA0843481.jpg"

To this:

Code:
[DETAILED_IMAGES],,,
!PRODUCTID,!PRODUCTCODE,!PRODUCT,!IMAGE
510041235,510041235,FRIENDS Chevrolet Magazine March 1941 - Vivien Leigh,P9225545_vintage_magazines_.jpg
,,,P9225543a_vintage_magazines_.jpg
,,,P9225544_vintage_magazines_.jpg
,,,P9225544a_vintage_magazines_.jpg
,,,P9225544aa_vintage_magazines_.jpg
506230710,506230710,1958 Dodge - Christmas Music Record - Lawrence Welk,P30520231.jpg
506230646,506230646,Vintage Mentholatum Ink Blotter ~ Magellan ~,PA3100901.jpg
,,,PA3100911.jpg
,,,PA3100921.jpg
506230650,506230650,Happy Indian Girl Paper Mask Cir. 1950,PA0843431.jpg
,,,PA0843471.jpg
,,,PA0843481.jpg

For reference:  http://dewittco.com/origin.csv & http://dewittco.com/destination.csv

I'm prepared to offer a *reward* for something that works!  Smile

Drop on by De Witt & Co. Antiques & Collectibles

http://dewittco.com

Vintage Textiles & Ephemera
Website
Like Post Reply
[+]
03-05-2007, 05:32 AM,
Post: #2
regic Offline
Administrator
*******
Posts: 2,825
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2005
Reputation: 0
Re: **SPREADSHEET GURUS** HELP!
I don't know but most spreadsheet programs should be able to convert it automatically for you.

If you have a large spreadsheet download gnumeric because it can handle more rows and columns of data than Excel.  It's free:
http://www.gnome.org/projects/gnumeric/downloads.shtml
Like Post Reply
[+]
03-07-2007, 07:33 AM,
Post: #3
Angnor Offline
Tool Seeker
*
Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2007
Reputation: 0
Re: **SPREADSHEET GURUS** HELP!
Hello FiberGuy,

If you just want to remove certain values from the spreadsheet - you can find a lot of solutions for  this. Even use Google Docs and Spreadsheets Smile
but after that modification your spreadsheet can't be imported into x-cart using default functionality. Each image should be binded to some product by productid or productcode (SKU).
And as far as I see there will be images which are not binded to products.

I suppose you need a custom solution. Smile
Like Post Reply
[+]
03-09-2007, 12:10 AM,
Post: #4
FiberGuy Offline
Plum Devotee
******
Posts: 521
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2006
Reputation: 0
Re: **SPREADSHEET GURUS** HELP!


A kind gentleman at the excel user groups message board wrote me an Excel macro for this, and it works like a champ!  This will save many hours of work, no doubt!

Code:
Sub ConvertCSV()

   Const Sourcefile = "C:\Documents and Settings\Michael\Desktop\Origin.csv"
   Const Destfile = "C:\Documents and Settings\Michael\Desktop\Destination.csv"
   Const ForReading = 1
   Const ForWriting = 2
   Const ForAppending = 3
     
   Set OriginCSV = _
      CreateObject("Scripting.FileSystemObject")
   Set FOrigin = _
      OriginCSV.GetFile(Sourcefile)
   Set FSOrigin = _
      FOrigin.OpenAsTextStream _
         (ForReading)

       
   Set DestinationCSV = _
      CreateObject("Scripting.FileSystemObject")
   DestinationCSV.CreateTextFile Destfile
   Set DestinationCSV = DestinationCSV. _
       GetFile(Destfile)
   Set FSDestination = DestinationCSV. _
      OpenAsTextStream _
         (ForWriting)
   
   
   
   Do While FSOrigin.ATENDOFSTREAM = False
       
       
       InputString = FSOrigin.readline
       
       'If no JPG on line just write the data
       If InStr(InputString, ".jpg") = 0 Then
          FSDestination.writeline InputString
       
       Else
          'Loop until no more characters in line
          First = True
          Do While Len(InputString) > 0
             'check if jpg is in the line
             GetJPGPos = InStr(InputString, ".jpg")
             ' exit if no more jpg to strip out
             If GetJPGPos = 0 Then Exit Do
             
             'Get everything before the first commar
             OutputString = Left(InputString, _
                GetJPGPos + 3)
           
             If First = False Then

                'Add three commars to begionning of line
                OutputString = ",,," + OutputString
             Else
                 First = False
             End If

             'write string to output file
             FSDestination.writeline OutputString
             
             'Get everything to the right of 1st commar
             InputString = Mid(InputString, _
                GetJPGPos + 5)
         
          Loop
               
       End If
   Loop
   
   FSOrigin.Close
   FSDestination.Close

End Sub
Drop on by De Witt & Co. Antiques & Collectibles

http://dewittco.com

Vintage Textiles & Ephemera
Website
Like Post Reply
[+]
« Next Oldest | Next Newest »




Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP! Importing 100000000000's of Images into X-Cart FiberGuy 11 6,196 03-04-2007, 09:45 PM
Last Post: BellisimaJ.

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)
  • Contact Us
  • TulipTools Internet Business Owners and Online Sellers Community
  • Return to Top
  • Lite (Archive) Mode
  • RSS Syndication
  • Help
Current time: 03-23-2023, 01:39 PM Powered By MyBB, © 2002-2023 MyBB Group. Theme created by Justin S.
powered by Apache

powered by Linuxpowered by CentOS

Copyright 2000-2013 TulipTools.com. All rights reserved.